app sync --local
submits manifests without namespace in the tracking-id
#17945
Labels
bug
Something isn't working
component:cli
Affects the Argo CD CLI
component:namespaced-apps
Issues related to Applications created in namespaces besides the `argocd` namespace.
component:sync
version:2.11
Latest confirmed affected version is 2.11
Checklist:
argocd version
.Describe the bug
As of #17360, we have better support for Apps in Any Namespaces from the CLI, but even with that, there is still an issue with
app sync
's--local
.With
--local
, the sync produces aSharedResourceWarning
, reporting that the app's resources are shared between<app-name> and <app-namespace>/<app-name>
. This is because they get synced into not having the app namespace in their tracking IDs.Replicating it in the code, the manifests generated by
GenerateManifests
(here) are not returned with namespaced tracking id's (the request does not take an appNs).To Reproduce
argocd
namespaceargocd app sync --local <path to local chart>
SharedResourceWarning
, produced by your local sync having sent manifests without the app namespace in the tracking annotationExpected behavior
argocd app sync --local
sends manifests with namespaced tracking id's, so that it does not produce aSharedResourceWarning
on apps in non-argocd
namespacesVersion
The text was updated successfully, but these errors were encountered: