Browse Source

fix reconcile

tags/0.0.3
Vladimir Smagin 8 months 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