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,8 +69,11 @@ func (b *KubeProxyOptionsBuilder) BuildOptions(o interface{}) error {
 | 
			
		|||
	cloudProvider := kops.CloudProviderID(clusterSpec.CloudProvider)
 | 
			
		||||
	if cloudProvider == kops.CloudProviderAWS {
 | 
			
		||||
		// Use the hostname from the AWS metadata service
 | 
			
		||||
		// if hostnameOverride is not set.
 | 
			
		||||
		if config.HostnameOverride == "" {
 | 
			
		||||
			config.HostnameOverride = "@aws"
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue