mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
e2e: retry deleting Rook artifacts in case of error
On occasion deploying CephFS components fail due to errors like these: failed to delete provisioner rbac .../csi-provisioner-rbac.yaml By using the deleteResource() helper, an retry is done in case of a failure. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
committed by
mergify[bot]
parent
8a0377ef02
commit
26696b4979
@ -105,6 +105,7 @@ func createCephfsStorageClass(
|
||||
sc.Namespace = cephCSINamespace
|
||||
|
||||
timeout := time.Duration(deployTimeout) * time.Minute
|
||||
|
||||
return wait.PollImmediate(poll, timeout, func() (bool, error) {
|
||||
_, err = c.StorageV1().StorageClasses().Create(context.TODO(), &sc, metav1.CreateOptions{})
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user