mirror of https://github.com/tailscale/tailscale/
cmd/tailscale/cli: fix configuring partially empty kubeconfig
When a user deletes the last cluster/user/context from their
kubeconfig via 'kubectl delete-[cluster|user|context] command,
kubectx sets the relevant field in kubeconfig to 'null'.
This was breaking our conversion logic that was assuming that the field
is either non-existant or is an array.
Updates tailscale/corp#18320
Signed-off-by: Irbe Krumina <irbe@tailscale.com>
(cherry picked from commit 56f7a09931
)
irbekrm/cherry_fix_panic
parent
8a0c69d6d6
commit
10ce099e60
Loading…
Reference in New Issue