Skip to content

Comments

fix: add RBAC clusters/finalizers permission and fix Makefile paths#66

Open
ermakov-oleg wants to merge 1 commit intooperasoftware:mainfrom
ermakov-oleg:fix/rbac-cluster-finalizers
Open

fix: add RBAC clusters/finalizers permission and fix Makefile paths#66
ermakov-oleg wants to merge 1 commit intooperasoftware:mainfrom
ermakov-oleg:fix/rbac-cluster-finalizers

Conversation

@ermakov-oleg
Copy link

Summary

Port of upstream #465.

Also includes the related upstream follow-up for Task-based generation: #426.

Problem 1: The plugin controller needs to update finalizers on Cluster resources (to prevent deletion of clusters that have active archives), but the RBAC role was missing the clusters/finalizers update permission. This caused permission-denied errors in the reconciliation loop.

Problem 2: The make manifests command only scanned ./api/... for kubebuilder RBAC markers, but the +kubebuilder:rbac annotation for clusters/finalizers is in internal/controller/archive_controller.go. The generated role.yaml was incomplete.

Problem 3: CI/release manifests are generated through task manifest (Taskfile), so fixing only Makefile can still leave generated RBAC/manifests out of sync.

Fix: Added paths="./internal/..." for controller-gen in Makefile and Taskfile.yml so RBAC markers under internal are included. Added the +kubebuilder:rbac marker for clusters/finalizers and regenerated RBAC/manifest artifacts.

…ssionEnforcement

Port upstream fixes for clusters/finalizers RBAC and keep Task-based
manifest generation aligned with kubebuilder RBAC markers under internal/.
This updates Makefile/Taskfile generation paths and regenerates role/manifest.

Signed-off-by: ermakov-oleg <ermakovolegs@gmail.com>
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.

1 participant