Skip to content

Commit

Permalink
handle special case of "--policies=*" to preserve backwards compatibi…
Browse files Browse the repository at this point in the history
…lity
  • Loading branch information
janwillies committed Jun 18, 2019
1 parent 66eaace commit bbbdabe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/configmap/configmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bbbdabe

Please sign in to comment.