mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	dont load default vals from env (#751)
This commit is contained in:
		
				
					committed by
					
						 John Belamaric
						John Belamaric
					
				
			
			
				
	
			
			
			
						parent
						
							9fb266aebe
						
					
				
				
					commit
					6f9a9eb8cd
				
			| @@ -190,9 +190,7 @@ func (k *Kubernetes) IsNameError(err error) bool { | |||||||
| func (k *Kubernetes) Debug() string { return "debug" } | func (k *Kubernetes) Debug() string { return "debug" } | ||||||
|  |  | ||||||
| func (k *Kubernetes) getClientConfig() (*rest.Config, error) { | func (k *Kubernetes) getClientConfig() (*rest.Config, error) { | ||||||
| 	// For a custom api server or running outside a k8s cluster | 	loadingRules := &clientcmd.ClientConfigLoadingRules{} | ||||||
| 	// set URL in env.KUBERNETES_MASTER or set endpoint in Corefile |  | ||||||
| 	loadingRules := clientcmd.NewDefaultClientConfigLoadingRules() |  | ||||||
| 	overrides := &clientcmd.ConfigOverrides{} | 	overrides := &clientcmd.ConfigOverrides{} | ||||||
| 	clusterinfo := clientcmdapi.Cluster{} | 	clusterinfo := clientcmdapi.Cluster{} | ||||||
| 	authinfo := clientcmdapi.AuthInfo{} | 	authinfo := clientcmdapi.AuthInfo{} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user