Skip to content
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

Use kubeconfig flag set at root for subcommands #575

Merged
merged 8 commits into from
Jul 16, 2019

Conversation

yankcrime
Copy link
Member

@yankcrime yankcrime commented Jul 15, 2019

What type of PR is this?
/component kudoctl

What this PR does / why we need it:
Move the use of the --kubeconfig flag out to the root of the command structure. If unset, it defaults to ~/.kube/config or uses the value of the KUBECONFIG shell environment variable.

Which issue(s) this PR fixes:
Fixes #560

Does this PR introduce a user-facing change?:

`--kubeconfig` is now a root command flag, its value persisted to subcommands.

@yankcrime yankcrime marked this pull request as ready for review July 15, 2019 11:11
@yankcrime yankcrime added the component/cli kubectl kudo a.k.a. kudoctl label Jul 15, 2019
@yankcrime yankcrime requested a review from gerred as a code owner July 15, 2019 13:25
Copy link
Member

@kensipe kensipe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removal of redundant code and excess code in structs AND a better overall solution. Love it!!

@kensipe kensipe merged commit bdca4c4 into kudobuilder:master Jul 16, 2019
@yankcrime yankcrime deleted the njones/kubeconfig_root branch July 18, 2019 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/cli kubectl kudo a.k.a. kudoctl
Projects
None yet
Development

Successfully merging this pull request may close these issues.

KUDOCTL Needs KUBECONFIG flag at root
3 participants