context name not set correctly (k8s)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-magnumclient |
New
|
Undecided
|
Unassigned |
Bug Description
In the configuration fetched from a spawned kubernetes cluster, the context name is set to "default" (see [0]). This causes problems when managing multiple clusters because of name collisions. When I set KUBECONFIG to point to multiple cluster config files only the first context in that list is noticed by kubectl.
$ export KUBECONFIG=
$ kubectl config get-contexts
CURRENT NAME CLUSTER AUTHINFO NAMESPACE
* default c1 admin
Proposed solution:
Include the cluster name in the context name. Perhaps just use the cluster name as context name as done in [1].
[0]: https:/
[1]: https:/