mirror of https://github.com/kubernetes/kops.git
Don't apply spec.api defaults on OS
Openstack can use floating IPs as master API address. Setting these defauls and using floating ips ends up in a nil pointer error somewhere in the lbaasv2 code
This commit is contained in:
parent
33722a9eca
commit
9b0d235554
|
|
@ -46,6 +46,7 @@ func SetDefaults_ClusterSpec(obj *ClusterSpec) {
|
|||
obj.Topology.DNS.Type = DNSTypePublic
|
||||
}
|
||||
|
||||
if obj.CloudProvider != "openstack" {
|
||||
if obj.API == nil {
|
||||
obj.API = &AccessSpec{}
|
||||
}
|
||||
|
|
@ -67,6 +68,8 @@ func SetDefaults_ClusterSpec(obj *ClusterSpec) {
|
|||
obj.API.LoadBalancer.Type = LoadBalancerTypePublic
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if obj.Authorization == nil {
|
||||
obj.Authorization = &AuthorizationSpec{}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue