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

pkg/k8sutil,cmd/up/local: Fixing kubeconfig environment variable. #705

Merged

Conversation

shawn-hurley
Copy link
Member

No description provided.

@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Nov 5, 2018
@@ -17,7 +17,7 @@ package k8sutil
const (
// KubeConfigEnvVar defines the env variable KUBERNETES_CONFIG which
Copy link
Contributor

Choose a reason for hiding this comment

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

Actually the comment needs to be updated as well. Change KUBERNETES_CONFIG to KUBECONFIG.

@shawn-hurley shawn-hurley merged commit fa20007 into operator-framework:master Nov 6, 2018
@yanirq
Copy link

yanirq commented Nov 12, 2018

@shawn-hurley @hasbro17 Maybe its worth adding some more info on the user guide regarding this option.
when i tested the fix it only worked after :

  1. export KUBECONFIG=...
  2. ran operator-sdk up local --kubeconfig=(full path or $KUBECONFIG)

this means even if i export KUBECONFIG i will still have to add the --kubeconfig flag with the right path.
Just export + operator-sdk up local is not enough

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants