Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 155 for EphemeralContainers (0.38 sec)

  1. 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)
  2. 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)
  3. pkg/registry/core/rest/storage_core.go

    		storage[resource+"/binding"] = podStorage.Binding
    		if podStorage.Eviction != nil {
    			storage[resource+"/eviction"] = podStorage.Eviction
    		}
    		storage[resource+"/ephemeralcontainers"] = podStorage.EphemeralContainers
    	}
    	if resource := "bindings"; apiResourceConfigSource.ResourceEnabled(corev1.SchemeGroupVersion.WithResource(resource)) {
    		storage[resource] = podStorage.LegacyBinding
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:05 UTC 2023
    - 19.1K bytes
    - Viewed (0)
  4. pkg/registry/core/pod/strategy.go

    func dropNonEphemeralContainerUpdates(newPod, oldPod *api.Pod) *api.Pod {
    	pod := oldPod.DeepCopy()
    	pod.Name = newPod.Name
    	pod.Namespace = newPod.Namespace
    	pod.ResourceVersion = newPod.ResourceVersion
    	pod.UID = newPod.UID
    	pod.Spec.EphemeralContainers = newPod.Spec.EphemeralContainers
    	return pod
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 17:51:48 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  5. pkg/apis/core/validation/validation.go

    	allErrs := validatePodMetadataAndSpec(pod, opts)
    
    	fldPath := field.NewPath("spec")
    	// EphemeralContainers can only be set on update using the ephemeralcontainers subresource
    	if len(pod.Spec.EphemeralContainers) > 0 {
    		allErrs = append(allErrs, field.Forbidden(fldPath.Child("ephemeralContainers"), "cannot be set on create"))
    	}
    	// A Pod cannot be assigned a Node if there are remaining scheduling gates.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
  6. pkg/kubelet/kuberuntime/kuberuntime_manager.go

    		changes.ContainersToStart = containersToStart
    		return changes
    	}
    
    	// Ephemeral containers may be started even if initialization is not yet complete.
    	for i := range pod.Spec.EphemeralContainers {
    		c := (*v1.Container)(&pod.Spec.EphemeralContainers[i].EphemeralContainerCommon)
    
    		// Ephemeral Containers are never restarted
    		if podStatus.FindContainerStatusByName(c.Name) == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  7. pkg/api/testing/defaulting_test.go

    		{Group: "", Version: "v1", Kind: "EndpointsList"}:                                                          {},
    		{Group: "", Version: "v1", Kind: "EphemeralContainers"}:                                                    {},
    		{Group: "", Version: "v1", Kind: "Namespace"}:                                                              {},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  8. pkg/kubelet/kuberuntime/kuberuntime_manager_test.go

    				EphemeralContainersToStart: []int{0},
    			},
    		},
    		"Start second ephemeral container": {
    			mutatePodFn: func(pod *v1.Pod) {
    				pod.Spec.EphemeralContainers = append(pod.Spec.EphemeralContainers, v1.EphemeralContainer{
    					EphemeralContainerCommon: v1.EphemeralContainerCommon{
    						Name:  "debug2",
    						Image: "busybox",
    					},
    				})
    			},
    			actions: podActions{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 96K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/testdata/v1.29.0/apps.v1.DaemonSet.json

                  }
                },
                "stdin": true,
                "stdinOnce": true,
                "tty": true
              }
            ],
            "ephemeralContainers": [
              {
                "name": "nameValue",
                "image": "imageValue",
                "command": [
                  "commandValue"
                ],
                "args": [
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 04:12:07 UTC 2023
    - 53.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/testdata/v1.29.0/apps.v1.Deployment.json

                  }
                },
                "stdin": true,
                "stdinOnce": true,
                "tty": true
              }
            ],
            "ephemeralContainers": [
              {
                "name": "nameValue",
                "image": "imageValue",
                "command": [
                  "commandValue"
                ],
                "args": [
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 04:12:07 UTC 2023
    - 53.7K bytes
    - Viewed (0)
Back to top