You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently if you want to create a cluster with Civo and want it to save the kubeconfig the list of commands is so tedious, you need to do the following:
You get asked to use --wait as well, this should be implicit!
It asks if it's okay to overwrite the entire kubeconfig file. This should never ever be done by our CLI, we should never overwrite the entire user's kubeconfig
In addition, we also don't have a command to update a user's kubeconfig post cluster creation, let's say the user wanted to use --save but forgot, or perhaps created the cluster with the dashboard.
Acceptance Criteria
I propose we change the behaviour like so:
Get rid of --switch and --merge and make it the default when a user uses the --save flag
Keep the --wait flag but don't make it mandatory to be used with --save, instead make it implicit.
Do NOT overwrite the entire user's kubeconfig under any circumstances, always merge and switch
When a user does civo kubernetes delete add a flag to it called --kubeconfig-context (or something like that) that deletes the kubeconfig context of that particular cluster if found on the kubeconfig, if not found, go ahead and delete the cluster anyway but output a message that kubeconfig context was not found. Again, NEVER delete the entire user's kubeconfig, just the context of the selected cluster and be careful to remove any ambiguity.
Add a civo command like civo kubernetes update-kubeconfig that will fetch the config of the specified cluster, update kubeconfig and switch to that configuration.
The text was updated successfully, but these errors were encountered:
Description
Currently if you want to create a cluster with Civo and want it to save the kubeconfig the list of commands is so tedious, you need to do the following:
Using just
--save
has two significant issues:--wait
as well, this should be implicit!kubeconfig
file. This should never ever be done by our CLI, we should never overwrite the entire user's kubeconfigIn addition, we also don't have a command to update a user's
kubeconfig
post cluster creation, let's say the user wanted to use--save
but forgot, or perhaps created the cluster with the dashboard.Acceptance Criteria
I propose we change the behaviour like so:
Get rid of
--switch
and--merge
and make it the default when a user uses the--save
flagKeep the
--wait
flag but don't make it mandatory to be used with--save
, instead make it implicit.Do NOT overwrite the entire user's
kubeconfig
under any circumstances, always merge and switchWhen a user does
civo kubernetes delete
add a flag to it called--kubeconfig-context
(or something like that) that deletes the kubeconfig context of that particular cluster if found on thekubeconfig
, if not found, go ahead and delete the cluster anyway but output a message that kubeconfig context was not found. Again, NEVER delete the entire user's kubeconfig, just the context of the selected cluster and be careful to remove any ambiguity.Add a civo command like
civo kubernetes update-kubeconfig
that will fetch the config of the specified cluster, update kubeconfig and switch to that configuration.The text was updated successfully, but these errors were encountered: