diff options
| author | Irbe Krumina <irbe@tailscale.com> | 2024-03-14 19:47:20 +0000 |
|---|---|---|
| committer | Irbe Krumina <irbe@tailscale.com> | 2024-03-21 14:50:50 +0100 |
| commit | 10ce099e60f326be18978591e6ef03e44741377c (patch) | |
| tree | bfdb14dc41833d979a8b1c38ccbb7e6c97a0173b /envknob | |
| parent | 8a0c69d6d6ac566a777e51d357a40a8e2960d30a (diff) | |
| download | tailscale-irbekrm/cherry_fix_panic.tar.xz tailscale-irbekrm/cherry_fix_panic.zip | |
cmd/tailscale/cli: fix configuring partially empty kubeconfigirbekrm/cherry_fix_panic
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 56f7a09931e5c8d538913ffde570b7d6e0ae753e)
Diffstat (limited to 'envknob')
0 files changed, 0 insertions, 0 deletions
