add clustername to ccm opts

This commit is contained in:
Jesse Haka 2023-02-12 16:39:31 +02:00
parent 553270a06a
commit 43dd96ead0
1 changed files with 5 additions and 0 deletions

View File

@ -1438,6 +1438,11 @@ func initializeOpenstack(opt *NewClusterOptions, cluster *api.Cluster) {
cluster.Spec.Networking.Topology.DNS = api.DNSTypeNone
}
}
if cluster.Spec.ExternalCloudControllerManager == nil {
cluster.Spec.ExternalCloudControllerManager = &api.CloudControllerManagerConfig{}
}
cluster.Spec.ExternalCloudControllerManager.ClusterName = opt.ClusterName
}
func createEtcdCluster(etcdCluster string, controlPlanes []*api.InstanceGroup, encryptEtcdStorage bool, etcdStorageType string) api.EtcdClusterSpec {