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 envvar if set when creating a new client #472

Merged
merged 1 commit into from
Jul 1, 2019

Conversation

yankcrime
Copy link
Member

@yankcrime yankcrime commented Jun 29, 2019

What type of PR is this?
/component kudoctl

What this PR does / why we need it:

There's a user expectation that if they've set the KUBECONFIG environment variable in their shell to a valid cluster configuration, this should be picked up and used.

Which issue(s) this PR fixes:

Fixes #462

Does this PR introduce a user-facing change?:

Allow use of KUBECONFIG shell environment variable as a way of specifying target cluster configuration.

@yankcrime yankcrime changed the title Use controller-runtime GetConfig method when creating a new client Use KUBECONFIG envvar if set when creating a new client Jun 30, 2019
@yankcrime yankcrime marked this pull request as ready for review June 30, 2019 09:27
Copy link
Contributor

@alenkacz alenkacz left a comment

Choose a reason for hiding this comment

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

Nice!

@alenkacz alenkacz merged commit 42a6299 into kudobuilder:master Jul 1, 2019
@yankcrime yankcrime deleted the honour_kubeconfig_envvar branch July 1, 2019 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Value of $KUBECONFIG is ignored
4 participants