fix: allow AppProject destination namespace \"\" for cluster-scoped resources (#27003)#27145
fix: allow AppProject destination namespace \"\" for cluster-scoped resources (#27003)#27145yaswanthkumar1995 wants to merge 1 commit into
Conversation
❌ Preview Environment undeployed from BunnyshellAvailable commands (reply to this comment):
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #27145 +/- ##
=======================================
Coverage 63.34% 63.34%
=======================================
Files 415 415
Lines 56545 56547 +2
=======================================
+ Hits 35819 35822 +3
+ Misses 17347 17346 -1
Partials 3379 3379 ☔ View full report in Codecov by Sentry. |
blakepettersson
left a comment
There was a problem hiding this comment.
why not use ClusterResourceWhitelist? https://argo-cd.readthedocs.io/en/stable/user-guide/projects/#restrict-cluster-scoped-resources-by-name
…ources Treat an empty destination namespace pattern as an exact match for empty values, and add tests to cover the behavior. Signed-off-by: yyaswanthkumar <yaswanthk@infocion.com>
48f56a7 to
6ee6032
Compare
|
|
@blakepettersson does my response clarify the distinction? clusterResourceWhitelist controls which resource kinds are allowed, while spec.destinations gates the target cluster+namespace. The bug is that namespace: "" in destinations doesn't match the empty namespace used for cluster-scoped ops. Happy to discuss further or adjust the approach. |
|
/assign |
Fixes #27003
Checklist: