Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: add check to verify that reana-dev operates against kind #447

Open
diegodelemos opened this issue Nov 11, 2020 · 1 comment
Open

cli: add check to verify that reana-dev operates against kind #447

diegodelemos opened this issue Nov 11, 2020 · 1 comment
Labels

Comments

@diegodelemos
Copy link
Member

diegodelemos commented Nov 11, 2020

It has happened that because of a mistake, the KUBECONFIG variable was pointing to a non development instance and a reana-dev cluster-undeploy was run. Scenario:

$ export KUBECONFIG=~/important-reana-instance.config
$ # Run some commands to operate the instance above instance
$ # some time passes
$ # Continuing on the same shell or a new shell is created inheriting the environment from the current shell
$ # and a reana-dev command is run
$ reana-dev cluster-undeploy

Any reana-dev command will effectively connect to whatever instance KUBECONFIG 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 to kind?

@tiborsimko
Copy link
Member

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants