From 6f9a9eb8cd0e592128184da756573b7d300b17a6 Mon Sep 17 00:00:00 2001 From: Chris O'Haver Date: Fri, 23 Jun 2017 18:02:45 -0400 Subject: [PATCH] dont load default vals from env (#751) --- middleware/kubernetes/kubernetes.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/middleware/kubernetes/kubernetes.go b/middleware/kubernetes/kubernetes.go index abc4e603b..d4a255935 100644 --- a/middleware/kubernetes/kubernetes.go +++ b/middleware/kubernetes/kubernetes.go @@ -190,9 +190,7 @@ func (k *Kubernetes) IsNameError(err error) bool { func (k *Kubernetes) Debug() string { return "debug" } func (k *Kubernetes) getClientConfig() (*rest.Config, error) { - // For a custom api server or running outside a k8s cluster - // set URL in env.KUBERNETES_MASTER or set endpoint in Corefile - loadingRules := clientcmd.NewDefaultClientConfigLoadingRules() + loadingRules := &clientcmd.ClientConfigLoadingRules{} overrides := &clientcmd.ConfigOverrides{} clusterinfo := clientcmdapi.Cluster{} authinfo := clientcmdapi.AuthInfo{}