Merge pull request #130559 from esotsal/fix-use-CamelCase-for-memory-manager-policy-name-check-for-InPlacePodVerticalScalingExclusiveCPUs-feature-gate

[FG:InPlacePodVerticalScaling] Fix use CamelCase for memory manager policy in InPlacePodVerticalScalingExclusiveCPUs
This commit is contained in:
Kubernetes Prow Robot 2025-03-10 14:41:47 -07:00 committed by GitHub
commit f510123183
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2835,7 +2835,7 @@ func (kl *Kubelet) canResizePod(pod *v1.Pod) (bool, v1.PodResizeStatus, string)
}
}
if utilfeature.DefaultFeatureGate.Enabled(features.MemoryManager) {
if kl.containerManager.GetNodeConfig().MemoryManagerPolicy == "static" {
if kl.containerManager.GetNodeConfig().MemoryManagerPolicy == "Static" {
msg := "Resize is infeasible for Guaranteed Pods alongside Memory Manager static policy"
klog.V(3).InfoS(msg, "pod", format.Pod(pod))
return false, v1.PodResizeStatusInfeasible, msg