-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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): events not honouring configured namespaces (#21219) #21241
Conversation
… ApplicationSet events Namespace filtering is applied to Update, Delete and Generic events. Fixes argoproj#21219 Signed-off-by: eadred <eadred77@googlemail.com>
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
Change makes sense to me! Could you write a test? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #21241 +/- ##
==========================================
+ Coverage 53.35% 55.25% +1.89%
==========================================
Files 337 337
Lines 56846 56845 -1
==========================================
+ Hits 30330 31407 +1077
+ Misses 23876 22744 -1132
- Partials 2640 2694 +54 ☔ View full report in Codecov by Sentry. |
Signed-off-by: eadred <eadred77@googlemail.com>
Signed-off-by: eadred <eadred77@googlemail.com>
Signed-off-by: eadred <eadred77@googlemail.com>
I'm not quite sure what the failing unit test has to do with these changes. |
PR #21271 attempts to fix the unrelated data race test failures. |
Hi @crenshaw-dev - would you be able to re-review this please? |
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. Please resolve conflicts, I think another PR also modified the predicated, so the merge might required more testing.
Signed-off-by: eadred <eadred77@googlemail.com>
@agaudreault I've merged. The conflicts were just because two new tests were trying to occupy the same space in the tests file. The predicate I've changed hasn't been modified on master since my branch was created - there's a new predicate, |
Also would it be possible for this fix to be cherry-picked to 2.13 please? |
/cherry-pick release-2.14 |
/cherry-pick release-2.13 |
Cherry-pick failed with |
Cherry-pick failed with |
@eadred can you open manual cherry-picks against 2.14, 2.13, 2.12, and 2.11 (or as far back as the bug exists within those supported releases)? |
@crenshaw-dev This may be a stupid question, but do you just mean (for example for 2.14)?:
Or is there some alternative process? |
@eadred that's basically it! Only caveat I'd add is that I'd create a new branch based off release-2.14 (etc.) before cherry-picking, just so you have a clean |
…) (argoproj#21241) * fix: 21219 Honour ARGOCD_APPLICATIONSET_CONTROLLER_NAMESPACES for all ApplicationSet events Namespace filtering is applied to Update, Delete and Generic events. Fixes argoproj#21219 Signed-off-by: eadred <eadred77@googlemail.com> * fix: 21219 Add tests for ignoreNotAllowedNamespaces Signed-off-by: eadred <eadred77@googlemail.com> * fix: 21219 Remove redundant package import Signed-off-by: eadred <eadred77@googlemail.com> --------- Signed-off-by: eadred <eadred77@googlemail.com>
…) (argoproj#21241) * fix: 21219 Honour ARGOCD_APPLICATIONSET_CONTROLLER_NAMESPACES for all ApplicationSet events Namespace filtering is applied to Update, Delete and Generic events. Fixes argoproj#21219 Signed-off-by: eadred <eadred77@googlemail.com> * fix: 21219 Add tests for ignoreNotAllowedNamespaces Signed-off-by: eadred <eadred77@googlemail.com> * fix: 21219 Remove redundant package import Signed-off-by: eadred <eadred77@googlemail.com> --------- Signed-off-by: eadred <eadred77@googlemail.com>
…) (argoproj#21241) * fix: 21219 Honour ARGOCD_APPLICATIONSET_CONTROLLER_NAMESPACES for all ApplicationSet events Namespace filtering is applied to Update, Delete and Generic events. Fixes argoproj#21219 Signed-off-by: eadred <eadred77@googlemail.com> * fix: 21219 Add tests for ignoreNotAllowedNamespaces Signed-off-by: eadred <eadred77@googlemail.com> * fix: 21219 Remove redundant package import Signed-off-by: eadred <eadred77@googlemail.com> --------- Signed-off-by: eadred <eadred77@googlemail.com>
…) (argoproj#21241) * fix: 21219 Honour ARGOCD_APPLICATIONSET_CONTROLLER_NAMESPACES for all ApplicationSet events Namespace filtering is applied to Update, Delete and Generic events. Fixes argoproj#21219 Signed-off-by: eadred <eadred77@googlemail.com> * fix: 21219 Add tests for ignoreNotAllowedNamespaces Signed-off-by: eadred <eadred77@googlemail.com> * fix: 21219 Remove redundant package import Signed-off-by: eadred <eadred77@googlemail.com> --------- Signed-off-by: eadred <eadred77@googlemail.com>
@crenshaw-dev In all four of the cherry-pick PRs above the |
) (#21522) * fix: 21219 Honour ARGOCD_APPLICATIONSET_CONTROLLER_NAMESPACES for all ApplicationSet events Namespace filtering is applied to Update, Delete and Generic events. Fixes #21219 * fix: 21219 Add tests for ignoreNotAllowedNamespaces * fix: 21219 Remove redundant package import --------- Signed-off-by: eadred <eadred77@googlemail.com>
) (#21521) * fix: 21219 Honour ARGOCD_APPLICATIONSET_CONTROLLER_NAMESPACES for all ApplicationSet events Namespace filtering is applied to Update, Delete and Generic events. Fixes #21219 * fix: 21219 Add tests for ignoreNotAllowedNamespaces * fix: 21219 Remove redundant package import --------- Signed-off-by: eadred <eadred77@googlemail.com>
) (#21520) * fix: 21219 Honour ARGOCD_APPLICATIONSET_CONTROLLER_NAMESPACES for all ApplicationSet events Namespace filtering is applied to Update, Delete and Generic events. Fixes #21219 * fix: 21219 Add tests for ignoreNotAllowedNamespaces * fix: 21219 Remove redundant package import --------- Signed-off-by: eadred <eadred77@googlemail.com>
) (#21519) * fix: 21219 Honour ARGOCD_APPLICATIONSET_CONTROLLER_NAMESPACES for all ApplicationSet events Namespace filtering is applied to Update, Delete and Generic events. Fixes #21219 * fix: 21219 Add tests for ignoreNotAllowedNamespaces * fix: 21219 Remove redundant package import --------- Signed-off-by: eadred <eadred77@googlemail.com>
…) (argoproj#21241) * fix: 21219 Honour ARGOCD_APPLICATIONSET_CONTROLLER_NAMESPACES for all ApplicationSet events Namespace filtering is applied to Update, Delete and Generic events. Fixes argoproj#21219 Signed-off-by: eadred <eadred77@googlemail.com> * fix: 21219 Add tests for ignoreNotAllowedNamespaces Signed-off-by: eadred <eadred77@googlemail.com> * fix: 21219 Remove redundant package import Signed-off-by: eadred <eadred77@googlemail.com> --------- Signed-off-by: eadred <eadred77@googlemail.com> Signed-off-by: Brett C. Dudo <brett@dudo.io>
…) (argoproj#21241) * fix: 21219 Honour ARGOCD_APPLICATIONSET_CONTROLLER_NAMESPACES for all ApplicationSet events Namespace filtering is applied to Update, Delete and Generic events. Fixes argoproj#21219 Signed-off-by: eadred <eadred77@googlemail.com> * fix: 21219 Add tests for ignoreNotAllowedNamespaces Signed-off-by: eadred <eadred77@googlemail.com> * fix: 21219 Remove redundant package import Signed-off-by: eadred <eadred77@googlemail.com> --------- Signed-off-by: eadred <eadred77@googlemail.com>
…) (argoproj#21241) * fix: 21219 Honour ARGOCD_APPLICATIONSET_CONTROLLER_NAMESPACES for all ApplicationSet events Namespace filtering is applied to Update, Delete and Generic events. Fixes argoproj#21219 Signed-off-by: eadred <eadred77@googlemail.com> * fix: 21219 Add tests for ignoreNotAllowedNamespaces Signed-off-by: eadred <eadred77@googlemail.com> * fix: 21219 Remove redundant package import Signed-off-by: eadred <eadred77@googlemail.com> --------- Signed-off-by: eadred <eadred77@googlemail.com> Signed-off-by: flbla <flbla@users.noreply.github.com>
…) (argoproj#21241) * fix: 21219 Honour ARGOCD_APPLICATIONSET_CONTROLLER_NAMESPACES for all ApplicationSet events Namespace filtering is applied to Update, Delete and Generic events. Fixes argoproj#21219 Signed-off-by: eadred <eadred77@googlemail.com> * fix: 21219 Add tests for ignoreNotAllowedNamespaces Signed-off-by: eadred <eadred77@googlemail.com> * fix: 21219 Remove redundant package import Signed-off-by: eadred <eadred77@googlemail.com> --------- Signed-off-by: eadred <eadred77@googlemail.com>
Namespace filtering is applied to Update, Delete and Generic events.
Fixes #21219
If possible I would like this fix also cherry-picked to 2.13 please.
Checklist: