filer, volume stateful set detect changes

This commit is contained in:
Chris Lu 2020-11-04 19:01:19 -08:00
parent 95dc4a247d
commit 291b479395
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ func (r *SeaweedReconciler) ensureFilerStatefulSet(seaweedCR *seaweedv1.Seaweed)
desiredStatefulSet := desired.(*appsv1.StatefulSet) desiredStatefulSet := desired.(*appsv1.StatefulSet)
existingStatefulSet.Spec.Replicas = desiredStatefulSet.Spec.Replicas 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 return nil
}) })
log.Info("ensure filer stateful set " + filerStatefulSet.Name) log.Info("ensure filer stateful set " + filerStatefulSet.Name)

View File

@ -44,7 +44,7 @@ func (r *SeaweedReconciler) ensureVolumeServerStatefulSet(seaweedCR *seaweedv1.S
desiredStatefulSet := desired.(*appsv1.StatefulSet) desiredStatefulSet := desired.(*appsv1.StatefulSet)
existingStatefulSet.Spec.Replicas = desiredStatefulSet.Spec.Replicas 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 return nil
}) })