-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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!: remove rbac when using argocd cluster rm (#8958) #8969
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8969 +/- ##
==========================================
- Coverage 45.22% 45.19% -0.04%
==========================================
Files 214 214
Lines 25424 25438 +14
==========================================
- Hits 11499 11497 -2
- Misses 12307 12324 +17
+ Partials 1618 1617 -1
Continue to review full report at Codecov.
|
272b444
to
02ccf97
Compare
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.
Can we get some test coverage on this? I'm not sure how difficult that might be, since it involves multiple clusters.
Also, should we consider this a breaking change? Seems unlikely, but I could imagine a script which assumes the config will be removed but the RBAC will remain.
I'll look into some of the e2e tests and see how challenging this would be. But yeah, that was my only initial hesitation was how complex the test could end up being.
Yeah, maybe scripts exist to clean up the rbac after the fact. I would consider it breaking in that sense. But hopefully that's more of an edge case, and I would assume this would be a welcome change by anyone doing that. If we want to treat this as breaking, fine by me. Just let me know what that process would be to introduce a change like this then. |
If e2e tests are too complex, maybe we can just test @alexmt what's the process for a minor breaking change? I'm thinking:
|
f57f942
to
89c559f
Compare
@crenshaw-dev Added some unit tests for |
I'm just gonna roll with the label and the title change. Someone can correct me later if that's wrong. Will review the additional tests! |
09cc059
to
0683ff3
Compare
Signed-off-by: Daniel Helfand <helfand.4@gmail.com>
0683ff3
to
b32deab
Compare
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.
LGTM!
Signed-off-by: Daniel Helfand <helfand.4@gmail.com> Signed-off-by: wojtekidd <wojtek.cichon@protonmail.com>
Closes #8958
This change will remove rbac used by Argo CD for creating resources on external clusters once the cluster is removed.
Note on DCO:
If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.
Checklist: