Checklist:
Describe the bug
when trying to create a new argocd context using port-forward, the login commands fails with a new error. it worked fine in v2.8.4
To Reproduce
- install a standard argo-cd instance to
argocd namespace
- extract the initial-admin-password from
argocd-initial-admin-secret secret
- run
argocd login --port-forward --port-forward-namespace argocd --username admin --password <pwd> --name whatever
result:
FATA[0000] cannot find pod with selector: [app.kubernetes.io/name=] - use the --{component}-name flag in this command or set the environmental variable (Refer to https://argo-cd.readthedocs.io/en/stable/user-guide/environment-variables), to change the Argo CD component name in the CLI
Expected behavior
a new argo-cd context is created, with the name of whatever
Version
argocd: v2.9.0+9cf0c69.dirty
BuildDate: 2023-11-06T15:07:24Z
GitCommit: 9cf0c69bbe70393db40e5755e34715f30179ee09
GitTreeState: dirty
GoVersion: go1.21.3
Compiler: gc
Platform: darwin/arm64
Checklist:
argocd version.Describe the bug
when trying to create a new argocd context using
port-forward, the login commands fails with a new error. it worked fine inv2.8.4To Reproduce
argocdnamespaceargocd-initial-admin-secretsecretargocd login --port-forward --port-forward-namespace argocd --username admin --password <pwd> --name whateverresult:
Expected behavior
a new argo-cd context is created, with the name of
whateverVersion