Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 141 for InitContainers (0.2 sec)

  1. pkg/kube/inject/webhook.go

    		pod.Spec.InitContainers = modifyContainers(pod.Spec.InitContainers, ValidationContainerName, MoveFirst)
    		// Init container must be last to allow any traffic to pass before iptables is setup
    		pod.Spec.InitContainers = modifyContainers(pod.Spec.InitContainers, InitContainerName, MoveLast)
    		pod.Spec.InitContainers = modifyContainers(pod.Spec.InitContainers, EnableCoreDumpName, MoveLast)
    	}
    
    	return nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 17:59:39 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  2. pkg/api/pod/util.go

    			podSpec.Containers[i].Lifecycle = nil
    		}
    	}
    
    	for i := range podSpec.InitContainers {
    		if podSpec.InitContainers[i].Lifecycle == nil {
    			continue
    		}
    		adjustLifecycle(podSpec.InitContainers[i].Lifecycle)
    		if podSpec.InitContainers[i].Lifecycle.PreStop == nil && podSpec.InitContainers[i].Lifecycle.PostStart == nil {
    			podSpec.InitContainers[i].Lifecycle = nil
    		}
    	}
    
    	for i := range podSpec.EphemeralContainers {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 41.3K bytes
    - Viewed (0)
  3. pkg/api/v1/resource/helpers_test.go

    		podResizeStatus  v1.PodResizeStatus
    		initContainers   []v1.Container
    		containers       []v1.Container
    		containerStatus  []v1.ContainerStatus
    		expectedRequests v1.ResourceList
    	}{
    		{
    			description: "nil options, larger init container",
    			expectedRequests: v1.ResourceList{
    				v1.ResourceCPU: resource.MustParse("4"),
    			},
    			initContainers: []v1.Container{
    				{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 07 22:26:13 UTC 2023
    - 38.3K bytes
    - Viewed (0)
  4. pkg/api/v1/pod/util_test.go

    				},
    			},
    			wantContainers: []string{"i1", "i2"},
    			mask:           InitContainers,
    		},
    		{
    			desc: "ephemeral containers",
    			spec: &v1.PodSpec{
    				Containers: []v1.Container{
    					{Name: "c1"},
    					{Name: "c2"},
    				},
    				InitContainers: []v1.Container{
    					{Name: "i1"},
    					{Name: "i2"},
    				},
    				EphemeralContainers: []v1.EphemeralContainer{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 11:04:08 UTC 2023
    - 32.1K bytes
    - Viewed (0)
  5. plugin/pkg/admission/extendedresourcetoleration/admission_test.go

    			requestedPod: core.Pod{
    				Spec: core.PodSpec{
    					InitContainers: []core.Container{
    						containerRequestingMemory,
    					},
    				},
    			},
    			expectedPod: core.Pod{
    				Spec: core.PodSpec{
    					InitContainers: []core.Container{
    						containerRequestingMemory,
    					},
    				},
    			},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 20 15:11:00 UTC 2019
    - 10.3K bytes
    - Viewed (0)
  6. pkg/apis/core/v1/defaults.go

    			}
    		}
    	}
    	for i := range obj.Spec.InitContainers {
    		if obj.Spec.InitContainers[i].Resources.Limits != nil {
    			if obj.Spec.InitContainers[i].Resources.Requests == nil {
    				obj.Spec.InitContainers[i].Resources.Requests = make(v1.ResourceList)
    			}
    			for key, value := range obj.Spec.InitContainers[i].Resources.Limits {
    				if _, exists := obj.Spec.InitContainers[i].Resources.Requests[key]; !exists {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 19 22:24:15 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  7. pkg/api/v1/resource/helpers.go

    	}
    
    	restartableInitContainerReqs := v1.ResourceList{}
    	initContainerReqs := v1.ResourceList{}
    	// init containers define the minimum of any resource
    	// Note: In-place resize is not allowed for InitContainers, so no need to check for ResizeStatus value
    	//
    	// Let's say `InitContainerUse(i)` is the resource requirements when the i-th
    	// init container is initializing, then
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 26 13:58:16 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  8. pkg/api/v1/pod/util.go

    // false if visiting was short-circuited.
    func VisitContainers(podSpec *v1.PodSpec, mask ContainerType, visitor ContainerVisitor) bool {
    	if mask&InitContainers != 0 {
    		for i := range podSpec.InitContainers {
    			if !visitor(&podSpec.InitContainers[i], InitContainers) {
    				return false
    			}
    		}
    	}
    	if mask&Containers != 0 {
    		for i := range podSpec.Containers {
    			if !visitor(&podSpec.Containers[i], Containers) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 24 17:18:04 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  9. plugin/pkg/admission/serviceaccount/admission_test.go

    	}
    	if len(pod.Spec.InitContainers[0].VolumeMounts) != 1 {
    		t.Fatalf("Expected 1 volume mount, got %d", len(pod.Spec.InitContainers[0].VolumeMounts))
    	}
    	if !reflect.DeepEqual(expectedVolumeMount, pod.Spec.InitContainers[0].VolumeMounts[0]) {
    		t.Fatalf("Expected\n\t%#v\ngot\n\t%#v", expectedVolumeMount, pod.Spec.InitContainers[0].VolumeMounts[0])
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 17:49:30 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  10. pkg/kubelet/status/generate_test.go

    func TestGeneratePodInitializedCondition(t *testing.T) {
    	noInitContainer := &v1.PodSpec{}
    	oneInitContainer := &v1.PodSpec{
    		InitContainers: []v1.Container{
    			{Name: "1234"},
    		},
    		Containers: []v1.Container{
    			{Name: "regular"},
    		},
    	}
    	twoInitContainer := &v1.PodSpec{
    		InitContainers: []v1.Container{
    			{Name: "1234"},
    			{Name: "5678"},
    		},
    		Containers: []v1.Container{
    			{Name: "regular"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 12 15:18:11 UTC 2023
    - 18.2K bytes
    - Viewed (0)
Back to top