mirror of https://github.com/kubernetes/kops.git
Override hostname with '@aws' only if hostname override is not specified.
This commit is contained in:
parent
b552743d69
commit
874e2a514f
|
|
@ -69,7 +69,10 @@ func (b *KubeProxyOptionsBuilder) BuildOptions(o interface{}) error {
|
|||
cloudProvider := kops.CloudProviderID(clusterSpec.CloudProvider)
|
||||
if cloudProvider == kops.CloudProviderAWS {
|
||||
// Use the hostname from the AWS metadata service
|
||||
config.HostnameOverride = "@aws"
|
||||
// if hostnameOverride is not set.
|
||||
if config.HostnameOverride == "" {
|
||||
config.HostnameOverride = "@aws"
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Reference in New Issue