From e5c229fafa00eec2c1e0bcfa327141d48673e527 Mon Sep 17 00:00:00 2001 From: zhanluxianshen Date: Wed, 22 May 2024 16:56:06 +0800 Subject: [PATCH] clean typos logs in kubelet. --- pkg/kubelet/cm/container_manager.go | 2 +- pkg/kubelet/eviction/api/types.go | 1 - pkg/kubelet/eviction/types.go | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/kubelet/cm/container_manager.go b/pkg/kubelet/cm/container_manager.go index dbd35dd71ef..1b3ab69b452 100644 --- a/pkg/kubelet/cm/container_manager.go +++ b/pkg/kubelet/cm/container_manager.go @@ -120,7 +120,7 @@ type ContainerManager interface { // PrepareDynamicResource prepares dynamic pod resources PrepareDynamicResources(*v1.Pod) error - // UnrepareDynamicResources unprepares dynamic pod resources + // UnprepareDynamicResources unprepares dynamic pod resources UnprepareDynamicResources(*v1.Pod) error // PodMightNeedToUnprepareResources returns true if the pod with the given UID diff --git a/pkg/kubelet/eviction/api/types.go b/pkg/kubelet/eviction/api/types.go index ce0e2bd7a0b..359f13e7bcc 100644 --- a/pkg/kubelet/eviction/api/types.go +++ b/pkg/kubelet/eviction/api/types.go @@ -46,7 +46,6 @@ const ( // We will override user settings and set to either imagefs or nodefs depending on configuration. SignalContainerFsAvailable Signal = "containerfs.available" // SignalContainerFsInodesFree is amount of inodes available on filesystem that container runtime uses for container writable layers. - // SignalContainerFsAvailable is amount of storage available on filesystem that container runtime uses for container writable layers. // In case of a single filesystem, containerfs=nodefs. // In case of a image filesystem, containerfs=imagefs. // We will override user settings and set to either imagefs or nodefs depending on configuration. diff --git a/pkg/kubelet/eviction/types.go b/pkg/kubelet/eviction/types.go index 3a83a3e31ef..6f0282b407c 100644 --- a/pkg/kubelet/eviction/types.go +++ b/pkg/kubelet/eviction/types.go @@ -38,7 +38,7 @@ const ( fsStatsLogs fsStatsType = "logs" // fsStatsRoot identifies stats for pod container writable layers. fsStatsRoot fsStatsType = "root" - // fsStatsContainer identifies stats for pod container read-only layers + // fsStatsImages identifies stats for pod container read-only layers fsStatsImages fsStatsType = "images" )