update master StatefulSets replicas
This commit is contained in:
parent
061d8c0784
commit
ec732cecaf
|
@ -93,6 +93,7 @@ func (r *SeaweedReconciler) ensureMasterStatefulSet(seaweedCR *seaweedv1.Seaweed
|
||||||
existingStatefulSet := existing.(*appsv1.StatefulSet)
|
existingStatefulSet := existing.(*appsv1.StatefulSet)
|
||||||
desiredStatefulSet := desired.(*appsv1.StatefulSet)
|
desiredStatefulSet := desired.(*appsv1.StatefulSet)
|
||||||
|
|
||||||
|
existingStatefulSet.Spec.Replicas = desiredStatefulSet.Spec.Replicas
|
||||||
existingStatefulSet.Spec.Template.Spec = desiredStatefulSet.Spec.Template.Spec
|
existingStatefulSet.Spec.Template.Spec = desiredStatefulSet.Spec.Template.Spec
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue