Skip to content

Fix missing RoleReconciler ClusterRole secrets verbs as the reconciler is watching referenced Secrets - #21

Merged
ThoSap merged 1 commit into
mainfrom
fix-missing-role-reconciler-secrets-cluster-role-binding
Jan 30, 2026
Merged

Fix missing RoleReconciler ClusterRole secrets verbs as the reconciler is watching referenced Secrets#21
ThoSap merged 1 commit into
mainfrom
fix-missing-role-reconciler-secrets-cluster-role-binding

Conversation

@ThoSap

@ThoSap ThoSap commented Jan 30, 2026

Copy link
Copy Markdown
Member

Report a Quarkus JOSDK bug as configuring the quarkus.kubernetes.rbac.cluster-role* properties or adding the ClusterRole and ClusterRoleBinding in operator/src/main/kubernetes/kubernetes.yml does not work, JOSDK simply ignores the ClusterRoleBinding when creating the final Helm chart, but it adds the ClusterRole.

See the https://quarkus.io/guides/all-config

@ThoSap
ThoSap requested a review from Copilot January 30, 2026 21:39
@ThoSap ThoSap self-assigned this Jan 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses a missing RBAC configuration for the RoleReconciler component, which requires permissions to watch Secret resources but lacks the necessary ClusterRole verbs.

Changes:

  • Added a workaround in the release workflow to patch the ClusterRole with required secrets permissions
  • Documented the JOSDK limitation preventing the standard RBAC configuration approach

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
operator/src/main/resources/application.yml Documents the attempted RBAC configuration and known JOSDK limitation with commented-out config
.github/workflows/release.yml Implements a yq patch step to add secrets verbs to the rolereconciler-cluster-role during release

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/release.yml
@ThoSap
ThoSap merged commit e897c9d into main Jan 30, 2026
4 checks passed
@ThoSap
ThoSap deleted the fix-missing-role-reconciler-secrets-cluster-role-binding branch January 30, 2026 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants