Repository navigation
Conversation
build-manifests.py only embedded the operator ClusterRole into the CSV and silently dropped any namespaced Role from the Helm chart. An operator that needs permissions only in its own namespace therefore had to request them cluster-wide to keep them in the OLM bundle. Pick up an optional `<op>-role` Role and add its rules to `spec.install.spec.permissions`, bound to the operator service account. OLM creates the RoleBinding itself, so the chart's RoleBinding is not needed. Operators without such a Role keep `permissions: []`. Needed by commons-operator, which stores the key of the restarter's content digests in a Secret in its own namespace (stackabletech/commons-operator#481).
Open
20 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Needed for stackabletech/commons-operator#481, which stores the key of the restarter's content digests in a Secret in its own namespace.
build-manifests.py only embedded the operator ClusterRole into the CSV and silently dropped any namespaced Role from the Helm chart. An operator that needs permissions only in its own namespace therefore had to request them cluster-wide to keep them in the OLM bundle.
Pick up an optional
<op>-roleRole and add its rules tospec.install.spec.permissions, bound to the operator service account. OLM creates the RoleBinding itself, so the chart's RoleBinding is not needed. Operators without such a Role keeppermissions: [].Docs
Release note
Checklist
Author
Reviewer
Acceptance