Skip to content

Commit 1c722db

Browse files
metacosmscrocquesel
authored andcommitted
fix: wording, clarify that annotation can also be used to configure namespaces
1 parent 1bcbe9c commit 1c722db

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/documentation/faq.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ way.
4747

4848
### Q: How can I run an operator without cluster scope rights?
4949

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
5151
rights and you will see some error at startup that looks like:
5252

5353
```plain
5454
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.
5555
```
5656

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
5858
at [Reconciler-level configuration](./configuration.md#reconciler-level-configuration):
5959

6060
```java
@@ -64,6 +64,7 @@ Reconciler reconciler;
6464
operator.register(reconciler, configOverrider ->
6565
configOverrider.settingNamespace("mynamespace"));
6666
```
67+
Note that configuring the watched namespaces can also be done using the `@ControllerConfiguration` annotation.
6768

6869
Furthermore, you may not be able to list CRDs at startup which is required when `checkingCRDAndValidateLocalModel`
6970
is `true` (by default). To disable set it to `false` at [Operator-level configuration](./configuration.md#operator-level-configuration):

0 commit comments

Comments
 (0)