-
Notifications
You must be signed in to change notification settings - Fork 126
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
set KUBECONFIG before argocd login #126
Conversation
pkg/argocd/argocd.go
Outdated
origKubeConfig := os.Getenv("KUBECONFIG") | ||
defer func() { os.Setenv("KUBECONFIG", origKubeConfig) }() | ||
if err := os.Setenv("KUBECONFIG", opts.KubeConfig); err != nil { | ||
return err |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return a wrapped error here: failed to set KUBECONFIG env var
, cause I'm not sure the error returned here would be clear
Namespace string | ||
Username string | ||
Password string | ||
KubeConfig string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about kube context?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed most kube flags (except for timeout, kubeconfig and namespace).
/ci |
removed most kube flags
Codecov Report
@@ Coverage Diff @@
## main #126 +/- ##
==========================================
- Coverage 59.59% 59.53% -0.06%
==========================================
Files 14 14
Lines 2445 2439 -6
==========================================
- Hits 1457 1452 -5
+ Misses 900 899 -1
Partials 88 88
Continue to review full report at Codecov.
|
No description provided.