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 ...@@ -40,9 +40,9 @@ elif [[ $pvc_pending != "Pending" ]]; then
echo "PVC already exists and is not pending. Manually 'helm uninstall' all bound pods" echo "PVC already exists and is not pending. Manually 'helm uninstall' all bound pods"
exit 2 exit 2
else else
echo "PVC exists but is pending, deleting..." echo "PVC exists but is pending, deleting then recreating..."
# kubectl $EXTRA_ARGS delete $pvc_name || fail "Could not delete existing PVC" kubectl $EXTRA_ARGS delete $pvc_name || fail "Could not delete existing PVC"
fi fi
kubectl $EXTRA_ARGS replace -f $pvc_file kubectl $EXTRA_ARGS apply -f $pvc_file
\ No newline at end of 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