From b77e3f2e64589f076d9371f958d8627b5092eda0 Mon Sep 17 00:00:00 2001 From: James Munnelly Date: Wed, 9 May 2018 17:25:58 +0100 Subject: [PATCH] Fix order of SplitMetaNamespaceKey arguments --- pkg/kubelego/watch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kubelego/watch.go b/pkg/kubelego/watch.go index d89f8184..d63bf842 100644 --- a/pkg/kubelego/watch.go +++ b/pkg/kubelego/watch.go @@ -70,7 +70,7 @@ func (kl *KubeLego) WatchReconfigure() { kl.workQueue.Forget(item) return } - name, namespace, err := cache.SplitMetaNamespaceKey(key) + namespace, name, err := cache.SplitMetaNamespaceKey(key) if err != nil { kl.Log().Errorf("worker: invalid string in workqueue %q: %v", item, err) kl.workQueue.Forget(item)