mirror of https://github.com/kubernetes/kops.git
Merge pull request #15139 from zetaab/clusternameoccm
Add cluster name to OCCM opts
This commit is contained in:
commit
9e49b37d9e
|
@ -21,6 +21,8 @@ spec:
|
|||
timeout: 10s
|
||||
router:
|
||||
externalNetwork: ""
|
||||
cloudControllerManager:
|
||||
clusterName: minimal.k8s.local
|
||||
cloudProvider: openstack
|
||||
configBase: memfs://tests/minimal.k8s.local
|
||||
etcdClusters:
|
||||
|
|
|
@ -29,6 +29,8 @@ spec:
|
|||
dnsServers: 1.1.1.1
|
||||
externalNetwork: vlan1
|
||||
externalSubnet: vlan1subnet
|
||||
cloudControllerManager:
|
||||
clusterName: ha.example.com
|
||||
cloudProvider: openstack
|
||||
configBase: memfs://tests/ha.example.com
|
||||
etcdClusters:
|
||||
|
|
|
@ -27,6 +27,8 @@ spec:
|
|||
router:
|
||||
dnsServers: 1.1.1.1
|
||||
externalNetwork: vlan1
|
||||
cloudControllerManager:
|
||||
clusterName: minimal.k8s.local
|
||||
cloudProvider: openstack
|
||||
configBase: memfs://tests/minimal.k8s.local
|
||||
etcdClusters:
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue