Skip to content
Snippets Groups Projects
Verified Commit ba577b67 authored by David Hoese's avatar David Hoese
Browse files

Add kubectl delete to PVC creation when needed

parent 99d50e7a
No related branches found
No related tags found
No related merge requests found
......@@ -40,9 +40,9 @@ elif [[ $pvc_pending != "Pending" ]]; then
echo "PVC already exists and is not pending. Manually 'helm uninstall' all bound pods"
exit 2
else
echo "PVC exists but is pending, deleting..."
# kubectl $EXTRA_ARGS delete $pvc_name || fail "Could not delete existing PVC"
echo "PVC exists but is pending, deleting then recreating..."
kubectl $EXTRA_ARGS delete $pvc_name || fail "Could not delete existing PVC"
fi
kubectl $EXTRA_ARGS replace -f $pvc_file
\ No newline at end of file
kubectl $EXTRA_ARGS apply -f $pvc_file
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment