Browse Source

statefulset reconcile bugfix

pull/4/head
Vladimir Smagin 1 year ago
parent
commit
1999991e99
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      pkg/controller/rabbitmq/rabbitmq_controller.go

+ 1
- 1
pkg/controller/rabbitmq/rabbitmq_controller.go View File

@@ -222,7 +222,7 @@ func (r *ReconcileRabbitmq) Reconcile(request reconcile.Request) (reconcile.Resu
}

reqLogger.Info("Reconcile statefulset", "statefulset.Namespace", found.Namespace, "statefulset.Name", found.Name)
if err = r.client.Update(context.TODO(), statefulset); err != nil {
if err = r.client.Update(context.TODO(), found); err != nil {
reqLogger.Info("Reconcile statefulset error", "statefulset.Namespace", found.Namespace, "statefulset.Name", found.Name)
raven.CaptureErrorAndWait(err, nil)
return reconcile.Result{}, err


Loading…
Cancel
Save