-
Notifications
You must be signed in to change notification settings - Fork 383
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
APICLI-528: adding option to pick context name in 'kubeconfig save' #1075
Conversation
Though the tests runs successfully, I have a mild concern when testing out the command via the cli. I run the command:
I check the "current_context" in the kubeconfig in "/Users/myuser/.kube/config" and get the expected value of the alias, "newalias_k8ds":
but when I run the doctl command: I'm wondering if there's just a slight lag or if this will be problematic later? |
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.
Looking Great!
This change only effects the the local file written to disk by the |
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.
👍 Looks great. A couple small suggestions inline.
Insecure Use of Dangerous Function (1)
More info on how to fix Insecure Use of Dangerous Function in Go. 👉 Go to the dashboard for detailed results. 📥 Happy? Share your feedback with us. |
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.
Good to merge on green guardrailscan. great work Dana
per #856- adding the option to add an alias for a kubernetes context, as such:
go run cmd/doctl/main.go kubernetes cluster kubeconfig save k8ds-test --alias=newalias_k8ds