Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 597 for containerB (0.37 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/attributes/DefaultMutableAttributeContainerTest.groovy

            def container = new DefaultMutableAttributeContainer(attributesFactory)
    
            then:
            container.empty
            container.keySet().empty
            !container.contains(thing)
            container.getAttribute(thing) == null
    
            when:
            container.attribute(thing, "thing")
    
            then:
            !container.empty
            container.keySet() == [thing] as Set
            container.contains(thing)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 08 14:34:28 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  2. pkg/kubelet/images/image_gc_manager_test.go

    			ID:   imageID(id),
    			Size: size,
    			Spec: container.ImageSpec{
    				RuntimeHandler: runtimeHandler,
    			},
    		}
    	}
    }
    
    // Make a container with the specified ID. It will use the image with the same ID.
    func makeContainer(id int) *container.Container {
    	return &container.Container{
    		ID:      container.ContainerID{Type: "test", ID: fmt.Sprintf("container-%d", id)},
    		Image:   imageName(id),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 15:38:20 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  3. pkg/volume/util/util_test.go

    								{
    									Name: "vol2",
    								},
    							},
    						},
    					},
    					Containers: []v1.Container{
    						{
    							Name: "container1",
    							VolumeMounts: []v1.VolumeMount{
    								{
    									Name: "vol3",
    								},
    							},
    						},
    						{
    							Name: "container2",
    							VolumeDevices: []v1.VolumeDevice{
    								{
    									Name: "vol4",
    								},
    							},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  4. pkg/api/v1/resource/helpers.go

    }
    
    // findContainerInPod finds a container by its name in the provided pod
    func findContainerInPod(pod *v1.Pod, containerName string) (*v1.Container, error) {
    	for _, container := range pod.Spec.Containers {
    		if container.Name == containerName {
    			return &container, nil
    		}
    	}
    	for _, container := range pod.Spec.InitContainers {
    		if container.Name == containerName {
    			return &container, nil
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 26 13:58:16 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/preemption/preemption_test.go

    					st.MakeContainer().Name("container1").Obj(),
    				}).Obj(),
    				st.MakePod().Name("p3.1").UID("p3.1").Node("node3").Priority(midPriority).Containers([]v1.Container{
    					st.MakeContainer().Name("container1").Obj(),
    					st.MakeContainer().Name("container2").Obj(),
    					st.MakeContainer().Name("container3").Obj(),
    				}).Obj(),
    			},
    			expected: "node2",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  6. pkg/api/pod/warnings_test.go

    			}},
    			expected: []string{
    				`spec.containers[0].ports[2]: duplicate port definition with spec.containers[0].ports[0]`,
    				`spec.containers[1].ports[0]: duplicate port definition with spec.containers[0].ports[0]`,
    				`spec.containers[1].ports[0]: duplicate port definition with spec.containers[0].ports[2]`,
    				`spec.containers[1].ports[1]: duplicate port definition with spec.containers[0].ports[0]`,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 17:51:48 UTC 2024
    - 42.1K bytes
    - Viewed (0)
  7. 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)
  8. staging/src/k8s.io/client-go/applyconfigurations/core/v1/container.go

    	TTY                      *bool                                     `json:"tty,omitempty"`
    }
    
    // ContainerApplyConfiguration constructs an declarative configuration of the Container type for use with
    // apply.
    func Container() *ContainerApplyConfiguration {
    	return &ContainerApplyConfiguration{}
    }
    
    // WithName sets the Name field in the declarative configuration to the given value
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 07 21:39:35 UTC 2023
    - 14.4K bytes
    - Viewed (0)
  9. pkg/kubelet/kuberuntime/kuberuntime_sandbox_test.go

    			expectedError:         fmt.Errorf("pod must not contain any HostProcess containers if Pod's WindowsOptions.HostProcess is set to false"),
    		},
    		{
    			name: "Pod's security context doesn't specify HostProcess containers but Container's security context does",
    			podSpec: &v1.PodSpec{
    				HostNetwork: true,
    				Containers: []v1.Container{{
    					Name: containerName,
    					SecurityContext: &v1.SecurityContext{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  10. pkg/api/v1/resource/helpers_test.go

    			},
    		},
    		{
    			description:    "no limited containers should result in no limits for the pod",
    			expectedLimits: v1.ResourceList{},
    			initContainers: []v1.Container{},
    			containers: []v1.Container{
    				{
    					// Unlimited container
    				},
    			},
    		},
    		{
    			description: "one limited and one unlimited container should result in the limited container's limits for the pod",
    			expectedLimits: v1.ResourceList{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 07 22:26:13 UTC 2023
    - 38.3K bytes
    - Viewed (0)
Back to top