Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for InitContainers (0.4 sec)

  1. pkg/api/pod/util_test.go

    				PreStop:   preStop,
    			}
    		}
    		return container
    	}
    
    	makePod := func(containers []api.Container, initContainers []api.Container, ephemeralContainers []api.EphemeralContainer) *api.PodSpec {
    		return &api.PodSpec{
    			Containers:          containers,
    			InitContainers:      initContainers,
    			EphemeralContainers: ephemeralContainers,
    		}
    	}
    
    	testCases := []struct {
    		gateEnabled            bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  2. pkg/printers/internalversion/printers.go

    	case api.PodFailed:
    		row.Conditions = podFailedConditions
    	}
    
    	initContainers := make(map[string]*api.Container)
    	for i := range pod.Spec.InitContainers {
    		initContainers[pod.Spec.InitContainers[i].Name] = &pod.Spec.InitContainers[i]
    		if isRestartableInitContainer(&pod.Spec.InitContainers[i]) {
    			totalContainers++
    		}
    	}
    
    	initializing := false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 128.3K bytes
    - Viewed (0)
  3. pkg/printers/internalversion/printers_test.go

    					},
    				},
    			},
    		},
    		{
    			// Test pod has container statuses for non-existent initContainers and containers
    			api.Pod{
    				ObjectMeta: metav1.ObjectMeta{Name: "test4"},
    				Spec: api.PodSpec{
    					InitContainers: []api.Container{
    						{Name: "init1", Image: "initimage"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/memorymanager/policy_static_test.go

    			if err != nil {
    				t.Fatalf("Unexpected error: %v", err)
    			}
    
    			for i := range testCase.pod.Spec.InitContainers {
    				err = p.Allocate(s, testCase.pod, &testCase.pod.Spec.InitContainers[i])
    				if !reflect.DeepEqual(err, testCase.expectedError) {
    					t.Fatalf("The actual error %v is different from the expected one %v", err, testCase.expectedError)
    				}
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Sep 17 05:49:15 UTC 2023
    - 100.4K bytes
    - Viewed (0)
  5. pkg/kubelet/kubelet_pods.go

    		pod, podStatus,
    		oldPodStatus.ContainerStatuses,
    		pod.Spec.Containers,
    		len(pod.Spec.InitContainers) > 0,
    		false,
    	)
    	apiPodStatus.InitContainerStatuses = kl.convertToAPIContainerStatuses(
    		pod, podStatus,
    		oldPodStatus.InitContainerStatuses,
    		pod.Spec.InitContainers,
    		len(pod.Spec.InitContainers) > 0,
    		true,
    	)
    	var ecSpecs []v1.Container
    	for i := range pod.Spec.EphemeralContainers {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  6. pkg/apis/batch/validation/validation_test.go

    			DNSPolicy:      api.DNSClusterFirst,
    			Containers:     []api.Container{{Name: "abc", Image: "image", ImagePullPolicy: "IfNotPresent", TerminationMessagePolicy: api.TerminationMessageReadFile}},
    			InitContainers: []api.Container{{Name: "def", Image: "image", ImagePullPolicy: "IfNotPresent", TerminationMessagePolicy: api.TerminationMessageReadFile}},
    		},
    	}
    }
    
    func TestValidateJob(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 124.3K bytes
    - Viewed (0)
  7. pkg/kubelet/kubelet_test.go

    	for i, test := range tests {
    		kubelet.reasonCache = NewReasonCache()
    		for n, e := range test.reasons {
    			kubelet.reasonCache.add(pod.UID, n, e, "")
    		}
    		pod.Spec.InitContainers = test.containers
    		pod.Status.InitContainerStatuses = test.oldStatuses
    		podStatus.ContainerStatuses = test.statuses
    		apiStatus := kubelet.generateAPIPodStatus(pod, podStatus, false)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  8. operator/cmd/mesh/testdata/manifest-generate/output/pilot_default.golden.yaml

            spec:
              {{- $holdProxy := and
                  (or .ProxyConfig.HoldApplicationUntilProxyStarts.GetValue .Values.global.proxy.holdApplicationUntilProxyStarts)
                  (not $nativeSidecar) }}
              initContainers:
              {{ if ne (annotation .ObjectMeta `sidecar.istio.io/interceptionMode` .ProxyConfig.InterceptionMode) `NONE` }}
              {{ if .Values.istio_cni.enabled -}}
              - name: istio-validation
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 10 05:10:03 UTC 2024
    - 102.6K bytes
    - Viewed (0)
  9. pkg/kubelet/kubelet_pods_test.go

    		assert.Equal(t, test.status, status, "[test %s]", test.test)
    	}
    }
    
    func TestPodPhaseWithRestartAlwaysInitContainers(t *testing.T) {
    	desiredState := v1.PodSpec{
    		NodeName: "machine",
    		InitContainers: []v1.Container{
    			{Name: "containerX"},
    		},
    		Containers: []v1.Container{
    			{Name: "containerA"},
    			{Name: "containerB"},
    		},
    		RestartPolicy: v1.RestartPolicyAlways,
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  10. pkg/apis/core/zz_generated.deepcopy.go

    		in, out := &in.Volumes, &out.Volumes
    		*out = make([]Volume, len(*in))
    		for i := range *in {
    			(*in)[i].DeepCopyInto(&(*out)[i])
    		}
    	}
    	if in.InitContainers != nil {
    		in, out := &in.InitContainers, &out.InitContainers
    		*out = make([]Container, len(*in))
    		for i := range *in {
    			(*in)[i].DeepCopyInto(&(*out)[i])
    		}
    	}
    	if in.Containers != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 181.5K bytes
    - Viewed (0)
Back to top