mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
e2e: retry running kubectl on known errors
By using retryKubectl helper function, a retry will be done, and the known error messages will be skipped. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
2071c535fa
commit
2c66dfc3e4
@ -17,12 +17,8 @@ import (
|
||||
|
||||
func deleteConfigMap(pluginPath string) error {
|
||||
path := pluginPath + configMap
|
||||
_, err := framework.RunKubectl(cephCSINamespace, "delete", "-f", path, ns)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return retryKubectlFile(cephCSINamespace, kubectlDelete, path, deployTimeout)
|
||||
}
|
||||
|
||||
func createConfigMap(pluginPath string, c kubernetes.Interface, f *framework.Framework) error {
|
||||
|
Reference in New Issue
Block a user