Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 153 for EphemeralContainers (0.24 sec)

  1. pkg/apis/core/v1/defaults_test.go

    		".Spec.EphemeralContainers[0].EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC.Service":   `""`,
    		".Spec.EphemeralContainers[0].EphemeralContainerCommon.ReadinessProbe.PeriodSeconds":               "10",
    		".Spec.EphemeralContainers[0].EphemeralContainerCommon.ReadinessProbe.SuccessThreshold":            "1",
    		".Spec.EphemeralContainers[0].EphemeralContainerCommon.ReadinessProbe.TimeoutSeconds":              "1",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  2. pkg/api/pod/util.go

    		}
    	}
    
    	for i := range podSpec.EphemeralContainers {
    		if podSpec.EphemeralContainers[i].Lifecycle == nil {
    			continue
    		}
    		adjustLifecycle(podSpec.EphemeralContainers[i].Lifecycle)
    		if podSpec.EphemeralContainers[i].Lifecycle.PreStop == nil && podSpec.EphemeralContainers[i].Lifecycle.PostStart == nil {
    			podSpec.EphemeralContainers[i].Lifecycle = nil
    		}
    	}
    }
    
    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/pod/util_test.go

    					{Name: "i1"},
    					{Name: "i2"},
    				},
    				EphemeralContainers: []v1.EphemeralContainer{
    					{EphemeralContainerCommon: v1.EphemeralContainerCommon{Name: "e1"}},
    					{EphemeralContainerCommon: v1.EphemeralContainerCommon{Name: "e2"}},
    				},
    			},
    			wantContainers: []string{"e1", "e2"},
    			mask:           EphemeralContainers,
    		},
    		{
    			desc: "all container types",
    			spec: &v1.PodSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 11:04:08 UTC 2023
    - 32.1K bytes
    - Viewed (0)
  4. pkg/api/pod/util_test.go

    		}
    		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. plugin/pkg/admission/serviceaccount/admission_test.go

    		},
    	}
    	// validate enforces restrictions on secret mounts when operation==create and subresource=='' or operation==update and subresource==ephemeralcontainers"
    	attrs = admission.NewAttributesRecord(pod2, nil, api.Kind("Pod").WithVersion("version"), ns, "myname", api.Resource("pods").WithVersion("version"), "ephemeralcontainers", admission.Update, &metav1.UpdateOptions{}, false, nil)
    	if err := admit.Validate(context.TODO(), attrs, nil); err != nil {
    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/registry/core/pod/strategy_test.go

    					Containers: []api.Container{
    						{Name: "container1"},
    						{Name: "container2"},
    					},
    					InitContainers: []api.Container{
    						{Name: "initcontainer1"},
    					},
    					EphemeralContainers: []api.EphemeralContainer{
    						{EphemeralContainerCommon: api.EphemeralContainerCommon{Name: "debugger"}},
    					},
    				},
    				Status: api.PodStatus{},
    			},
    			opts:              &api.PodLogOptions{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 76.2K bytes
    - Viewed (0)
  7. pkg/apis/core/validation/validation_test.go

    		"EphemeralContainers[*].EphemeralContainerCommon.SecurityContext.ReadOnlyRootFilesystem",
    		"EphemeralContainers[*].EphemeralContainerCommon.SecurityContext.RunAsGroup",
    		"EphemeralContainers[*].EphemeralContainerCommon.SecurityContext.RunAsUser",
    		"EphemeralContainers[*].EphemeralContainerCommon.SecurityContext.SELinuxOptions",
    		"EphemeralContainers[*].EphemeralContainerCommon.SecurityContext.SeccompProfile",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
  8. plugin/pkg/admission/serviceaccount/admission.go

    	if shouldIgnore(a) {
    		return nil
    	}
    
    	pod := a.GetObject().(*api.Pod)
    
    	if a.GetOperation() == admission.Update && a.GetSubresource() == "ephemeralcontainers" {
    		return s.limitEphemeralContainerSecretReferences(pod, a)
    	}
    
    	if a.GetOperation() != admission.Create {
    		// we only validate pod specs during create requests
    		return nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 17:49:30 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  9. pkg/kubelet/pod/pod_manager.go

    // oldPod or newPod may be nil to signify creation or deletion.
    func updateMetrics(oldPod, newPod *v1.Pod) {
    	var numEC int
    	if oldPod != nil {
    		numEC -= len(oldPod.Spec.EphemeralContainers)
    	}
    	if newPod != nil {
    		numEC += len(newPod.Spec.EphemeralContainers)
    	}
    	if numEC != 0 {
    		metrics.ManagedEphemeralContainers.Add(float64(numEC))
    	}
    }
    
    // updatePodsInternal replaces the given pods in the current state of the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:00 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  10. pkg/volume/util/util_test.go

    								RunAsUser: ptr.To[int64](1000),
    							},
    						},
    						{
    							SecurityContext: &v1.SecurityContext{
    								RunAsUser: ptr.To[int64](1000),
    							},
    						},
    					},
    					EphemeralContainers: []v1.EphemeralContainer{
    						{
    							EphemeralContainerCommon: v1.EphemeralContainerCommon{
    								SecurityContext: &v1.SecurityContext{
    									RunAsUser: ptr.To[int64](1001),
    								},
    							},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 28.7K bytes
    - Viewed (0)
Back to top