Merge pull request #10665 from rudeigerc/fix-loadbalancer

Create default loadbalancer when SSL certificate is specified
This commit is contained in:
Kubernetes Prow Robot 2021-01-27 20:13:07 -08:00 committed by GitHub
commit 3699edcf4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -963,7 +963,7 @@ func setupAPI(opt *NewClusterOptions, cluster *api.Cluster) error {
// in pkg/model/azuremodel/api_loadbalancer.go.
cluster.Spec.API = nil
return nil
} else if opt.APILoadBalancerType != "" {
} else if opt.APILoadBalancerType != "" || opt.APISSLCertificate != "" {
cluster.Spec.API.LoadBalancer = &api.LoadBalancerAccessSpec{}
} else {
switch cluster.Spec.Topology.Masters {