Skip to content

argocd login --port-forward fails with cannot find pod with selector: [app.kubernetes.io/name=] #16266

Description

Checklist:

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of 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 in v2.8.4

To Reproduce

  1. install a standard argo-cd instance to argocd namespace
  2. extract the initial-admin-password from argocd-initial-admin-secret secret
  3. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingregressionBug is a regression, should be handled with high priority

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions