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 64eebdc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 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,10 @@ func (m *cgroupManagerImpl) Validate(name CgroupName) error {

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

Expand Down

0 comments on commit 64eebdc

Please sign in to comment.