kubestellar / kubeflex

A flexible and scalable platform for running Kubernetes control plane APIs.
Apache License 2.0
46 stars 13 forks source link

kflex storage of hosting cluster context name is unnecessarily fragile #255

Closed MikeSpreitzer closed 3 months ago

MikeSpreitzer commented 3 months ago
  1. kflex init does NOT store the name of the hosting context. That is done later when kflex create or kflex ctx $cpname is used to switch away. This opens an unnecessary window for problems: the user might (unknowingly or inadvertently) use kubectl config use-context for some reason before doing kflex create.
  2. If the name of the hosting context is not currently stored in the user's kubeconfig file, and the current context is the hosting cluster context, kflex ctx does not store the context name. This is unnecessarily missing an opportunity to recover needed information.
MikeSpreitzer commented 3 months ago

@pdettori @francostellari