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: dont replace kubeconfig symlink by a file at cluster creation #1455

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

proudier
Copy link
Contributor

What

This MR adds support for when the kubeconfig file is a symbolic link.

Why

As reported by this issue, the current implementation causes the replacement of the symbolic link by a regular file holding the new/merged config.

Implications

Shouldnt change the behavior of anything, beside fixing the bug.

Tests

  • git reset --hard && make is successful
  • Successfully created a cluster in the two situations:
    • symlink /home/pierre/.kube/config -> /home/pierre/syncthing/t480s/config/kubectl
    • regular /home/pierre/.kube/config

Copy link
Member

@iwilltry42 iwilltry42 left a comment

Choose a reason for hiding this comment

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

LGTM.
Thank you for this contribution!

@iwilltry42 iwilltry42 merged commit b849828 into k3d-io:main Jun 25, 2024
1 check 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