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

Multiple configs in KUBECONFIG causes file to be saved in incorrect location #2291

Closed
derimagia opened this issue Oct 15, 2018 · 0 comments
Closed
Milestone

Comments

@derimagia
Copy link

What happened:
KUBECONFIG can be multivalued, see https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#the-kubeconfig-environment-variable and tsh treats it as one location.

It saves the kubectl config in the literal path E.G. "$HOME/.kube/config:$HOME/test"

What you expected to happen:
Most likely want to emulate what kubectl does and save it in the first file in the list (when change context it sets it in this one).

How to reproduce it (as minimally and precisely as possible):

KUBECONFIG="$HOME/.kube/config:$HOME/test" tsh login --proxy example.com

Environment:

  • Teleport version (use teleport version):
    Teleport v3.0.0

  • Tsh version (use tsh version):
    Teleport v3.0.0

  • OS (e.g. from /etc/os-release):
    macOS 10.14 (18A391)

Browser environment

  • Browser Version (for UI-related issues):
  • Install tools:
  • Others:

Relevant Debug Logs If Applicable

  • tsh --debug
  • teleport --debug
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

No branches or pull requests

2 participants