Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 790 for containerB (0.35 sec)

  1. cni/pkg/plugin/plugin_test.go

    	cniConf := buildMockConf(true, url)
    
    	pod, ns := buildFakePodAndNSForClient()
    
    	proxy := corev1.Container{Name: "istio-proxy"}
    	app := corev1.Container{Name: "app"}
    
    	pod.Spec.Containers = []corev1.Container{app, proxy}
    	pod.ObjectMeta.Annotations = map[string]string{annotation.SidecarStatus.Name: "true"}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:01 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  2. pkg/kubelet/apis/podresources/server_v1_test.go

    			return false
    		}
    		if podResA.Namespace != podResB.Namespace {
    			return false
    		}
    		if len(podResA.Containers) != len(podResB.Containers) {
    			return false
    		}
    		for jdx := 0; jdx < len(podResA.Containers); jdx++ {
    			cntA := podResA.Containers[jdx]
    			cntB := podResB.Containers[jdx]
    
    			if cntA.Name != cntB.Name {
    				return false
    			}
    			if !equalInt64s(cntA.CpuIds, cntB.CpuIds) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 45.9K bytes
    - Viewed (0)
  3. pkg/api/v1/pod/util.go

    type ContainerType int
    
    const (
    	// Containers is for normal containers
    	Containers ContainerType = 1 << iota
    	// InitContainers is for init containers
    	InitContainers
    	// EphemeralContainers is for ephemeral containers
    	EphemeralContainers
    )
    
    // AllContainers specifies that all containers be visited
    const AllContainers ContainerType = InitContainers | Containers | EphemeralContainers
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 24 17:18:04 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  4. pkg/kubelet/pleg/generic_test.go

    		// Clear the IP address and mark the container terminated
    		container = createTestContainer("c0", kubecontainer.ContainerStateExited)
    		pod = &kubecontainer.Pod{
    			ID:         id,
    			Containers: []*kubecontainer.Container{container},
    		}
    		status = &kubecontainer.PodStatus{
    			ID:                id,
    			ContainerStatuses: []*kubecontainer.Status{{ID: container.ID, State: kubecontainer.ContainerStateExited}},
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  5. pkg/kubelet/kuberuntime/kuberuntime_container_test.go

    		fakeOS.Removes)
    	// Verify container is removed
    	assert.Contains(t, fakeRuntime.Called, "RemoveContainer")
    	containers, err := fakeRuntime.ListContainers(ctx, &runtimeapi.ContainerFilter{Id: containerID})
    	assert.NoError(t, err)
    	assert.Empty(t, containers)
    }
    
    // TestKillContainer tests killing the container in a Pod.
    func TestKillContainer(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 28K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/devicemanager/manager.go

    		}
    	}
    	// Allocate resources for init containers first as we know the caller always loops
    	// through init containers before looping through app containers. Should the caller
    	// ever change those semantics, this logic will need to be amended.
    	for _, initContainer := range pod.Spec.InitContainers {
    		if container.Name == initContainer.Name {
    			if err := m.allocateContainerResources(pod, container, m.devicesToReuse[string(pod.UID)]); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 12:01:56 UTC 2024
    - 43K bytes
    - Viewed (0)
  7. pkg/kubelet/lifecycle/handlers_test.go

    	pod.ObjectMeta.Name = "podFoo"
    	pod.ObjectMeta.Namespace = "nsFoo"
    	pod.Spec.Containers = []v1.Container{container}
    
    	t.Run("consistent", func(t *testing.T) {
    		container.Lifecycle.PostStart.HTTPGet.Port = intstr.FromString("70")
    		pod.Spec.Containers = []v1.Container{container}
    		_, err := handlerRunner.Run(ctx, containerID, &pod, &container, container.Lifecycle.PostStart)
    
    		if err != nil {
    			t.Errorf("unexpected error: %v", err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  8. pkg/kubelet/volumemanager/volume_manager_test.go

    	pod := &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "abc",
    			Namespace: "nsA",
    			UID:       "1234",
    		},
    		Spec: v1.PodSpec{
    			Containers: []v1.Container{
    				{
    					Name: "container1",
    					VolumeMounts: []v1.VolumeMount{
    						{
    							Name:      volumetest.FailMountDeviceVolumeName,
    							MountPath: "/vol1",
    						},
    						{
    							Name:      "vol2",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  9. pkg/kubelet/status/status_manager.go

    // state, which is the set of containers that have attempted to start at least once. If all containers
    // are Waiting, the first container is always returned.
    func initializedContainers(containers []v1.ContainerStatus) []v1.ContainerStatus {
    	for i := len(containers) - 1; i >= 0; i-- {
    		if containers[i].State.Waiting == nil || containers[i].LastTerminationState.Terminated != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  10. pkg/kubelet/cm/cpumanager/cpu_manager_test.go

    	pod.UID = types.UID(podUID)
    	pod.Spec.Containers[0].Name = containerName
    
    	return pod
    }
    
    func makeMultiContainerPod(initCPUs, appCPUs []struct{ request, limit string }) *v1.Pod {
    	pod := &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: "pod",
    			UID:  "podUID",
    		},
    		Spec: v1.PodSpec{
    			InitContainers: []v1.Container{},
    			Containers:     []v1.Container{},
    		},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 13:16:15 UTC 2023
    - 42.9K bytes
    - Viewed (0)
Back to top