Skip to content

Error every minutes trying to list prometheusagents resources #2421

@sdwilsh

Description

@sdwilsh

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)

  1. 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)
  2. Deploy a tenant (I do this here).
  3. 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions