-
Notifications
You must be signed in to change notification settings - Fork 6.6k
fix(appset): add applicationset leader election to roles and clean up (#14369) #23976
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
fix(appset): add applicationset leader election to roles and clean up (#14369) #23976
Conversation
Signed-off-by: Manuelraa <[email protected]>
Signed-off-by: rumstead <[email protected]>
…controller-leader-election-rbac
Signed-off-by: rumstead <[email protected]>
Signed-off-by: rumstead <[email protected]>
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
| - apps | ||
| - extensions | ||
| - coordination.k8s.io | ||
| resources: |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 Report✅ All modified and coverable lines are covered by tests. 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. |
…argoproj#14369) (argoproj#23976) Signed-off-by: Manuelraa <[email protected]> Signed-off-by: rumstead <[email protected]> Co-authored-by: Manuelraa <[email protected]> Signed-off-by: enneitex <[email protected]>
…argoproj#14369) (argoproj#23976) Signed-off-by: Manuelraa <[email protected]> Signed-off-by: rumstead <[email protected]> Co-authored-by: Manuelraa <[email protected]>
…argoproj#14369) (argoproj#23976) Signed-off-by: Manuelraa <[email protected]> Signed-off-by: rumstead <[email protected]> Co-authored-by: Manuelraa <[email protected]> Signed-off-by: Mangaal <[email protected]>
…argoproj#14369) (argoproj#23976) Signed-off-by: Manuelraa <[email protected]> Signed-off-by: rumstead <[email protected]> Co-authored-by: Manuelraa <[email protected]>
…argoproj#14369) (argoproj#23976) Signed-off-by: Manuelraa <[email protected]> Signed-off-by: rumstead <[email protected]> Co-authored-by: Manuelraa <[email protected]>
…argoproj#14369) (argoproj#23976) Signed-off-by: Manuelraa <[email protected]> Signed-off-by: rumstead <[email protected]> Co-authored-by: Manuelraa <[email protected]>
fixes #14369
Checklist: