Skip to content

Commit

Permalink
Set the namespace for the cache when creating the cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawn Hurley committed Jan 21, 2019
1 parent cea7910 commit 2ecd8ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cache/multi_namespace_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ func NewMultiNamespacedCache(namespaces []string) func(config *rest.Config, opts
return func(config *rest.Config, opts Options) (Cache, error) {
caches := map[string]Cache{}
for _, ns := range namespaces {
opts.Namespace = ns
c, err := New(config, opts)
if err != nil {
return nil, err
Expand Down

0 comments on commit 2ecd8ff

Please sign in to comment.