-
Notifications
You must be signed in to change notification settings - Fork 163
Description
What happened?
According to the documentation, the logVerbose configuration option can be set to values between 1 and 10.
When setting logVerbose=1, the controller fails at runtime and logs the following error:
"An error occured retrieving the top level controller for this pod" err="prometheuses.monitoring.coreos.com is forbidden: User "system:serviceaccount:NAMESPACE:goldilocks-controller" cannot list resource "prometheuses" in API group "monitoring.coreos.com" in the namespace "NAMESPACE"" prometheus-cluster-prometheus-0="NAMESPACE"
The error indicates that the controller attempts to list prometheuses.monitoring.coreos.com, but the service account does not have the required RBAC permissions.
This behavior only occurs when logVerbose is set to 1.
When logVerbose is set to the default value (2) or higher values such as 3, the controller runs without errors using the same default RBAC configuration.
What did you expect to happen?
- Setting logVerbose to any documented value (1–10) should not cause the controller to fail
- Log verbosity should only affect logging output and should not introduce additional functional behavior or RBAC requirements
- If additional RBAC permissions are required for certain verbosity levels, this should be clearly documented
- As a user following the documentation, there is currently no indication that setting logVerbose=1 requires extra role or cluster role permissions, making this behavior unexpected and difficult to diagnose
How can we reproduce this?
- Deploy the controller with the RBAC configuration recommended by the documentation
- Configure the controller with logVerbose=1
- Restart or redeploy the controller
- Observe the controller logs and see the RBAC error related to listing prometheuses.monitoring.coreos.com
- Change logVerbose back to 2 (default) or 3
- Restart the controller again and observe that the error disappears and the controller works correctly without any RBAC changes
Version
v4.14.1 / helm version 10.2.0
Search
- I did search for other open and closed issues before opening this.
Code of Conduct
- I agree to follow this project's Code of Conduct
Additional context
No response