diff --git a/controllers/controller_filer.go b/controllers/controller_filer.go index 5a7af7c..84a66fe 100644 --- a/controllers/controller_filer.go +++ b/controllers/controller_filer.go @@ -48,7 +48,7 @@ func (r *SeaweedReconciler) ensureFilerStatefulSet(seaweedCR *seaweedv1.Seaweed) desiredStatefulSet := desired.(*appsv1.StatefulSet) existingStatefulSet.Spec.Replicas = desiredStatefulSet.Spec.Replicas - existingStatefulSet.Spec.Template.Spec.Containers[0].Image = desiredStatefulSet.Spec.Template.Spec.Containers[0].Image + existingStatefulSet.Spec.Template.Spec = desiredStatefulSet.Spec.Template.Spec return nil }) log.Info("ensure filer stateful set " + filerStatefulSet.Name) diff --git a/controllers/controller_volume.go b/controllers/controller_volume.go index 93326fd..f624d4e 100644 --- a/controllers/controller_volume.go +++ b/controllers/controller_volume.go @@ -44,7 +44,7 @@ func (r *SeaweedReconciler) ensureVolumeServerStatefulSet(seaweedCR *seaweedv1.S desiredStatefulSet := desired.(*appsv1.StatefulSet) existingStatefulSet.Spec.Replicas = desiredStatefulSet.Spec.Replicas - existingStatefulSet.Spec.Template.Spec.Containers[0].Image = desiredStatefulSet.Spec.Template.Spec.Containers[0].Image + existingStatefulSet.Spec.Template.Spec = desiredStatefulSet.Spec.Template.Spec return nil })