• Patrick Ohly's avatar
    CSI E2E: retry csi-pod creation · 6dbb07c4
    Patrick Ohly authored
    Normally the pod would get created via a DaemonSet controller, but
    during testing it is easier to create it directly. We just need to
    ignore errors (like 'No API token found for service account
    "csi-service-account"') and retry for a while. If the error persists,
    the error will still abort and report it eventually.
    
    This problem also occurs elsewhere, so an utility function in the
    framework for it seems justified.
    
    Fixes: #68776
    6dbb07c4
pods.go 10.5 KB