Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,218 for containerA (0.5 sec)

  1. pkg/kubelet/container/helpers_test.go

    					},
    					InitContainers: []v1.Container{
    						{Name: "init-container"},
    					},
    				},
    			},
    			haveName:      "init-container",
    			wantContainer: &v1.Container{Name: "init-container"},
    		},
    		{
    			name: "ephemeral container",
    			havePod: &v1.Pod{
    				Spec: v1.PodSpec{
    					Containers: []v1.Container{
    						{Name: "plain-ole-container"},
    					},
    					InitContainers: []v1.Container{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 01:55:46 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/cpumanager/topology_hints_test.go

    		var activePods []*v1.Pod
    		for p := range tc.assignments {
    			pod := v1.Pod{}
    			pod.UID = types.UID(p)
    			for c := range tc.assignments[p] {
    				container := v1.Container{}
    				container.Name = c
    				pod.Spec.Containers = append(pod.Spec.Containers, container)
    			}
    			activePods = append(activePods, &pod)
    		}
    
    		m := manager{
    			policy: &staticPolicy{
    				topology: topology,
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19K 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,
    		StdinOnce:   container.StdinOnce,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 41K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. pkg/kubelet/kuberuntime/labels_test.go

    			DeletionGracePeriodSeconds: &deletionGracePeriod,
    		},
    		Spec: v1.PodSpec{
    			Containers:                    []v1.Container{*container},
    			TerminationGracePeriodSeconds: &terminationGracePeriod,
    		},
    	}
    
    	var tests = []struct {
    		description string
    		expected    *labeledContainerInfo
    	}{
    		{
    			"Regular containers",
    			&labeledContainerInfo{
    				PodName:       pod.Name,
    				PodNamespace:  pod.Namespace,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 22:43:36 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top