Allow operator to start even if not all watched namespaces are accessible #1405
Labels
needs-discussion
Issue needs to be discussed more before working on it
Milestone
Bug Report
If the operator is configured to watch a certain list of namespaces (lets say
ns1, ns2
) if any one of them is not accessible the operator cannot create the informers and simply won't start even if other namespaces could be watched.It would be better if the operator would simply LOG an error and periodically retry the creation of the informers for the namespaces with the missing access rights. This could be important in environments when the operator is watching user controlled namespaces, and to avoid scenarios where the user accidentally (or intentionally) removes the rolebindings that the operator needs for watching it. Currently a malicious user can basically kill the operator by simply deleting the rolebinding.
What did you do?
Start the operator to watch
ns1,ns2
but only set the role binding forns1
.What did you expect to see?
Log periodic error about missing permissions for ns2 and start watching ns1
What did you see instead? Under which circumstances?
The operator doesn't start at all.
Environment
Minikube
The text was updated successfully, but these errors were encountered: