mirror of https://github.com/kubernetes/kops.git
Merge pull request #5971 from Raffo/master
Fixed issue when specifying ACM cert and no load balancer is defined
This commit is contained in:
commit
4c9b06739c
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue