Skip to content

Commit 0ebb240

Browse files
authored
Merge pull request #7856 from novahe/cleanup
VPA: when PodEvictionAdmission calls cleanup, clean up the memory
2 parents bd34c39 + 2f003e3 commit 0ebb240

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vertical-pod-autoscaler/pkg/updater/priority/scaling_direction_pod_eviction_admission.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,5 @@ func (s *scalingDirectionPodEvictionAdmission) LoopInit(_ []*apiv1.Pod, vpaContr
120120
}
121121

122122
func (s *scalingDirectionPodEvictionAdmission) CleanUp() {
123+
s.EvictionRequirements = make(map[*apiv1.Pod][]*vpa_types.EvictionRequirement)
123124
}

0 commit comments

Comments
 (0)