Deploy Application to different namespace than ApplicationSet #18835
Replies: 2 comments
|
I found this code in the applicationset controller: // The app's namespace must be the same as the AppSet's namespace to preserve the appsets-in-any-namespace
// security boundary.
generatedApp.Namespace = applicationSet.NamespaceThat explains this behavior. So no application in a different namespace. Could be added to the ApplicationSet documentation though. |
0 replies
|
This seems to still be the case in argo-cd/applicationset/controllers/applicationset_controller.go Lines 798 to 802 in ddea9e7 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
It seems that applications are always in the same namespace as applicationsets. We tried setting a namespace in
template.metadata.namespacelike in the following example:but the application is always in the argocd namespace. We also tried a static value and adding the namespace to
applicationsetcontroller.namespacesbut nothing worked.NOTE: The application it self does what it is supposed to do and can deploy everything it wants. Its only the application itself that is in the wrong namespace
All reactions