File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -261,10 +261,11 @@ func (sc *StackContainer) GenerateDeployment() *appsv1.Deployment {
261261 return deployment
262262}
263263
264- // GenerateHPA generates a hpa as configured in the
265- // stack. On cluster migrations set by stackset annotation
266- // "zalando.org/forward-backend", the hpa will be set to
267- // minReplicas = maxReplicass = 1.
264+ // GenerateHPA generates a hpa as configured in the stack. On cluster
265+ // migrations set by stackset annotation
266+ // "zalando.org/forward-backend", the hpa will be set to nil, because
267+ // we do not use the backend deployment from the new stack to receive
268+ // traffic.
268269func (sc * StackContainer ) GenerateHPA () (
269270 * autoscaling.HorizontalPodAutoscaler ,
270271 error ,
@@ -317,7 +318,7 @@ func (sc *StackContainer) GenerateHPA() (
317318 result .Annotations = mergeLabels (result .Annotations , annotations )
318319 result .Spec .Behavior = autoscalerSpec .Behavior
319320
320- // If prescaling is enabled, ensure we have at least `precalingReplicas ` pods
321+ // If prescaling is enabled, ensure we have at least `prescalingReplicas ` pods
321322 if sc .prescalingActive && (result .Spec .MinReplicas == nil || * result .Spec .MinReplicas < sc .prescalingReplicas ) {
322323 pr := sc .prescalingReplicas
323324 result .Spec .MinReplicas = & pr
You can’t perform that action at this time.
0 commit comments