You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/documentation/faq.md
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -47,14 +47,14 @@ way.
47
47
48
48
### Q: How can I run an operator without cluster scope rights?
49
49
50
-
By default, JOSDK require access to CR at cluster scope. You may not be granted such
50
+
By default, JOSDK requires access to CRs at cluster scope. You may not be granted such
51
51
rights and you will see some error at startup that looks like:
52
52
53
53
```plain
54
54
io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at: https://kubernetes.local.svc/apis/mygroup/v1alpha1/mycr. Message: Forbidden! Configured service account doesn't have access. Service account may have been revoked. mycrs.mygroup is forbidden: User "system:serviceaccount:ns:sa" cannot list resource "mycrs" in API group "mygroup" at the cluster scope.
55
55
```
56
56
57
-
To restrict the operator to a set of namesapce, you may override the namespaces watched by a reconciler
57
+
To restrict the operator to a set of namespaces, you may override which namespaces are watched by a reconciler
58
58
at [Reconciler-level configuration](./configuration.md#reconciler-level-configuration):
59
59
60
60
```java
@@ -64,6 +64,7 @@ Reconciler reconciler;
64
64
operator.register(reconciler, configOverrider ->
65
65
configOverrider.settingNamespace("mynamespace"));
66
66
```
67
+
Note that configuring the watched namespaces can also be done using the `@ControllerConfiguration` annotation.
67
68
68
69
Furthermore, you may not be able to list CRDs at startup which is required when `checkingCRDAndValidateLocalModel`
69
70
is `true` (by default). To disable set it to `false` at [Operator-level configuration](./configuration.md#operator-level-configuration):
0 commit comments