Newdeploy - change only in minscale should not restart deployment

This commit is contained in:
Ta-Ching Chen
2018-11-15 15:31:28 +05:30
committed by Vishal
parent 3676602fa2
commit d9eee058ce
-1
View File
@@ -409,7 +409,6 @@ func (deploy *NewDeploy) fnUpdate(oldFn *crd.Function, newFn *crd.Function) {
if newFn.Spec.InvokeStrategy.ExecutionStrategy.MinScale != oldFn.Spec.InvokeStrategy.ExecutionStrategy.MinScale {
replicas := int32(newFn.Spec.InvokeStrategy.ExecutionStrategy.MinScale)
hpa.Spec.MinReplicas = &replicas
deployChanged = true
hpaChanged = true
}