Skip to content

Commit

Permalink
add logs when root container does not exist
Browse files Browse the repository at this point in the history
Signed-off-by: Harshal Patil <harpatil@redhat.com>
  • Loading branch information
harche committed Feb 22, 2024
1 parent 2eba5a9 commit 54eb9d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/kubelet/cm/cgroup_manager_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,9 @@ func (m *cgroupManagerImpl) Validate(name CgroupName) error {

// Exists checks if all subsystem cgroups already exist
func (m *cgroupManagerImpl) Exists(name CgroupName) bool {
if m.Validate(name) != nil {
klog.V(2).InfoS("Unable to validate cgroup", "name", name)
}
return m.Validate(name) == nil
}

Expand Down

0 comments on commit 54eb9d3

Please sign in to comment.