Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ToSystemd (0.16 sec)

  1. pkg/kubelet/cm/pod_container_manager_linux_test.go

    		}
    		for _, testCase := range testCases {
    			// Give the right cgroup structure based on whether systemd is enabled.
    			var name string
    			if cgroupDriver == "systemd" {
    				name = testCase.input.ToSystemd()
    			} else {
    				name = testCase.input.ToCgroupfs()
    			}
    			// check if this is a pod or not with the literal cgroupfs input
    			result, resultUID := pcm.IsPodCgroup(name)
    			if result != testCase.expectedResult {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 08 13:06:38 UTC 2022
    - 8.9K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/cgroup_manager_linux_test.go

    			expected: "BestEffort-pod_6c1a4e95_6bb6_11e6_bc26_28d2444e470d.slice",
    		},
    	}
    	for _, testCase := range testCases {
    		if actual := path.Base(testCase.input.ToSystemd()); actual != testCase.expected {
    			t.Errorf("Unexpected result, input: %v, expected: %v, actual: %v", testCase.input, testCase.expected, actual)
    		}
    	}
    }
    
    func TestCgroupNameToSystemd(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 24 18:21:21 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/cgroup_manager_unsupported.go

    }
    
    var RootCgroupName = CgroupName([]string{})
    
    func NewCgroupName(base CgroupName, components ...string) CgroupName {
    	return append(append([]string{}, base...), components...)
    }
    
    func (cgroupName CgroupName) ToSystemd() string {
    	return ""
    }
    
    func ParseSystemdToCgroupName(name string) CgroupName {
    	return nil
    }
    
    func (cgroupName CgroupName) ToCgroupfs() string {
    	return ""
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 24 18:21:21 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/cgroup_manager_linux.go

    func escapeSystemdCgroupName(part string) string {
    	return strings.Replace(part, "-", "_", -1)
    }
    
    func unescapeSystemdCgroupName(part string) string {
    	return strings.Replace(part, "_", "-", -1)
    }
    
    // cgroupName.ToSystemd converts the internal cgroup name to a systemd name.
    // For example, the name {"kubepods", "burstable", "pod1234-abcd-5678-efgh"} becomes
    // "/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-pod1234_abcd_5678_efgh.slice"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 26.5K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/helpers_linux.go

    	if cgroupsPerQOS {
    		nodeAllocatableRoot = NewCgroupName(nodeAllocatableRoot, defaultNodeAllocatableCgroupName)
    	}
    	if cgroupDriver == "systemd" {
    		return nodeAllocatableRoot.ToSystemd()
    	}
    	return nodeAllocatableRoot.ToCgroupfs()
    }
    
    // GetKubeletContainer returns the cgroup the kubelet will use
    func GetKubeletContainer(kubeletCgroups string) (string, error) {
    	if kubeletCgroups == "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 11:52:28 UTC 2023
    - 9.8K bytes
    - Viewed (0)
Back to top