Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

argocd app diff should support application in any namespace. #13978

Closed
mugioka opened this issue Jun 9, 2023 · 0 comments · Fixed by #13980
Closed

argocd app diff should support application in any namespace. #13978

mugioka opened this issue Jun 9, 2023 · 0 comments · Fixed by #13980
Labels
enhancement New feature or request

Comments

@mugioka
Copy link
Contributor

mugioka commented Jun 9, 2023

Summary

Now argocd app diff does not support application in any namespace.
I execute argocd app diff in app any namespace environment, always returns diff like bellow.

-    argocd.argoproj.io/instance: NAMESPACE_APP_NAME
+    argocd.argoproj.io/instance: APP_NAME

This reason is that, created local object for diff does not have correct labels.
I executed bellow command.

app diff "${APP_NAME}" --exit-code=false \ 
  --port-forward \
  --port-forward-namespace "${NAMESPACE}"\
  --auth-token "${ARGOCD_TOKEN}" \
  --server-side-generate \
  --plaintext \
  --local "${PWD}" \
  --local-include "*.yaml"

Motivation

I use app in any namespace and comment diff(live/local) on GitHub PR, the diff will occur every time and become noise.

Proposal

We should use app.InstanceName(argoSettings.ControllerNamespace) instead of app.Name in groupObjsForDiff.

items = groupObjsForDiff(resources, groupedObjs, items, argoSettings, app.Name)

items = groupObjsForDiff(resources, groupedObjs, items, argoSettings, app.Name)

@mugioka mugioka added the enhancement New feature or request label Jun 9, 2023
mugioka added a commit to mugioka/argo-cd that referenced this issue Jun 9, 2023
Signed-off-by: mugioka <okamugi0722@gmail.com>

Closes argoproj#13978.

Signed-off-by: mugioka <okamugi0722@gmail.com>
crenshaw-dev pushed a commit that referenced this issue Jun 14, 2023
…#13978) (#13980)

Closes #13978.

Signed-off-by: mugioka <okamugi0722@gmail.com>
gcp-cherry-pick-bot bot pushed a commit that referenced this issue Jun 14, 2023
…#13978) (#13980)

Closes #13978.

Signed-off-by: mugioka <okamugi0722@gmail.com>
gcp-cherry-pick-bot bot pushed a commit that referenced this issue Jun 14, 2023
…#13978) (#13980)

Closes #13978.

Signed-off-by: mugioka <okamugi0722@gmail.com>
gcp-cherry-pick-bot bot pushed a commit that referenced this issue Jun 14, 2023
…#13978) (#13980)

Closes #13978.

Signed-off-by: mugioka <okamugi0722@gmail.com>
crenshaw-dev pushed a commit that referenced this issue Jun 14, 2023
…#13978) (#13980) (#14061)

Closes #13978.

Signed-off-by: mugioka <okamugi0722@gmail.com>
Co-authored-by: mugi <62197019+mugioka@users.noreply.github.com>
crenshaw-dev pushed a commit that referenced this issue Jun 14, 2023
…#13978) (#13980) (#14063)

Closes #13978.

Signed-off-by: mugioka <okamugi0722@gmail.com>
Co-authored-by: mugi <62197019+mugioka@users.noreply.github.com>
crenshaw-dev pushed a commit that referenced this issue Jun 14, 2023
…#13978) (#13980) (#14062)

Closes #13978.

Signed-off-by: mugioka <okamugi0722@gmail.com>
Co-authored-by: mugi <62197019+mugioka@users.noreply.github.com>
schakrad pushed a commit to schakrad/argo-cd that referenced this issue Jul 24, 2023
…argoproj#13978) (argoproj#13980) (argoproj#14061)

Closes argoproj#13978.

Signed-off-by: mugioka <okamugi0722@gmail.com>
Co-authored-by: mugi <62197019+mugioka@users.noreply.github.com>
Signed-off-by: schakrad <58915923+schakrad@users.noreply.github.com>
yyzxw pushed a commit to yyzxw/argo-cd that referenced this issue Aug 9, 2023
tesla59 pushed a commit to tesla59/argo-cd that referenced this issue Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant