From bbbdabe8856a957e7280db56eecc304ba967f96c Mon Sep 17 00:00:00 2001 From: Jan Willies Date: Tue, 18 Jun 2019 10:27:01 +0200 Subject: [PATCH] handle special case of "--policies=*" to preserve backwards compatibility --- pkg/configmap/configmap.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/configmap/configmap.go b/pkg/configmap/configmap.go index 8ad758be..38847a35 100644 --- a/pkg/configmap/configmap.go +++ b/pkg/configmap/configmap.go @@ -129,6 +129,11 @@ func (s *Sync) Run(namespaces []string) (chan struct{}, error) { } quit := make(chan struct{}) + if namespaces[0] == "*" { + namespaces[0] = v1.NamespaceAll + namespaces = namespaces[0:1] + } + for _, namespace := range namespaces { source := cache.NewListWatchFromClient( client,