Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for newContainerAnnotations (0.3 sec)

  1. pkg/kubelet/kuberuntime/labels_test.go

    	}
    
    	featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.InPlacePodVerticalScaling, true)
    	// Test whether we can get right information from label
    	annotations := newContainerAnnotations(container, pod, restartCount, opts)
    	containerInfo := getContainerInfoFromAnnotations(annotations)
    	if !reflect.DeepEqual(containerInfo, expected) {
    		t.Errorf("expected %v, got %v", expected, containerInfo)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 22:43:36 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/labels.go

    	labels[types.KubernetesPodUIDLabel] = string(pod.UID)
    	labels[types.KubernetesContainerNameLabel] = container.Name
    
    	return labels
    }
    
    // newContainerAnnotations creates container annotations from v1.Container and v1.Pod.
    func newContainerAnnotations(container *v1.Container, pod *v1.Pod, restartCount int, opts *kubecontainer.RunContainerOptions) map[string]string {
    	annotations := map[string]string{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/kuberuntime_container_linux_test.go

    		Command:     container.Command,
    		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,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 41K bytes
    - Viewed (0)
  4. pkg/kubelet/kuberuntime/kuberuntime_container.go

    		Command:     command,
    		Args:        args,
    		WorkingDir:  container.WorkingDir,
    		Labels:      newContainerLabels(container, pod),
    		Annotations: newContainerAnnotations(container, pod, restartCount, opts),
    		Devices:     makeDevices(opts),
    		CDIDevices:  makeCDIDevices(opts),
    		Mounts:      m.makeMounts(opts, container),
    		LogPath:     containerLogsPath,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 54.7K bytes
    - Viewed (0)
Back to top