-
Notifications
You must be signed in to change notification settings - Fork 486
Open
Description
Expected Behavior
No errors attempting to list resources.
Current Behavior
Every minute, the pod of the controller has this error message:
E0410 02:05:03.306320 1 main-controller.go:1549] "Unhandled Error" err="error syncing 'postgres-operator/postgres-backup-tenant': prometheusagents.monitoring.coreos.com is forbidden: User \"system:serviceaccount:minio-operator:minio-operator\" cannot list resource \"prometheusagents\" in API group \"monitoring.coreos.com\" in the namespace \"default\"" logger="UnhandledError"
Possible Solution
I think prometheusagents
just needs to be added to the role binding in the repository here. The helm version does this here.
Steps to Reproduce (for bugs)
- Add the operator as a kustomize resource by adding
https://github.com/minio/operator/?ref=v7.0.1
to the list of resources (I do this here) - Deploy a tenant (I do this here).
- View the logs of the operator
Context
I noticed this while trying to debug why my tenant is stuck in a progressing state, and I was digging into the logs.
Regression
Unclear; I just started to use this operator.
Your Environment
- Version used (
minio-operator
): 7.0.1 - Environment name and version (e.g. kubernetes v1.17.2): k3s v1.32.1
- Server type and version:
- Operating System and version (
uname -a
):Linux {hostname} 6.8.0-52-generic #53-Ubuntu SMP PREEMPT_DYNAMIC Sat Jan 11 00:06:25 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
- Link to your deployment file: https://github.com/sdwilsh/ansible-playbooks/blob/main/kustomization/overlays/prod/postgres-operator/tenant.yml
yet-an-other