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

Using inclusterconfig for default configuration #83

Merged
merged 3 commits into from
Jul 29, 2017
Merged

Using inclusterconfig for default configuration #83

merged 3 commits into from
Jul 29, 2017

Conversation

dimm0
Copy link
Contributor

@dimm0 dimm0 commented Jul 28, 2017

This allows using the service account credentials generated by kubernetes for accessing the api server, and auto discover the api server. If config file location is provided, it will use it as before.
Tested in kubeadm kubernetes 1.7.

Copy link
Member

@murali-reddy murali-reddy left a comment

Choose a reason for hiding this comment

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

@dimm0 thanks for the patch

app/server.go Outdated
var clientconfig *rest.Config
var err error
// Use out of cluster config if the URL or kubeconfig have been specified. Otherwise use incluster config.
if len(config.Master) != 0 && len(config.Kubeconfig) != 0 {
Copy link
Member

Choose a reason for hiding this comment

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

@dimm0 either of the --master or --kubeconfig is sufficient. so please change and condition to or.

Copy link
Member

Choose a reason for hiding this comment

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

Ignore the travis failure. attempt to push docker image is failing for the PR's submitted from external repos. Please see #84

@murali-reddy murali-reddy merged commit 562008c into cloudnativelabs:master Jul 29, 2017
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.

2 participants