installModes: - supported: true type: OwnNamespace - supported: true type: SingleNamespace - supported: true type: MultiNamespace - supported: true type: AllNamespaces
spec: targetNamespaces: - 3scale-test - 3scale-crs
E1010 09:52:38.504468 1 reflector.go:178] pkg/mod/k8s.io/clie...@v0.18.6/tools/cache/reflector.go:125: Failed to list *v1beta1.OpenAPI: openapis.capabilities.3scale.net is forbidden: User "system:serviceaccount:3scale-test:3scale-operator" cannot list resource "openapis" in API group "capabilities.3scale.net" in the namespace "3scale-crs,3scale-test" E1010 09:52:38.504636 1 reflector.go:178] pkg/mod/k8s.io/clie...@v0.18.6/tools/cache/reflector.go:125: Failed to list *v1beta1.Backend: backends.capabilities.3scale.net is forbidden: User "system:serviceaccount:3scale-test:3scale-operator" cannot list resource "backends" in API
kubectl auth can-i -n 3scale-test list backends --as system:serviceaccount:3scale-test:3scale-operator yes kubectl auth can-i -n 3scale-crs list backends --as system:serviceaccount:3scale-test:3scale-operator yes
Austin Cunningham
Senior Software Engineer - ClouD Services
Communications House, Cork Road, Waterford X91NY33
Ireland
![]()
--
You received this message because you are subscribed to the Google Groups "Operator Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to operator-framew...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/operator-framework/CAHE0bNG-1YQiykUSQk3f-YyuYenFPKq5BRMey-gpjw4FdNa2FA%40mail.gmail.com.
Product Manager Operator Framework & Quay
Red Hat OpenShift
...
watchNamespace, err := getWatchNamespace()
if err != nil {
setupLog.Error(err, "unable to get WatchNamespace, " +
"the manager will watch and manage resources in all Namespaces")
}
options := ctrl.Options{
Scheme: scheme,
MetricsBindAddress: metricsAddr,
Port: 9443,
LeaderElection: enableLeaderElection,
LeaderElectionID: "f1c5ece8.example.com",
Namespace: watchNamespace, // namespaced-scope when the value is not an empty string
}
// Add support for MultiNamespace set in WATCH_NAMESPACE (e.g ns1,ns2)
if strings.Contains(watchNamespace, ",") {
setupLog.Info("manager set up with multiple namespaces", "namespaces", watchNamespace)
// configure cluster-scoped with MultiNamespacedCacheBuilder
options.Namespace = ""
options.NewCache = cache.MultiNamespacedCacheBuilder(strings.Split(watchNamespace, ","))
}
...One more question, should we care about config/manager/manager.yaml as WATCH_NAMESPACE will just be treated as a string whether the value is ns or ns1,ns2 ?








To view this discussion on the web visit https://groups.google.com/d/msgid/operator-framework/CAHE0bNEdKTZEL36S6CCLr1h_xEFrAbdkmdV69WVZWaq1BADPzA%40mail.gmail.com.