Open par97 opened 4 months ago
With the existence of the --upsert
flag and validation of the spec, it seems like this is the intended behavior.
according to issue https://github.com/argoproj/argo-cd/issues/238, --upsert flag is used when the existing app spec is different.
from argocd app create --help
:
--upsert Allows to override application with the same name even if supplied application spec is different from existing spec
In my above examples, the app spec is the same, using "--dest-server" is ok, but using "--dest-name" shows error.
That makes sense, thanks for clarifying :)
Hi @agaudreault , I would like to work on this issue.
Do you still work on this @parambath92 ? if not, I'll take it.
Hey @theikalman , yes I am working on this issue. I will raise a PR this week.
/assign
Are you still working on fixing the problem? If not, I can fix it. @parambath92
Since there's no response from @parambath92 , I try to fix the issue. Please help me to review.
Checklist:
argocd version
.Describe the bug
argocd app create command should be idempotent, but when I use --dest-name parameter, it becomes not idempotent.
To Reproduce