Skip to content

Commit

Permalink
Merge pull request #5078 from nojnhuh/ci-cleanup
Browse files Browse the repository at this point in the history
add namespace to ci-entrypoint cleanup
  • Loading branch information
nojnhuh authored Aug 17, 2024
2 parents 15f32c9 + 7d19aa3 commit 859e6b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ci-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ capz::ci-entrypoint::on_exit() {
"${REPO_ROOT}/hack/log/redact.sh" || true
# cleanup all resources we use
if [[ ! "${SKIP_CLEANUP:-}" == "true" ]]; then
timeout 1800 "${KUBECTL}" --kubeconfig "${REPO_ROOT}/${KIND_CLUSTER_NAME}.kubeconfig" delete cluster "${CLUSTER_NAME}" || echo "Unable to delete cluster ${CLUSTER_NAME}"
timeout 1800 "${KUBECTL}" --kubeconfig "${REPO_ROOT}/${KIND_CLUSTER_NAME}.kubeconfig" delete cluster "${CLUSTER_NAME}" -n default || echo "Unable to delete cluster ${CLUSTER_NAME}"
make --directory="${REPO_ROOT}" kind-reset || true
fi
}
Expand Down

0 comments on commit 859e6b0

Please sign in to comment.