-
Notifications
You must be signed in to change notification settings - Fork 534
[apiserver] Make local-e2e-test hermetic #3513
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Troy Chiu <y.troychiu@gmail.com>
Signed-off-by: Troy Chiu <y.troychiu@gmail.com>
cc @rueian |
LGTM. |
I had some discussion with @troychiu offline, haven't fully decided the plan |
tldr @dentiny suggest keep e2e-test only run |
If we are going to move the cleanup to local-e2e-test, can we just reuse clean-cluster? |
I added it to e2e-test because I would like to run end-to-end test on a existing cluster so that I don't have to create a cluster every time. Wdyt? |
I think both are ok. |
I discussed a little with @troychiu yesterday, here's my personal opinion and thoughts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
apiserver/Makefile
Outdated
echo "Kind cluster $(KIND_CLUSTER_NAME) already exists, please run 'make clean-cluster' to delete the cluster."; \ | ||
echo "Kind cluster $(KIND_CLUSTER_NAME) already exists, clean up kuberay resources and uninstall the apiserver."; \ | ||
$(MAKE) clean-kuberay-resources; \ | ||
$(MAKE) uninstall; \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: do you think it's better to rename uninstall
to something more clear, for example, uninstall-api-server
?
My concern is, we have too many things to uninstall, for example, apiserver, crd, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just use make clean-cluster
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that's even simpler.
@troychiu can you fix the conflicts? Thanks! |
Why are these changes needed?
Make local-e2e-test hermetic by cleaning cluster first.
Related issue number
Closes #3368
Checks