Skip to content

Commit 8b72a52

Browse files
authored
Merge pull request kubernetes#3118 from tweks/cr-fix
Update aggregatedContainerState from containerResourcePolicy
2 parents eec4a36 + 0024e87 commit 8b72a52

File tree

1 file changed

+1
-0
lines changed
  • vertical-pod-autoscaler/pkg/recommender/routines

1 file changed

+1
-0
lines changed

vertical-pod-autoscaler/pkg/recommender/routines/vpa.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ func GetContainerNameToAggregateStateMap(vpa *model.Vpa) model.ContainerNameToAg
3232
autoscalingDisabled := containerResourcePolicy != nil && containerResourcePolicy.Mode != nil &&
3333
*containerResourcePolicy.Mode == vpa_types.ContainerScalingModeOff
3434
if !autoscalingDisabled && aggregatedContainerState.TotalSamplesCount > 0 {
35+
aggregatedContainerState.UpdateFromPolicy(containerResourcePolicy)
3536
filteredContainerNameToAggregateStateMap[containerName] = aggregatedContainerState
3637
}
3738
}

0 commit comments

Comments
 (0)