Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 417 for InitContainers (0.42 sec)

  1. pkg/kubelet/types/types.go

    	containers := p.Spec.InitContainers
    	current := 0
    	for _, container := range containers {
    		for j := current; j < len(statuses); j++ {
    			if container.Name == statuses[j].Name {
    				statuses[current], statuses[j] = statuses[j], statuses[current]
    				current++
    				break
    			}
    		}
    	}
    }
    
    // SortStatusesOfInitContainers returns the statuses of InitContainers of pod p,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 13:13:22 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. pkg/kube/inject/testdata/inject/native-sidecar.yaml

    apiVersion: v1
    kind: Pod
    metadata:
      name: hello
    spec:
      initContainers:
        - name: other-sidecar
          restartPolicy: Always
          readinessProbe:
            httpGet:
              port: 3333
          image: "fake.docker.io/google-samples/hello-go-gke:1.0"
          ports:
            - name: http
              containerPort: 80
      containers:
        - name: hello
          image: "fake.docker.io/google-samples/hello-go-gke:1.0"
          ports:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 03:10:51 UTC 2023
    - 468 bytes
    - Viewed (0)
  6. 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)
  7. pkg/kubelet/kuberuntime/kuberuntime_manager_test.go

    		},
    	}
    	pod := &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			UID:       "12345678",
    			Name:      "foo",
    			Namespace: "new",
    		},
    		Spec: v1.PodSpec{
    			Containers:     containers,
    			InitContainers: initContainers,
    		},
    	}
    
    	backOff := flowcontrol.NewBackOff(time.Second, time.Minute)
    
    	// 1. should only create the init container.
    	podStatus, err := m.GetPodStatus(ctx, pod.UID, pod.Name, pod.Namespace)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 96K bytes
    - Viewed (0)
  8. istioctl/pkg/kubeinject/testdata/inject-config-iop.yaml

    templates:
      sidecar: |-
        spec:
          initContainers:
          - name: istio-init
            image: docker.io/istio/proxy_init:unittest-{{.Values.global.tag}}
          containers:
          - name: istio-proxy
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 15 15:02:17 UTC 2023
    - 252 bytes
    - Viewed (0)
  9. pkg/kube/inject/testdata/inject/proxy-override.yaml.injected

            sidecar.istio.io/status: '{"initContainers":["istio-init"],"containers":["istio-proxy"],"volumes":["workload-socket","credential-socket","workload-certs","istio-envoy","istio-data","istio-podinfo","istio-toke...
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Feb 27 16:55:16 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. pkg/apis/core/v1/helper/qos/qos_test.go

    			Containers: containers,
    		},
    	}
    }
    
    func newPodWithInitContainers(name string, containers []v1.Container, initContainers []v1.Container) *v1.Pod {
    	return &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: name,
    		},
    		Spec: v1.PodSpec{
    			Containers:     containers,
    			InitContainers: initContainers,
    		},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 07 14:47:37 UTC 2023
    - 6.2K bytes
    - Viewed (0)
Back to top