- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for ParseCgroupfsToCgroupName (0.31 sec)
-
pkg/kubelet/cm/cgroup_manager_unsupported.go
return "" } func ParseSystemdToCgroupName(name string) CgroupName { return nil } func (cgroupName CgroupName) ToCgroupfs() string { return "" } func ParseCgroupfsToCgroupName(name string) CgroupName { return nil } func IsSystemdStyleName(name string) bool { return false
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 24 18:21:21 UTC 2023 - 2.8K bytes - Viewed (0) -
pkg/kubelet/cm/qos_container_manager_linux_test.go
subsystems, err := GetCgroupSubsystems() if err != nil { return nil, fmt.Errorf("failed to get mounted cgroup subsystems: %v", err) } cgroupRoot := ParseCgroupfsToCgroupName("/") cgroupRoot = NewCgroupName(cgroupRoot, defaultNodeAllocatableCgroupName) qosContainerManager := &qosContainerManagerImpl{ subsystems: subsystems,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 4K bytes - Viewed (0) -
pkg/kubelet/cm/cgroup_manager_linux_test.go
limitations under the License. */ package cm import ( "path" "reflect" "testing" ) // TestNewCgroupName tests confirms that #68416 is fixed func TestNewCgroupName(t *testing.T) { a := ParseCgroupfsToCgroupName("/a/") ab := NewCgroupName(a, "b") expectedAB := CgroupName([]string{"a", "", "b"}) if !reflect.DeepEqual(ab, expectedAB) { t.Errorf("Expected %d%+v; got %d%+v", len(expectedAB), expectedAB, len(ab), ab) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 24 18:21:21 UTC 2023 - 6.1K bytes - Viewed (0) -
pkg/kubelet/cm/helpers_linux.go
} // NodeAllocatableRoot returns the literal cgroup path for the node allocatable cgroup func NodeAllocatableRoot(cgroupRoot string, cgroupsPerQOS bool, cgroupDriver string) string { nodeAllocatableRoot := ParseCgroupfsToCgroupName(cgroupRoot) if cgroupsPerQOS { nodeAllocatableRoot = NewCgroupName(nodeAllocatableRoot, defaultNodeAllocatableCgroupName) } if cgroupDriver == "systemd" { return nodeAllocatableRoot.ToSystemd() }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 14 11:52:28 UTC 2023 - 9.8K bytes - Viewed (0) -
pkg/kubelet/cm/cgroup_manager_linux.go
result = append(result, unescapeSystemdCgroupName(part)) } return CgroupName(result) } func (cgroupName CgroupName) ToCgroupfs() string { return "/" + path.Join(cgroupName...) } func ParseCgroupfsToCgroupName(name string) CgroupName { components := strings.Split(strings.TrimPrefix(name, "/"), "/") if len(components) == 1 && components[0] == "" { components = []string{} } return CgroupName(components) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 27 13:02:15 UTC 2023 - 26.5K bytes - Viewed (0) -
pkg/kubelet/cm/container_manager_linux.go
int64(*pidlimits.MaxPID), resource.DecimalSI) } // Turn CgroupRoot from a string (in cgroupfs path format) to internal CgroupName cgroupRoot := ParseCgroupfsToCgroupName(nodeConfig.CgroupRoot) cgroupManager := NewCgroupManager(subsystems, nodeConfig.CgroupDriver) // Check if Cgroup-root actually exists on the node if nodeConfig.CgroupsPerQOS {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 10:18:16 UTC 2024 - 35.1K bytes - Viewed (0)