kubestellar / kubeflex

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

feature: improve management of hosting cluster context #257

Closed pdettori closed 3 months ago

pdettori commented 3 months ago

Feature Description

This feature should help with better managing the Hosting Context Preference set by kflex in the user's kubeconfig file, and help users with these two aspects 1) useful help message 2) new kflex command to set Hosting Context Preference

Proposed Solution

1) add new command kflex set-hosting-ctx <some-existing-context> 2) enhance the error message provided by #256 to guide the user to use such command when running into that "The initial (hosting) context is not known" state

Want to contribute?

Additional Context

No response

pdettori commented 3 months ago

cc: @MikeSpreitzer @francostellari @ezrasilvera

MikeSpreitzer commented 3 months ago

For 1 there is a simpler option: enhance the behavior of kflex ctx as suggested in point 1 of #255

pdettori commented 3 months ago

@MikeSpreitzer just to be clear, is you recommendation for 1 to set the hosting cluster preference in kubeconfig when doing kflex init rather then at the first kflex create ?

MikeSpreitzer commented 3 months ago

@pdettori: yes.

pdettori commented 3 months ago

This has been addressed in #266, #256 and #267