Closed snorwin closed 5 months ago
https://sdk.operatorframework.io/docs/building-operators/golang/operator-scope/#watching-resources-in-a-set-of-namespaces
Watching resources in a set of Namespaces
MultiNamespacedCacheBuilder is deprecated and removed since controller-runtiime v0.16.0 . It would be great if the example is updated using cache.Options.Namespace instead.
MultiNamespacedCacheBuilder
cache.Options.Namespace
NewCache: func(config *rest.Config, opts cache.Options) (cache.Cache, error) { opts.DefaultNamespaces = map[string]cache.Config{ "my-ns": cache.Config{}, } return cache.New(config, opts) },
https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.15.3/pkg/cache#MultiNamespacedCacheBuilder
What is the URL of the document?
https://sdk.operatorframework.io/docs/building-operators/golang/operator-scope/#watching-resources-in-a-set-of-namespaces
Which section(s) is the issue in?
Watching resources in a set of Namespaces
What needs fixing?
MultiNamespacedCacheBuilder
is deprecated and removed since controller-runtiime v0.16.0 . It would be great if the example is updated usingcache.Options.Namespace
instead.Additional context
https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.15.3/pkg/cache#MultiNamespacedCacheBuilder