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

Fix unexpected behaviour when kubeconfig is set #296

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

nickto
Copy link
Contributor

@nickto nickto commented Feb 4, 2024

As detailed in #295, this merge request fixes the issue that if kubeconfig is set to a value other than ~/.kube/config, then:

  • ~/.kube/config is modified.
  • No file at {{ kubeconfig }} is created.
  • Any existing file at {{ kubeconfig }} is deleted.

Changes

  • Do not append hard-coded KUBECONFIG path to kubectl commands.
  • Do not remove {{ kubeconfig }}.

Linked Issues

#295

As detailed in k3s-io#295, this
commit fixes the issue that if `kubeconfig` is set to anything other
than the defaults value, then:

- `~/.kube/config` is modified.
- No file at `{{ kubeconfig }}` is created.
- Any existing file and `{{ kubeconfig }}` is deleted.

Signed-off-by: Nick To <[email protected]>
@nickto nickto force-pushed the fix-295-wrong-kubeconfig-behaviour branch from 9739fd1 to b35ec3a Compare February 4, 2024 21:29
@dereknola dereknola merged commit 0603621 into k3s-io:master Feb 5, 2024
2 checks passed
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