Use CamelCase for memory manager policy name check in InPlacePodVerticalScalingExclusiveCPUs

This commit is contained in:
Sotiris Salloumis 2025-03-04 14:23:08 +01:00
parent 58704903c5
commit 33bf509eb0

View File

@ -2829,7 +2829,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