Ensure the function `ensureCustomResourceDefinitionsExist` returns when the duration specified in `retryCRDIntervalMax` flag is reached. This works by passing a context to the backoff so that we can timeout with context.WithTimeout. The new (correct) default duration for the flag is 30s to give a bit more time when controller and CRD are created at the same time. Also limit the amount of resources returned by the list calls to 0 to speed up the operations because we only care that the CRD exists.
1.8 KiB
1.8 KiB