From cf47df664ddaa23a63b5e2e789e00e9bcbce779a Mon Sep 17 00:00:00 2001 From: Dong Ying Bo Date: Tue, 28 Apr 2020 15:51:26 +0800 Subject: [PATCH] wait for pvc deletion --- pkg/kubeutils/kubeutils.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/kubeutils/kubeutils.go b/pkg/kubeutils/kubeutils.go index 02c112a..2695b04 100644 --- a/pkg/kubeutils/kubeutils.go +++ b/pkg/kubeutils/kubeutils.go @@ -163,6 +163,7 @@ func deletePVC(pvc *v1.PersistentVolumeClaim) error { if err != nil { return err } + time.Sleep(3000) klog.Infof("delete pvc: %s/%s", pvc.Namespace, pvc.Name) return nil