Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for cgroupPaths (0.19 sec)

  1. cni/pkg/nodeagent/podcgroupns_test.go

    	}{
    		{
    			name:              "no cgroups",
    			cgroupPaths:       []string{},
    			expectPodUID:      "",
    			expectContainerID: "",
    		},
    		{
    			name: "no container ID in cgroups",
    			cgroupPaths: []string{
    				"/user.slice",
    			},
    			expectPodUID:      "",
    			expectContainerID: "",
    		},
    		{
    			name: "one container ID in cgroups",
    			cgroupPaths: []string{
    				"/user.slice",
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/podcgroupns.go

    	// we don't have to muck with greediness. TrimSuffix is no-copy so this
    	// is cheap.
    	cgroupPath = strings.TrimSuffix(cgroupPath, ".scope")
    
    	var matchResults map[string]string
    	for _, regex := range cgroupREs {
    		matches := reSubMatchMap(regex, cgroupPath)
    		if isValidCGroupPathMatches(matches) {
    			if matchResults != nil {
    				return "", "", false
    			}
    			matchResults = matches
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 11K bytes
    - Viewed (0)
Back to top