Skip to content

Commit

Permalink
Create a new map of namespaces
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Yacob <[email protected]>
  • Loading branch information
MarcosDY committed Dec 6, 2023
1 parent 36aceac commit feb9f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1alpha1/controllermanagerconfig_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func addOptionsFromConfigSpec(o *ctrl.Options, configSpec ControllerManagerConfi
}

if len(o.Cache.DefaultNamespaces) == 0 && configSpec.CacheNamespace != "" {
o.Cache.DefaultNamespaces[configSpec.CacheNamespace] = cache.Config{}
o.Cache.DefaultNamespaces = map[string]cache.Config{configSpec.CacheNamespace: {}}
}

if o.Metrics.BindAddress == "" && configSpec.Metrics.BindAddress != "" {
Expand Down

0 comments on commit feb9f0f

Please sign in to comment.