-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Problem
Currently, we can set the TCLI_SERVER env var to hold the address of the supervisor cluster and from there we can find the namespaces it owns and on to the clusters under each namespace.
If we want to switch to another supervisor, maybe located a different physical datacenter for example, that manages another set of namespaces and clusters, we currently update the value of the TCLI_SERVER env var.
Once we change this, then we are fixed to that new supervisor. To switch back, we need to update that env var again.
It would be nice if there was a command line option to set the supervisor, instead of editing the env var directly.
Proposal
Manage the list of supervisors similar to how kubectl manages its contexts, possibly. Since the list of supervisors is not something we can request from a server, we would need to manage it locally in some file on disk. Possibly under a folder like ~/.tcli where we can store a list of supervisor addresses.
Bonus
It would also be nice if we could integrate with tools like fzf so we could interact with the supervisors, namespaces and clusters in the same way we can with kubectx and kubens.