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

go test ./... may break the current cluster set on kubeconfig #6801

Open
wpjunior opened this issue Aug 2, 2024 · 1 comment
Open

go test ./... may break the current cluster set on kubeconfig #6801

wpjunior opened this issue Aug 2, 2024 · 1 comment

Comments

@wpjunior
Copy link

wpjunior commented Aug 2, 2024

Bug Report

What did you do?

After the project bootstrap using operator-sdk, the directory test/e2e is created, if you run a go test ./... you may lose cert-manager and prometheus-operator on the current cluster set on kubeconfig.

What did you expect to see?

I think that is a accident, but we might prevent similar situations from happening to others. go test ./... should not trigger the e2e tests, we should use a environment variable to trigger e2e tests just on Makefile

@wpjunior wpjunior changed the title go test ./... may broke the current cluster set on kubeconfig go test ./... may break the current cluster set on kubeconfig Aug 5, 2024
@heinrichgrt
Copy link

The same happend to us today. We deleted cert-manager and prometheus on two clusters. This is really dangerous. It would be great, if you would set the k8s-context in the Makefile or in the test itself to something like operator-kind and not simply using users current k8s-context.

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

No branches or pull requests

2 participants