Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 690 for ContainerT (0.23 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/kubelet/container/helpers.go

    			return false
    		}
    	}
    	return true
    }
    
    // HashContainer returns the hash of the container. It is used to compare
    // the running container with its desired spec.
    // Note: remember to update hashValues in container_hash_test.go as well.
    func HashContainer(container *v1.Container) uint64 {
    	hash := fnv.New32a()
    	containerJSON, _ := json.Marshal(pickFieldsToHash(container))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  4. pkg/kubelet/kuberuntime/kuberuntime_container_test.go

    			name: "default termination grace period",
    			pod: &v1.Pod{
    				Spec: v1.PodSpec{Containers: []v1.Container{{Name: "foo"}}},
    			},
    			reason:              reasonUnknown,
    			expectedGracePeriod: int64(2),
    		},
    		{
    			name: "use pod termination grace period",
    			pod: &v1.Pod{
    				Spec: v1.PodSpec{
    					Containers:                    []v1.Container{{Name: "foo"}},
    					TerminationGracePeriodSeconds: &longGracePeriod,
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 28K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. pkg/kubelet/kubelet_pods.go

    	}
    	return regular, static
    }
    
    // validateContainerLogStatus returns the container ID for the desired container to retrieve logs for, based on the state
    // of the container. The previous flag will only return the logs for the last terminated container, otherwise, the current
    // running container is preferred over a previous termination. If info about the container is not available then a specific
    // error is returned to the end user.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  10. pkg/quota/v1/evaluator/core/pods_test.go

    						},
    					}},
    				},
    			},
    			required: []corev1.ResourceName{corev1.ResourceMemory},
    			err:      `must specify memory for: bar,foo`,
    		},
    		"container resource missing": {
    			pod: &api.Pod{
    				Spec: api.PodSpec{
    					Containers: []api.Container{{
    						Name: "dummy",
    						Resources: api.ResourceRequirements{
    							Requests: api.ResourceList{api.ResourceCPU: resource.MustParse("1m")},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.6K bytes
    - Viewed (0)
Back to top