Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for makeDevices (0.14 sec)

  1. pkg/kubelet/kuberuntime/kuberuntime_container.go

    	if err != nil {
    		klog.ErrorS(err, "UpdateContainerResources failed", "container", containerID.String())
    	}
    	return err
    }
    
    // makeDevices generates container devices for kubelet runtime v1.
    func makeDevices(opts *kubecontainer.RunContainerOptions) []*runtimeapi.Device {
    	devices := make([]*runtimeapi.Device, len(opts.Devices))
    
    	for idx := range opts.Devices {
    		device := opts.Devices[idx]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 54.7K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/kuberuntime_container_linux_test.go

    		Args:        []string(nil),
    		WorkingDir:  container.WorkingDir,
    		Labels:      newContainerLabels(container, pod),
    		Annotations: newContainerAnnotations(container, pod, restartCount, opts),
    		Devices:     makeDevices(opts),
    		Mounts:      m.makeMounts(opts, container),
    		LogPath:     containerLogsPath,
    		Stdin:       container.Stdin,
    		StdinOnce:   container.StdinOnce,
    		Tty:         container.TTY,
    		Linux:       l,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 41K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/devicemanager/manager_test.go

    						resps.ContainerResponses = append(resps.ContainerResponses, resp)
    						return resps, nil
    					},
    				},
    				opts: nil,
    			}
    		}
    		testManager.allDevices[res.resourceName] = makeDevice(res.devs, res.topology)
    
    	}
    	return testManager, nil
    }
    
    type TestResource struct {
    	resourceName     string
    	resourceQuantity resource.Quantity
    	devs             checkpoint.DevicesPerNUMA
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
Back to top