From 655e73519fac2098baeb6915ae590723ffef3716 Mon Sep 17 00:00:00 2001
From: David Hoese <david.hoese@ssec.wisc.edu>
Date: Fri, 24 Jul 2020 14:59:26 -0500
Subject: [PATCH] Fix PVC delete when needed

---
 helpers/create_pvc.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/helpers/create_pvc.sh b/helpers/create_pvc.sh
index 94b662e..99051e6 100755
--- a/helpers/create_pvc.sh
+++ b/helpers/create_pvc.sh
@@ -41,7 +41,7 @@ elif [[ $pvc_pending != "Pending" ]]; then
     exit 2
 else
     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 $pvc_name || fail "Could not delete existing PVC"
 fi
 
 
-- 
GitLab