Browse Source

equalize specs bugfix

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

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

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

if !reflect.DeepEqual(found.Spec, statefulset.Spec) {
found.Spec = statefulset.Spec
found.Spec.Replicas = statefulset.Spec.Replicas
found.Spec.Template = statefulset.Spec.Template
}

reqLogger.Info("Reconcile statefulset", "statefulset.Namespace", found.Namespace, "statefulset.Name", found.Name)


Loading…
Cancel
Save