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

list_kube_config_contexts cannot handle a KUBECONFIG env var with multiple config paths #723

Closed
dennis-tra opened this issue Jan 11, 2019 · 7 comments
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@dennis-tra
Copy link

Hey there :)

When running

from kubernetes import config

config.list_kube_config_contexts()

I get an error because my KUBECONFIG environment variable is configured with a list of paths to configuration files. E.g. /path/one:/path/two. This configuration is also covered in the documentation here:
https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/#set-the-kubeconfig-environment-variable

I would have expected to get a list of contexts across all config files.

Cheers,
Dennis

@tomplus
Copy link
Member

tomplus commented Jan 11, 2019

This feature has to be added to python-base repo, ref issue: kubernetes-client/python-base#62

@varac
Copy link

varac commented Mar 20, 2019

As far as I can judge, this feature has just been merged into kubernetes-client/python-base: kubernetes-client/python-base#94

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 18, 2019
@varac
Copy link

varac commented Jul 3, 2019

Works with https://github.com/kubernetes-client/python/releases/tag/v10.0.0a1

@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Aug 2, 2019
@yliaog
Copy link
Contributor

yliaog commented Aug 13, 2019

/close

@k8s-ci-robot
Copy link
Contributor

@yliaog: Closing this issue.

In response to this:

/close

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

6 participants