From 291b479395404e50a3669e9f322002d3b7f4566a Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 4 Nov 2020 19:01:19 -0800 Subject: [PATCH] filer, volume stateful set detect changes --- controllers/controller_filer.go | 2 +- controllers/controller_volume.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 })