From ac5ab13a4c20f56a638d9268eee6d14af2983721 Mon Sep 17 00:00:00 2001 From: Kekoa Vincent Date: Thu, 1 Jun 2017 20:50:50 -0500 Subject: [PATCH] Fix errors caused by incorrect type being sent for the Kubernetes Secret watcher #1596 This was likely just a copy-paste issue, the bug should be benign because the secret is cast to the correct type later, but the additional logging is a major annoyance, and is happening even if basic auth is not in use with Kubernetes. --- provider/kubernetes/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provider/kubernetes/client.go b/provider/kubernetes/client.go index d6670a278..971efe033 100644 --- a/provider/kubernetes/client.go +++ b/provider/kubernetes/client.go @@ -221,7 +221,7 @@ func (c *clientImpl) WatchSecrets(watchCh chan<- interface{}, stopCh <-chan stru c.secStore, c.secController = cache.NewInformer( source, - &v1.Endpoints{}, + &v1.Secret{}, resyncPeriod, newResourceEventHandlerFuncs(watchCh)) go c.secController.Run(stopCh)