Migrate pkg/kubelet/kubeletconfig to Structured Logging

Remove plg/kubelet/kubeletconfig/util/log

Co-authored-by: Elana Hashman <ehashman@redhat.com>
This commit is contained in:
afrouz
2021-03-09 17:10:45 +03:30
committed by Elana Hashman
parent 3b5d809eed
commit 190b5250ec
10 changed files with 53 additions and 103 deletions

View File

@@ -42,7 +42,7 @@ func (kl *Kubelet) defaultPodLimitsForDownwardAPI(pod *v1.Pod, container *v1.Con
return nil, nil, fmt.Errorf("failed to find node object, expected a node")
}
allocatable := node.Status.Allocatable
klog.Infof("allocatable: %v", allocatable)
klog.InfoS("Allocatable", "allocatable", allocatable)
outputPod := pod.DeepCopy()
for idx := range outputPod.Spec.Containers {
resource.MergeContainerResourceLimits(&outputPod.Spec.Containers[idx], allocatable)