mirror of
https://github.com/helm/charts.git
synced 2026-08-23 14:27:18 +00:00
Add cleanup_log to avoid false negative on cleanup (#103)
This commit is contained in:
+2
-2
@@ -21,9 +21,9 @@ CURRENT_RELEASE=""
|
||||
# Cleanup any releases and namespaces left over from the test
|
||||
function cleanup {
|
||||
if [ -n $CURRENT_RELEASE ];then
|
||||
helm delete --purge ${CURRENT_RELEASE} || true
|
||||
helm delete --purge ${CURRENT_RELEASE} > cleanup_log 2>&1 || true
|
||||
fi
|
||||
kubectl delete ns ${NAMESPACE} || true
|
||||
kubectl delete ns ${NAMESPACE} >> cleanup_log 2>&1 || true
|
||||
}
|
||||
trap cleanup EXIT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user