grafana / loki

Like Prometheus, but for logs.
https://grafana.com/loki
GNU Affero General Public License v3.0
23.49k stars 3.4k forks source link

fix(operator): Watch for CredentialsRequests on CCOAuthEnv only #13299

Closed periklis closed 2 months ago

periklis commented 3 months ago

What this PR does / why we need it: Registers the controller watcher for CredentialRequest only when CCOAuthEnv: true OpenShift environments. Resolves issue:

{"_ts":"2024-04-24T16:02:28.027229225Z","_level":"0","_component":"loki-operator_controller-runtime_source_EventHandler","_message":"failed to get informer from cache","_error":{"msg":"failed to get API group resources: unable to retrieve the complete list of server APIs: cloudcredential.openshift.io/v1: the server could not find the requested resource"}}

Which issue(s) this PR fixes: Fixes #

Special notes for your reviewer:

Checklist