With the current behavior it is not possible to restrict the usage of the Argo CD namespace when using the App in any namespace feature.
This PR contains changes that should allow the current behavior when no restrictions are in place, and allow to blacklist the controller namespace if desired.
The new behavior should be quite sound but I can wrap it with a feature-flag if required.
I'd like this to be cherry-picked to 2.13 as well.
Checklist:
[x] 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.
[x] The title of the PR states what changed and the related issues number (used for the release note).
[x] My new feature complies with the feature status guidelines.
[x] I have added a brief description of why this PR is necessary and/or what this PR solves.
[x] Optional. My organization is added to USERS.md.
[x] 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).
Fix part of #20820.
With the current behavior it is not possible to restrict the usage of the Argo CD namespace when using the App in any namespace feature. This PR contains changes that should allow the current behavior when no restrictions are in place, and allow to blacklist the controller namespace if desired.
The new behavior should be quite sound but I can wrap it with a feature-flag if required.
I'd like this to be cherry-picked to 2.13 as well.
Checklist: