danielfoehrKn / kubeswitch

The kubectx for operators.
https://danielfoehrkn.medium.com/the-case-of-kubeswitch-aff4b6a04ae7
Apache License 2.0
839 stars 79 forks source link

switch ls --no-index does not persist the index #122

Closed towolf closed 6 months ago

towolf commented 6 months ago

Running switch with an expired index takes very long, now that we have over 100 GKE clusters.

So, our approach would be to regenerate the index from cron (or something), using switcher list-contexts --no-index every few hours.

But that doesn't work. switcher ls --no-index leaved behind an empty file ~/.kube/switch-state/switch.gke.gke.index.