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

Cass-operator tests and makefile targets reference default kubecontext #279

Open
Miles-Garnsey opened this issue Feb 24, 2022 · 0 comments
Labels
assess Issues in the state 'assess' bug Something isn't working zh:Assess/Investigate

Comments

@Miles-Garnsey
Copy link
Member

Miles-Garnsey commented Feb 24, 2022

What happened?

In certain makefile targets and test helpers the cass-operator tests try to use the default kubecontext to create or query resources.

Did you expect to see something different?

Yes. The default context should never be used because - if a developer is working on customer or production clusters while also working on cass-operator - there is a risk that the tests will cause damage to the production/customer cluster.

A kubeconfig containing only kind clusters should be created in a ./build directory and the kind contexts should be used as the default kubeconfig.

How to reproduce

$ mv ~/.kube/config ~/
$ make integ-test
kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.5.3/cert-manager.yaml
The connection to the server localhost:8080 was refused - did you specify the right host or port?
make: *** [cert-manager] Error 1
mv  ~/config ~/.kube/

┆Issue is synchronized with this Jira Story by Unito
┆Issue Number: CASS-49

@Miles-Garnsey Miles-Garnsey added the bug Something isn't working label Feb 24, 2022
@sync-by-unito sync-by-unito bot changed the title Cass-operator tests and makefile targets reference default kubecontext K8SSAND-1275 ⁃ Cass-operator tests and makefile targets reference default kubecontext Feb 24, 2022
@adejanovski adejanovski moved this to Assess/Investigate in K8ssandra Nov 8, 2022
@adejanovski adejanovski added the assess Issues in the state 'assess' label Sep 3, 2024
@sync-by-unito sync-by-unito bot changed the title K8SSAND-1275 ⁃ Cass-operator tests and makefile targets reference default kubecontext Cass-operator tests and makefile targets reference default kubecontext Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assess Issues in the state 'assess' bug Something isn't working zh:Assess/Investigate
Projects
No open projects
Status: Assess/Investigate
Development

No branches or pull requests

2 participants