1
0
mirror of https://github.com/containous/traefik.git synced 2024-12-23 17:34:13 +03:00

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.
This commit is contained in:
Kekoa Vincent 2017-06-01 20:50:50 -05:00 committed by Ludovic Fernandez
parent 1db22a6e63
commit ac5ab13a4c

View File

@ -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)