Browse Source

fix reconcile

master
Vladimir Smagin 1 year ago
parent
commit
8cde20426a
1 changed files with 5 additions and 9 deletions
  1. +5
    -9
      pkg/controller/redis/redis_controller.go

+ 5
- 9
pkg/controller/redis/redis_controller.go View File

@ -206,9 +206,7 @@ fi
}
err := r.client.Delete(context.TODO(), &pdb)
if err != nil && errors.IsNotFound(err) {
return reconcile.Result{}, nil
} else if err != nil {
if err != nil && !errors.IsNotFound(err) {
raven.CaptureErrorAndWait(err, nil)
return reconcile.Result{}, err
}
@ -251,12 +249,11 @@ fi
}
err := r.client.Delete(context.TODO(), &pdb)
if err != nil && errors.IsNotFound(err) {
return reconcile.Result{}, nil
} else if err != nil {
if err != nil && !errors.IsNotFound(err) {
raven.CaptureErrorAndWait(err, nil)
return reconcile.Result{}, err
}
}
if instance.Spec.PdbHaproxy != nil {
@ -286,12 +283,11 @@ fi
}
err := r.client.Delete(context.TODO(), &pdb)
if err != nil && errors.IsNotFound(err) {
return reconcile.Result{}, nil
} else if err != nil {
if err != nil && !errors.IsNotFound(err) {
raven.CaptureErrorAndWait(err, nil)
return reconcile.Result{}, err
}
}
// set Redis master


Loading…
Cancel
Save