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

support KUBECONFIG with multiple kube config files #1126

Merged
merged 4 commits into from
Apr 1, 2019
Merged

support KUBECONFIG with multiple kube config files #1126

merged 4 commits into from
Apr 1, 2019

Conversation

grounded042
Copy link
Contributor

@grounded042 grounded042 commented Mar 18, 2019

This change is Reviewable

@grounded042
Copy link
Contributor Author

this fixes #821

@vishal-biyani vishal-biyani added this to the 1.2 milestone Mar 20, 2019
Copy link
Member

@life1347 life1347 left a comment

Choose a reason for hiding this comment

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

Hi @grounded042 thanks for the PR! It looks in good shape except one minor comment.


kubeConfigPath := os.Getenv("KUBECONFIG")
if len(kubeConfigPath) == 0 {
home := os.Getenv("HOME")
Copy link
Member

Choose a reason for hiding this comment

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

To support windows better, I suggest here we can use os/user to get the correct home directory path.
reference: https://stackoverflow.com/a/13004756

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! I'll take a look.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@life1347 I changed things up as per the link. Seems like a better cross-platform implementation.

@life1347
Copy link
Member

life1347 commented Apr 1, 2019

LGTM

@life1347 life1347 merged commit 24600c2 into fission:master Apr 1, 2019
@grounded042 grounded042 deleted the issue_821 branch April 1, 2019 15:32
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.

None yet

3 participants