Use volume size as the ground truth while creating the engine process
Longhorn 3601
@@ -427,7 +427,7 @@ func (ec *EngineController) CreateInstance(obj interface{}) (*longhorn.InstanceP
}
defer c.Close()
- return c.EngineProcessCreate(e.Name, e.Spec.VolumeName, e.Spec.EngineImage, frontend, e.Status.CurrentReplicaAddressMap, e.Spec.RevisionCounterDisabled, e.Spec.SalvageRequested)
+ return c.EngineProcessCreate(e.Name, e.Spec.VolumeName, e.Spec.VolumeSize, e.Status.CurrentSize, e.Spec.EngineImage, frontend, e.Status.CurrentReplicaAddressMap, e.Spec.RevisionCounterDisabled, e.Spec.SalvageRequested)
}
func (ec *EngineController) DeleteInstance(obj interface{}) error {
