Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operator won't reconcile without CRUD permissions for ClusterRoles and Bindings #2525

Closed
swiatekm opened this issue Jan 17, 2024 · 1 comment
Labels
bug Something isn't working needs triage

Comments

@swiatekm
Copy link
Contributor

Component(s)

operator

What happened?

Description

#2394 was supposed to require permissions for ClusterRoles only if the command-line flag was enabled. However, we try to reconcile the resources unconditionally here:

. This should be conditional. As is, the change is unintentionally breaking.

Steps to Reproduce

@TylerHelmuth noticed this while upgrading operator version in the Helm Chart: open-telemetry/opentelemetry-helm-charts#998. We didn't notice because we added these permissions to our cluster role in kustomize manifests.

Expected Result

Operator should reconcile resources without these permissions if the command-line flag wasn't set.

Kubernetes Version

1.24

Operator version

0.92.0

Collector version

0.92.0

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

Log output

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

1 participant