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

Expand HOME detection on Windows. #390

Merged
merged 1 commit into from
Oct 17, 2018

Conversation

brendandburns
Copy link
Contributor

Further fixes for #386

This emulates the kubeconfig code found here:

https://github.com/kubernetes/client-go/blob/master/util/homedir/homedir.go

@yu-shiba

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 11, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: brendandburns

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 11, 2018
@yu-shiba
Copy link
Contributor

I also thought about the same thing.

I adopted the #387 approach because of emphasis on compatibility with existing assets,

  1. io.kubernetes.client.util.KubeConfig#ENV_HOME is a public member and can not make drastic changes
  2. The same fault occurs when referencing io.kubernetes.client.util.KubeConfig#ENV_HOME with other code
  3. Respond with minimal change

Is there a problem with the above?

@brendandburns
Copy link
Contributor Author

I don't think anyone is using ENV_HOME and I prefer to behave the same way as kubectl/client-go

So I think I prefer this fix...

Thanks!

@yu-shiba
Copy link
Contributor

I agree with you.
#387 also wanted to do like this #390.

The code of #387 is not beautiful though what I say it myself...

@brendandburns
Copy link
Contributor Author

@yu-shiba if you have time, please take a look and review this code.

If it looks good, you can reply /lgtm

And then this code can merge.

Thanks!

@yu-shiba
Copy link
Contributor

/lgtm

@k8s-ci-robot
Copy link
Contributor

@yu-shiba: changing LGTM is restricted to assignees, and only kubernetes-client/java repo collaborators may be assigned issues.

In response to this:

/lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@yu-shiba
Copy link
Contributor

@brendandburns Is it not good?
Feeling insufficient authority.

Copy link
Contributor

@yu-shiba yu-shiba left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot
Copy link
Contributor

@yu-shiba: changing LGTM is restricted to assignees, and only kubernetes-client/java repo collaborators may be assigned issues.

In response to this:

/lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@brendandburns brendandburns added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 17, 2018
@brendandburns
Copy link
Contributor Author

self-lgtm on lgtm from @yu-shiba

@k8s-ci-robot k8s-ci-robot merged commit 268d429 into kubernetes-client:master Oct 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants