Skip to content

[BUG] Doesn't respect ~/.kube/config to be a symbolic link #1355

@dennybaa

Description

@dennybaa

A new ~/.kube/config is recreated upon cluster creation.

What did you do

Just created a cluster.

What did you expect to happen

Contents should be added into existing ~/.kube/config whether it's an ordinary file or symlink.

Screenshots or terminal output

# before
❯ ls -l
drwxr-x--- 4 dennybaa dennybaa 4096 Sep  7 15:59 cache
lrwxrwxrwx 1 dennybaa dennybaa   18 Oct  8 20:36 config -> default.kubeconfig

# after
 ❯ ls -l  
drwxr-x--- 4 dennybaa dennybaa 4096 Sep  7 15:59 cache
-rw------- 1 dennybaa dennybaa 5883 Oct  8 20:38 config
-rw------- 1 dennybaa dennybaa 2990 Oct  8 20:35 default.kubeconfig

Which OS & Architecture

arch: amd64
cgroupdriver: systemd
cgroupversion: "2"
endpoint: /run/user/1000/podman/podman.sock
filesystem: extfs
name: docker
os: pop
ostype: linux
version: 4.6.2

Which version of k3d

k3d version v5.6.0
k3s version v1.27.4-k3s1 (default)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions