Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 442 for ContainerT (0.14 sec)

  1. pkg/kubelet/cm/devicemanager/manager.go

    		// mutex lock. Note if Allocate call fails, we may leave container resources
    		// partially allocated for the failed container. We rely on UpdateAllocatedDevices()
    		// to garbage collect these resources later. Another side effect is that if
    		// we have X resource A and Y resource B in total, and two containers, container1
    		// and container2 both require X resource A and Y resource B. Both allocation
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 12:01:56 UTC 2024
    - 43K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. pkg/kubelet/stats/cri_stats_provider_windows_test.go

    							RxBytes: toP(2),
    							TxBytes: toP(20),
    						},
    					},
    				},
    			},
    			wantErr: false,
    		},
    		{
    			name: "multiple containers same endpoint",
    			fields: fakeNetworkStatsProvider{
    				containers: []containerStats{
    					{
    						container: hcsshim.ContainerProperties{
    							ID: "c1",
    						}, hcsStats: []hcsshim.NetworkStats{
    							{
    								BytesReceived: 1,
    								BytesSent:     10,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Feb 17 00:02:10 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  8. manifests/charts/istio-control/istio-discovery/files/grpc-agent.yaml

          {{ toYaml .Values.global.proxy.resources | indent 6 }}
        {{- end }}
      {{- end }}
    {{- end }}
    {{- $containers := list }}
    {{- range $index, $container := .Spec.Containers }}{{ if not (eq $container.Name "istio-proxy") }}{{ $containers = append $containers $container.Name }}{{end}}{{- end}}
    metadata:
      labels:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 26 16:51:17 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  9. pkg/kubelet/pleg/generic.go

    }
    
    func getContainersFromPods(pods ...*kubecontainer.Pod) []*kubecontainer.Container {
    	cidSet := sets.New[string]()
    	var containers []*kubecontainer.Container
    	fillCidSet := func(cs []*kubecontainer.Container) {
    		for _, c := range cs {
    			cid := c.ID.ID
    			if cidSet.Has(cid) {
    				continue
    			}
    			cidSet.Insert(cid)
    			containers = append(containers, c)
    		}
    	}
    
    	for _, p := range pods {
    		if p == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  10. pkg/volume/emptydir/empty_dir_test.go

    		mountDetector   = fakeMountDetector{}
    		pod             = &v1.Pod{
    			ObjectMeta: metav1.ObjectMeta{
    				UID: types.UID("poduid"),
    			},
    			Spec: v1.PodSpec{
    				Containers: []v1.Container{
    					{
    						Resources: v1.ResourceRequirements{
    							Requests: v1.ResourceList{
    								v1.ResourceName("hugepages-2Mi"): resource.MustParse("100Mi"),
    							},
    						},
    					},
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top