Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add finalizers subresource to ArgoCDRole and ArgoCDRoleBindin… #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

filiprafaj
Copy link
Contributor

Problem

Controllers were unable to manage finalizers on ArgoCDRole and ArgoCDRoleBinding resources due to missing subresource support in the CRDs, resulting e.g. in the following error:

error when adding finalizer: argocdrolebindings.rb sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler

Solution

Updated the ArgoCDRole and ArgoCDRoleBinding CRDs to include finalizers as a subresource, allowing more granular RBAC permissions to manage finalizers without requiring full update access on the main resources.

…g CRDs

- Updated ArgoCDRole and ArgoCDRoleBinding CustomResourceDefinitions to include `finalizers` as a subresource.
- Enables separate RBAC permissions for managing finalizers on `argocdroles` and `argocdrolebindings` without requiring full update permissions on the main resources.

Signed-off-by: Filip Rafaj <[email protected]>
@ggkhrmv
Copy link
Collaborator

ggkhrmv commented Nov 14, 2024

Hi @filiprafaj, can u provide some details on the error? And preferably a way to reproduce it :) Thank you!

@ggkhrmv
Copy link
Collaborator

ggkhrmv commented Nov 14, 2024

The information about finalizers is saved in CRs metadata as of yet

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