Merge pull request #5971 from Raffo/master

Fixed issue when specifying ACM cert and no load balancer is defined
This commit is contained in:
k8s-ci-robot 2018-10-23 06:27:15 -07:00 committed by GitHub
commit 4c9b06739c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1081,7 +1081,7 @@ func RunCreateCluster(f *util.Factory, out io.Writer, c *CreateClusterOptions) e
}
}
if c.APISSLCertificate != "" {
if cluster.Spec.API.LoadBalancer != nil && c.APISSLCertificate != "" {
cluster.Spec.API.LoadBalancer.SSLCertificate = c.APISSLCertificate
}