-
Notifications
You must be signed in to change notification settings - Fork 373
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
Modify the kind builder script to perform correct kind cleanup #5738
Conversation
e321ded
to
dd61e61
Compare
/test-kind-conformance |
ci/kind/kind-setup.sh
Outdated
@@ -409,6 +409,7 @@ function clean_kind { | |||
if [[ $diff -gt $timeout ]]; then | |||
echo "=== kind ${kind_cluster_name} present from more than $UNTIL_TIME_IN_MINS minutes ===" | |||
kind delete cluster --name $kind_cluster_name | |||
delete_networks |
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.
IMO it would make more sense to have this happen in destroy
We could change the destroy implementation to:
function destroy {
if [[ $UNTIL_TIME_IN_MINS != "" ]]; then
clean_kind
else
kind delete cluster --name $CLUSTER_NAME
fi
delete_networks
}
```
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.
done.
Signed-off-by: KMAnju-2021 <km074btcse18@igdtuw.ac.in>
dd61e61
to
551d80f
Compare
/test-kind-conformance |
/test-kind-networkpolicy |
|
/test-kind-networkpolicy |
/test-kind-conformance |
1 similar comment
/test-kind-conformance |
Today i triggered it thrice but I didn't get any error and job finished with success. I think that was a temporary error? |
Looks like the metrics job failing was a flake. @KMAnju-2021 as for |
Signed-off-by: KMAnju-2021 km074btcse18@igdtuw.ac.in
Modify the kind builder script and destroy function in
kind-setup.sh
to perform correct kind cleanup.If we create a kind cluster by using
kind-setup.sh
script then we should need to delete cluster using same script.