Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 750 for containerB (0.38 sec)

  1. pkg/kubelet/container/testing/fake_runtime.go

    	pod.Spec.Containers = append(pod.Spec.Containers, container)
    	for _, c := range pod.Spec.Containers {
    		if c.Name == container.Name { // Container already in the pod.
    			return f.Err
    		}
    	}
    	pod.Spec.Containers = append(pod.Spec.Containers, container)
    	return f.Err
    }
    
    func (f *FakeRuntime) KillContainerInPod(container v1.Container, pod *v1.Pod) error {
    	f.Lock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 14 00:23:50 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  2. plugin/pkg/admission/serviceaccount/admission_test.go

    	}
    	if len(pod.Spec.Containers[0].VolumeMounts) != 1 {
    		t.Fatalf("Expected 1 volume mount, got %d", len(pod.Spec.Containers[0].VolumeMounts))
    	}
    	if !reflect.DeepEqual(expectedVolumeMount, pod.Spec.Containers[0].VolumeMounts[0]) {
    		t.Fatalf("Expected\n\t%#v\ngot\n\t%#v", expectedVolumeMount, pod.Spec.Containers[0].VolumeMounts[0])
    	}
    
    	// check init containers
    	pod = &api.Pod{
    		Spec: api.PodSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 17:49:30 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  3. cluster/gce/gci/configure.sh

      systemctl stop containerd
      mkdir -p /home/containerd/
      mount --bind /home/containerd /home/containerd
      mount -o remount,exec /home/containerd
      if [[ -n "${COS_INSTALL_CONTAINERD_VERSION:-}" ]]; then
        # containerd versions have slightly different url(s), so try both
        # shellcheck disable=SC2086
        ( curl ${CURL_FLAGS} \
            --location \
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 04:14:02 UTC 2024
    - 36.5K bytes
    - Viewed (0)
  4. plugin/pkg/admission/limitranger/admission.go

    		limit := limitRange.Spec.Limits[i]
    		limitType := limit.Type
    		// enforce container limits
    		if limitType == corev1.LimitTypeContainer {
    			for j := range pod.Spec.Containers {
    				container := &pod.Spec.Containers[j]
    				for k, v := range limit.Min {
    					if err := minConstraint(string(limitType), string(k), v, container.Resources.Requests, container.Resources.Limits); err != nil {
    						errs = append(errs, err)
    					}
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 24 13:04:39 UTC 2023
    - 25.8K bytes
    - Viewed (0)
  5. plugin/pkg/admission/imagepolicy/admission_test.go

    			operation:   admission.Update,
    		},
    		{
    			test: "Good container, good init container, bad ephemeral container when updating subresource=='' which sets initContainer and container only",
    			pod: &api.Pod{
    				Spec: api.PodSpec{
    					ServiceAccountName: "default",
    					SecurityContext:    &api.PodSecurityContext{},
    					Containers: []api.Container{
    						{
    							Image:           "good",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 06:05:06 UTC 2023
    - 32.9K bytes
    - Viewed (0)
  6. pkg/kubelet/stats/cri_stats_provider_windows.go

    		cs, err := p.makeWinContainerStats(criContainerStat, container, rootFsInfo, fsIDtoInfo, podSandbox.GetMetadata())
    		if err != nil {
    			return fmt.Errorf("make container stats: %w", err)
    
    		}
    		ps.Containers = append(ps.Containers, *cs)
    	}
    
    	return nil
    }
    
    func (p *criStatsProvider) makeWinContainerStats(
    	stats *runtimeapi.WindowsContainerStats,
    	container *runtimeapi.Container,
    	rootFsInfo *cadvisorapiv2.FsInfo,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 18 07:03:11 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  7. pkg/kubelet/prober/prober_manager_test.go

    			UID: "no_probe_pod",
    		},
    		Spec: v1.PodSpec{
    			Containers: []v1.Container{{
    				Name: "no_probe1",
    			}, {
    				Name: "no_probe2",
    			}, {
    				Name: "no_probe3",
    			}},
    		},
    	}
    
    	probePod := v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			UID: "probe_pod",
    		},
    		Spec: v1.PodSpec{
    			Containers: []v1.Container{{
    				Name: "probe1",
    			}, {
    				Name:           "readiness",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  8. pkg/kubelet/kuberuntime/labels.go

    	labels[types.KubernetesContainerNameLabel] = container.Name
    
    	return labels
    }
    
    // newContainerAnnotations creates container annotations from v1.Container and v1.Pod.
    func newContainerAnnotations(container *v1.Container, pod *v1.Pod, restartCount int, opts *kubecontainer.RunContainerOptions) map[string]string {
    	annotations := map[string]string{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/dra/manager_test.go

    	resourceClaimName := "test-pod-claim-1"
    
    	for _, test := range []struct {
    		description string
    		container   *v1.Container
    		pod         *v1.Pod
    		claimInfo   *ClaimInfo
    		wantErr     bool
    	}{
    		{
    			description: "claim info with annotations",
    			container: &v1.Container{
    				Name: "test-container",
    				Resources: v1.ResourceRequirements{
    					Claims: []v1.ResourceClaim{
    						{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:30:29 UTC 2024
    - 42K bytes
    - Viewed (0)
  10. pkg/kube/inject/template.go

    func applicationPorts(containers []corev1.Container) string {
    	return getContainerPorts(containers, func(c corev1.Container) bool {
    		return c.Name != ProxyContainerName
    	})
    }
    
    func includeInboundPorts(containers []corev1.Container) string {
    	// Include the ports from all containers in the deployment.
    	return getContainerPorts(containers, func(corev1.Container) bool { return true })
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 16 02:12:03 UTC 2023
    - 9.9K bytes
    - Viewed (0)
Back to top