Skip to content

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

Description

@dennis-tra

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

Activity

  1. tomplus commented on Jan 11, 2019

    @tomplus
    Member

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

  2. varac commented on Mar 20, 2019

    @varac

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

  3. fejta-bot commented on Jun 18, 2019

    @fejta-bot

    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

  4. added
    lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.
    on Jun 18, 2019
  5. varac commented on Jul 3, 2019

    @varac
  6. fejta-bot commented on Aug 2, 2019

    @fejta-bot

    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

  7. added
    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.
    and removed
    lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.
    on Aug 2, 2019
  8. yliaog commented on Aug 13, 2019

    @yliaog
    Contributor

    /close

  9. k8s-ci-robot commented on Aug 13, 2019

    @k8s-ci-robot
    Contributor

    @yliaog: Closing this issue.

    Details

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions