Skip to content

Conversation

@rumstead
Copy link
Member

@rumstead rumstead commented Jul 28, 2025

fixes #14369

❯ k get lease
No resources found in argocd namespace.

❯ kgp | grep applicationset | wc -l
       0

❯ k scale deployment argocd-applicationset-controller --replicas=3
deployment.apps/argocd-applicationset-controller scaled

❯ k get lease
NAME                                   HOLDER                                                                                   AGE
58ac56fa.applicationsets.argoproj.io   argocd-applicationset-controller-6d4989d77f-4g4kk_aad428ab-e497-4572-b3bf-b0468bfad71e   9s

❯ k delete pod argocd-applicationset-controller-6d4989d77f-4g4kk
pod "argocd-applicationset-controller-6d4989d77f-4g4kk" deleted

❯ k get lease
NAME                                   HOLDER                                                                                   AGE
58ac56fa.applicationsets.argoproj.io   argocd-applicationset-controller-6d4989d77f-dqx2p_aa0bd163-f747-4cfd-af72-6cacbeaa638f   60s

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this does not need to be in the release notes.
  • The title of the PR states what changed and the related issues number (used for the release note).
  • The title of the PR conforms to the Toolchain Guide
  • I've included "Closes [ISSUE #]" or "Fixes [ISSUE #]" in the description to automatically close the associated issue.
  • I've updated both the CLI and UI to expose my feature, or I plan to submit a second PR with them.
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have signed off all my commits as required by DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My build is green (troubleshooting builds).
  • My new feature complies with the feature status guidelines.
  • I have added a brief description of why this PR is necessary and/or what this PR solves.
  • Optional. My organization is added to USERS.md.
  • Optional. For bug fixes, I've indicated what older releases this fix should be cherry-picked into (this may or may not happen depending on risk/complexity).

@rumstead rumstead requested a review from a team as a code owner July 28, 2025 19:31
@bunnyshell
Copy link

bunnyshell bot commented Jul 28, 2025

❌ Preview Environment deleted from Bunnyshell

Available commands (reply to this comment):

  • 🚀 /bns:deploy to deploy the environment

- apps
- extensions
- coordination.k8s.io
resources:
Copy link
Member Author

Choose a reason for hiding this comment

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

I am confused why the applicationset controller needs get, list, watch for deployments. I removed it but can add it back.

Copy link
Member

Choose a reason for hiding this comment

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

Agreed, I checked these permissions have been there from the very beginning but couldn't find any usage of these perms in the appset code so far.

- apiGroups:
- ""
resources:
- configmaps
Copy link
Member Author

Choose a reason for hiding this comment

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

Leader election no longer requires config maps - kubernetes-sigs/controller-runtime#1773

- ""
resources:
- secrets
- configmaps
Copy link
Member Author

@rumstead rumstead Jul 28, 2025

Choose a reason for hiding this comment

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

I don't think the applicationset controller needs any config map perms now?

Copy link
Member

Choose a reason for hiding this comment

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

some appset plugin generator still needs access to configmaps eg.

cm, err := g.getConfigMap(ctx, generatorConfig.ConfigMapRef.Name)

Copy link
Member

Choose a reason for hiding this comment

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

But I don't see any need for write perms in the code too, so this should be fine

@codecov
Copy link

codecov bot commented Jul 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.21%. Comparing base (d2b881a) to head (ff31957).
⚠️ Report is 784 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #23976      +/-   ##
==========================================
+ Coverage   60.18%   60.21%   +0.02%     
==========================================
  Files         346      346              
  Lines       59276    59276              
==========================================
+ Hits        35676    35692      +16     
+ Misses      20740    20726      -14     
+ Partials     2860     2858       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rumstead rumstead merged commit 31e0f42 into argoproj:master Jul 29, 2025
28 checks passed
@rumstead rumstead deleted the fix/appset-controller-leader-election-rbac branch July 29, 2025 15:38
enneitex pushed a commit to enneitex/argo-cd that referenced this pull request Aug 24, 2025
downfa11 pushed a commit to downfa11/argo-cd that referenced this pull request Aug 25, 2025
Mangaal pushed a commit to Mangaal/argo-cd that referenced this pull request Sep 10, 2025
downfa11 pushed a commit to downfa11/argo-cd that referenced this pull request Sep 12, 2025
sivasath16 pushed a commit to sivasath16/argo-cd that referenced this pull request Sep 17, 2025
sivasath16 pushed a commit to sivasath16/argo-cd that referenced this pull request Sep 17, 2025
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.

Manifest is missing required RBAC rules for ApplicationSetController leader election

4 participants