operator-sdk icon indicating copy to clipboard operation
operator-sdk copied to clipboard

Operator-SDK version 1.34.1 removed RBAC privs that previous versions were correctly generating from Helm

Open mpryc opened this issue 1 year ago • 1 comments

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 avatar Apr 26 '24 14:04 mpryc

  • Duplicate: #6698

acornett21 avatar May 02 '24 22:05 acornett21

Closing as duplicate.

acornett21 avatar May 07 '24 21:05 acornett21