operator: reliability and simplification (#968)

* operator: make tests more reliable

* operator: simplify RetryOnConflict statements
This commit is contained in:
3u13r 2023-01-13 16:49:41 +01:00 committed by GitHub
parent c36a009188
commit 67f8336b9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 23 deletions

View file

@ -743,10 +743,7 @@ func (r *NodeVersionReconciler) tryUpdateStatus(ctx context.Context, name types.
return err
}
nodeVersion.Status = *status.DeepCopy()
if err := r.Status().Update(ctx, &nodeVersion); err != nil {
return err
}
return nil
return r.Status().Update(ctx, &nodeVersion)
})
}