Give time to the apiserver to update the object between 2 calls
This commit is contained in:
parent
03b16f5f3c
commit
809fdc659f
@ -258,6 +258,7 @@ func (r *BackupSessionReconciler) Reconcile(req ctrl.Request) (ctrl.Result, erro
|
|||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
// your logic here
|
// your logic here
|
||||||
|
time.Sleep(300 * time.Millisecond)
|
||||||
r.BackupSession = &formolv1alpha1.BackupSession{}
|
r.BackupSession = &formolv1alpha1.BackupSession{}
|
||||||
if err := r.Get(ctx, req.NamespacedName, r.BackupSession); err != nil {
|
if err := r.Get(ctx, req.NamespacedName, r.BackupSession); err != nil {
|
||||||
log.Error(err, "unable to get backupsession")
|
log.Error(err, "unable to get backupsession")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user