Skip to content

Commit

Permalink
add kube context to argocd login cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
rotem-codefresh committed Jun 28, 2022
1 parent f542797 commit 16eef08
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/argocd/argocd.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ func Login(opts *LoginOptions) error {
args = append(args, "--plaintext")
}

if opts.KubeContext != "" {
args = append(args, "--kube-context", opts.KubeContext)
}

root.SetArgs(args)
return root.Execute()
}

0 comments on commit 16eef08

Please sign in to comment.