Open diegodelemos opened 4 years ago
@mdonadoni FWIW locally on my laptop I just have unset KUBECONFIG
in a script that loads my DEV, QA or PROD environment; this is useful for running things like reana-dev run-example -c DEMO --submit-only
on DEV, QA, PROD. And, when I need to work with DEV, QA, PROD clusters on the Kubernetes level, then I always do it from LXPLUS, where I don't have reana-dev
command in the environment. This might do to separate well local vs production manipulations, whilst still offering some reana-dev
goodies that are not dangerous.
It has happened that because of a mistake, the
KUBECONFIG
variable was pointing to a non development instance and areana-dev cluster-undeploy
was run. Scenario:Any
reana-dev
command will effectively connect to whatever instanceKUBECONFIG
points to, in this case~/important-reana-instance.config
, performing a destructive operation.Shall we add a check, to verify that
reana-dev
is connected tokind
?