Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade: cleanup CreateWithRetry usage
CreateWithRetry() now checks AlreadyExists condition inside, so skip it handling. sleep() is not needed for DSCI with proper working CreateWithRetry since it is the actual point of existance of the function. Checking of number of DSCI instances is redundant as well since it is checked by the webhook. For non-webhook configuration it relies on the Create() failure for the same name. Basically, using CreateWithRetry for DSC is also redundant from webhook point of view since it is created after DSCI which garantees working webhook. But it handles already existed object. Signed-off-by: Yauheni Kaliuta <ykaliuta@redhat.com>
- Loading branch information