Skip to content

feat(olm): Embed the operator Role as CSV permissions - #137

Open
sbernauer wants to merge 2 commits into
mainfrom
feat/operator-roles
Open

sbernauer wants to merge 2 commits into
mainfrom
feat/operator-roles

Conversation

@sbernauer

@sbernauer sbernauer commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

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>-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: [].

Docs

Release note

Checklist

Author

  • AI review done, findings addressed
  • Tests added or updated
  • Changelog updated (if the repo keeps one)

Reviewer

  • Useful comments and logging
  • Docs added or updated per the style guide

Acceptance

  • Check for release notes and docs

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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Development: Waiting for Review

Development

Successfully merging this pull request may close these issues.

1 participant