Skip to content

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
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