-
Notifications
You must be signed in to change notification settings - Fork 48
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
add e2e cleanup script #383
Conversation
scripts/cleanup.sh
Outdated
kubectl get serviceimports -n $n -l 'testing.kubernetes.io in (true)' | grep -v NAME | awk '{print $1}' | xargs kubectl delete serviceimport -n $n | ||
kubectl get httproutes -n $n -l 'testing.kubernetes.io in (true)' | grep -v NAME | awk '{print $1}' | xargs kubectl delete httproute -n $n | ||
kubectl get gateway -n $n -l 'testing.kubernetes.io in (true)' | grep -v NAME | awk '{print $1}' | xargs kubectl delete gateway -n $n | ||
done |
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.
Do you need to clean service, deployment and grpcroutes and targetGroupPolicy?
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.
+1
bbc8ce8
to
8c1c1c0
Compare
Pull Request Test Coverage Report for Build 6153768735
💛 - Coveralls |
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.
LGTM, if you change ns here to k8snamespace
as well, can it further help to avoid e2e test suite create resource in default ns?
t.SetNamespace("default") |
@zijun726911 changed default to e2e-tests. To use k8snamespace variable need to move it into different package. That will be too many changes for this PR, so I opted into hard coded value. |
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.
lgtm. thanks for putting this together!
Note:
Tested with running, terminating, cleaning, and running again e2e-tests.
Closes #293
Closes #231