Skip to content

Commit

Permalink
add kube context to argocd login cmd (#326)
Browse files Browse the repository at this point in the history
Signed-off-by: kim-codefresh <[email protected]>
  • Loading branch information
rotem-codefresh authored and kim-codefresh committed Jan 10, 2023
1 parent cc0d6c5 commit 4cedfbf
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 4cedfbf

Please sign in to comment.