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-SDK version 1.34.1 removed RBAC privs that previous versions were correctly generating from Helm #6731

Closed
mpryc opened this issue Apr 26, 2024 · 2 comments
Labels
triage/duplicate Indicates an issue is a duplicate of other open issue.

Comments

@mpryc
Copy link

mpryc commented Apr 26, 2024

Bug Report

What did you do?

Used operator-sdk 1.34.1 to recreate pelorus operator files.

We have number of calls to the operators-sdk wrapped in automation to recreate entire operator.

Lines 260; 270; 290; 308:
https://github.com/dora-metrics/pelorus/blob/master/scripts/update_projects_version.py#L260

We also apply this patch in the middle of ran just before line 308 from the above script:
https://github.com/dora-metrics/pelorus/blob/master/scripts/pelorus-operator-patches/03_pelorus_operators_roles.diff

As a result rbac privs are not correctly generated. All the RBAC from the above patch are not included in the final pelorus-operator/config/rbac/role.yaml file.

This did not happen in the previous versions of operator-sdk.

As a result the operator fails to install.

What did you expect to see?

Properly included RBAC privs from the path that ends up in the pelorus-operator/config/rbac/role.yaml file.

What did you see instead? Under which circumstances?

Using operator-sdk 1.34.1 those RBAC are not properly included (they are missing)

Environment

Operator type:

Kubernetes cluster type:

$ operator-sdk version

$ go version (if language is Go)

$ kubectl version

Possible Solution

Additional context

@mpryc mpryc changed the title Operator-SDK version 1.4.1 removed RBAC privs that previous versions were correctly generating from Helm Operator-SDK version 1.34.1 removed RBAC privs that previous versions were correctly generating from Helm Apr 26, 2024
@acornett21
Copy link
Contributor

@acornett21 acornett21 added the triage/duplicate Indicates an issue is a duplicate of other open issue. label May 7, 2024
@acornett21
Copy link
Contributor

Closing as duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage/duplicate Indicates an issue is a duplicate of other open issue.
Projects
None yet
Development

No branches or pull requests

2 participants