Skip to content

Commit d345286

Browse files
jkyrosmaxcao13
authored andcommitted
only allow in-place if explicitly set (for testing)
1 parent 299f762 commit d345286

File tree

1 file changed

+1
-1
lines changed
  • vertical-pod-autoscaler/pkg/updater/logic

1 file changed

+1
-1
lines changed

vertical-pod-autoscaler/pkg/updater/logic/updater.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ func (u *updater) AttemptInPlaceScalingIfPossible(ctx context.Context, vpaSize i
381381
return
382382
}
383383

384-
if vpa_api_util.GetUpdateMode(vpa) == vpa_types.UpdateModeInPlaceOrRecreate || vpa_api_util.GetUpdateMode(vpa) == vpa_types.UpdateModeAuto {
384+
if vpa_api_util.GetUpdateMode(vpa) == vpa_types.UpdateModeInPlaceOrRecreate {
385385

386386
// separate counters/stats for in-place updates
387387
withInPlaceUpdatable := false

0 commit comments

Comments
 (0)