Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 366 for InitContainers (0.21 sec)

  1. pkg/kube/inject/testdata/inject/proxy-override-args-native.yaml.injected

            prometheus.io/path: /stats/prometheus
            prometheus.io/port: "15020"
            prometheus.io/scrape: "true"
            proxy.istio.io/overrides: '{"initContainers":[{"name":"istio-proxy","command":["envoy"],"args":["-c","my-config.yaml"],"resources":{}}]}'
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Feb 27 16:55:16 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/kuberuntime_termination_order.go

    		if _, isRunning := runningContainers[c.Name]; !isRunning {
    			close(channel)
    		}
    	}
    
    	var previousSidecarName string
    	for i := range pod.Spec.InitContainers {
    		// get the init containers in reverse order
    		ic := pod.Spec.InitContainers[len(pod.Spec.InitContainers)-i-1]
    
    		to.terminated[ic.Name] = make(chan struct{})
    
    		if types.IsRestartableInitContainer(&ic) {
    			// sidecars need to wait for all main containers to exit
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 18 00:07:21 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top