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

Standalone kubeconfig for gce kube-up (mulligan) #5264

Merged
merged 2 commits into from
Mar 11, 2015

Conversation

j3ffml
Copy link
Contributor

@j3ffml j3ffml commented Mar 10, 2015

Un-revert of #5154. Added check to create empty .kubeconfig if the provided one doesn't exist. That should make it work on jenkins, which runs e2e from a redirected, empty $HOME.

cc @zmerlynn, @satnam6502

Also tweaked the ginkgo tests to pull auth directly from a kubeconfig file
instead of the legacy kubernetes_auth file.
# KUBECONFIG determines the file we write to, but it may not exist yet
if [[ ! -e "${KUBECONFIG}" ]]; then
mkdir -p $(dirname "${KUBECONFIG}")
touch "${KUBECONFIG}"
Copy link
Member

Choose a reason for hiding this comment

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

Do you care about the umask here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think 077 is correct. Or do you mean I should explicitly set umask here?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, I was more asking if we should be explicit here. I don't think it matters much, though.

Copy link
Member

Choose a reason for hiding this comment

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

... we're not explicit elsewhere. So. Let's proceed for now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It doesn't actually matter. We'll be using kubectl to write to the file in the next line, and kubectl sets permissions explicitly.

zmerlynn added a commit that referenced this pull request Mar 11, 2015
Standalone kubeconfig for gce kube-up (mulligan)
@zmerlynn zmerlynn merged commit e780592 into kubernetes:master Mar 11, 2015
@j3ffml j3ffml deleted the kube-up branch March 13, 2015 20:40
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.

3 participants