Skip to content

Commit aa72f36

Browse files
voelzmok8s-infra-cherrypick-robot
authored andcommitted
include pod namespace when logging updates
1 parent 795079c commit aa72f36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vertical-pod-autoscaler/pkg/admission-controller/resource/pod/recommendation/recommendation_provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func (p *recommendationProvider) GetContainersResourcesForPod(pod *core.Pod, vpa
109109
klog.V(2).InfoS("Can't calculate recommendations, one of VPA or Pod is nil", "vpa", vpa, "pod", pod)
110110
return nil, nil, nil
111111
}
112-
klog.V(2).InfoS("Updating requirements for pod", "pod", pod.Name)
112+
klog.V(2).InfoS("Updating requirements for pod", "pod", klog.KObj(pod))
113113

114114
var annotations vpa_api_util.ContainerToAnnotationsMap
115115
recommendedPodResources := &vpa_types.RecommendedPodResources{}

0 commit comments

Comments
 (0)