Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ParseSystemdToCgroupName (0.18 sec)

  1. pkg/kubelet/cm/cgroup_manager_unsupported.go

    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 ""
    }
    
    func ParseCgroupfsToCgroupName(name string) CgroupName {
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 24 18:21:21 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/cgroup_manager_linux_test.go

    			input:    "/test",
    			expected: []string{"test"},
    		},
    		{
    			input:    "/test.slice",
    			expected: []string{"test"},
    		},
    	}
    
    	for _, testCase := range testCases {
    		if actual := ParseSystemdToCgroupName(testCase.input); !reflect.DeepEqual(actual, testCase.expected) {
    			t.Errorf("Unexpected result, input: %v, expected: %v, actual: %v", testCase.input, testCase.expected, actual)
    		}
    	}
    }
    
    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_linux.go

    	if err != nil {
    		// Should never happen...
    		panic(fmt.Errorf("error converting cgroup name [%v] to systemd format: %v", cgroupName, err))
    	}
    	return result
    }
    
    func ParseSystemdToCgroupName(name string) CgroupName {
    	driverName := path.Base(name)
    	driverName = strings.TrimSuffix(driverName, systemdSuffix)
    	parts := strings.Split(driverName, "-")
    	result := []string{}
    	for _, part := range parts {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 26.5K bytes
    - Viewed (0)
  4. pkg/kubelet/stats/cadvisor_stats_provider.go

    	for key, cinfo := range containerInfo {
    		var podCgroupKey string
    		if cm.IsSystemdStyleName(key) {
    			// Convert to internal cgroup name and take the last component only.
    			internalCgroupName := cm.ParseSystemdToCgroupName(key)
    			podCgroupKey = internalCgroupName[len(internalCgroupName)-1]
    		} else {
    			// Take last component only.
    			podCgroupKey = filepath.Base(key)
    		}
    		cinfosByPodCgroupKey[podCgroupKey] = cinfo
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 16 13:34:22 UTC 2023
    - 18.9K bytes
    - Viewed (0)
Back to top