Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 108 for podutil (0.14 sec)

  1. pkg/kubelet/container/helpers.go

    // GetContainerSpec gets the container spec by containerName.
    func GetContainerSpec(pod *v1.Pod, containerName string) *v1.Container {
    	var containerSpec *v1.Container
    	podutil.VisitContainers(&pod.Spec, podutil.AllFeatureEnabledContainers(), func(c *v1.Container, containerType podutil.ContainerType) bool {
    		if containerName == c.Name {
    			containerSpec = c
    			return false
    		}
    		return true
    	})
    	return containerSpec
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  2. pkg/kubelet/status/status_manager.go

    	// See https://issues.k8s.io/108594 for more details.
    	if podutil.IsPodPhaseTerminal(newPodStatus.Phase) {
    		if podutil.IsPodReadyConditionTrue(newPodStatus) || podutil.IsContainersReadyConditionTrue(newPodStatus) {
    			containersReadyCondition := generateContainersReadyConditionForTerminalPhase(newPodStatus.Phase)
    			podutil.UpdatePodCondition(&newPodStatus, &containersReadyCondition)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  3. pkg/volume/util/util.go

    	mounts = sets.New[string]()
    	devices = sets.New[string]()
    	seLinuxContainerContexts = make(map[string][]*v1.SELinuxOptions)
    
    	podutil.VisitContainers(&pod.Spec, podutil.AllFeatureEnabledContainers(), func(container *v1.Container, containerType podutil.ContainerType) bool {
    		var seLinuxOptions *v1.SELinuxOptions
    		if utilfeature.DefaultFeatureGate.Enabled(features.SELinuxMountReadWriteOncePod) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  4. pkg/controller/daemon/update.go

    			case newPod != nil:
    				// this pod is up to date, check its availability
    				if !podutil.IsPodAvailable(newPod, ds.Spec.MinReadySeconds, metav1.Time{Time: now}) {
    					// an unavailable new pod is counted against maxUnavailable
    					numUnavailable++
    				}
    			default:
    				// this pod is old, it is an update candidate
    				switch {
    				case !podutil.IsPodAvailable(oldPod, ds.Spec.MinReadySeconds, metav1.Time{Time: now}):
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 16:53:53 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  5. plugin/pkg/admission/serviceaccount/admission.go

    			return admission.NewForbidden(a, fmt.Errorf("a mirror pod may not reference service accounts"))
    		}
    		hasSecrets := false
    		podutil.VisitPodSecretNames(pod, func(name string) bool {
    			hasSecrets = true
    			return false
    		}, podutil.AllContainers)
    		if hasSecrets {
    			return admission.NewForbidden(a, fmt.Errorf("a mirror pod may not reference secrets"))
    		}
    		for _, v := range pod.Spec.Volumes {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 17:49:30 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  6. pkg/controller/statefulset/stateful_set.go

    		// the Pod status which in turn will trigger a requeue of the owning replica set thus
    		// having its status updated with the newly available replica.
    		if !podutil.IsPodReady(oldPod) && podutil.IsPodReady(curPod) && set.Spec.MinReadySeconds > 0 {
    			logger.V(2).Info("StatefulSet will be enqueued after minReadySeconds for availability check", "statefulSet", klog.KObj(set), "minReadySeconds", set.Spec.MinReadySeconds)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  7. pkg/controller/replicaset/replica_set.go

    		// a Pod transitioned to Ready.
    		// Note that this still suffers from #29229, we are just moving the problem one level
    		// "closer" to kubelet (from the deployment to the replica set controller).
    		if !podutil.IsPodReady(oldPod) && podutil.IsPodReady(curPod) && rs.Spec.MinReadySeconds > 0 {
    			logger.V(2).Info("pod will be enqueued after a while for availability check", "duration", rs.Spec.MinReadySeconds, "kind", rsc.Kind, "pod", klog.KObj(oldPod))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/types.go

    		ContainerFn: func(requests v1.ResourceList, containerType podutil.ContainerType) {
    			non0CPUReq, non0MemReq := schedutil.GetNonzeroRequests(&requests)
    			switch containerType {
    			case podutil.Containers:
    				non0CPU += non0CPUReq
    				non0Mem += non0MemReq
    			case podutil.InitContainers:
    				non0InitCPU = max(non0InitCPU, non0CPUReq)
    				non0InitMem = max(non0InitMem, non0MemReq)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 19:28:17 UTC 2024
    - 36.7K bytes
    - Viewed (0)
  9. pkg/controller/statefulset/stateful_set_utils.go

    func isRunningAndReady(pod *v1.Pod) bool {
    	return pod.Status.Phase == v1.PodRunning && podutil.IsPodReady(pod)
    }
    
    func isRunningAndAvailable(pod *v1.Pod, minReadySeconds int32) bool {
    	return podutil.IsPodAvailable(pod, minReadySeconds, metav1.Now())
    }
    
    // isCreated returns true if pod has been created and is maintained by the API server
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  10. pkg/controller/endpoint/endpoints_controller.go

    	"k8s.io/client-go/tools/record"
    	"k8s.io/client-go/util/workqueue"
    	endpointsliceutil "k8s.io/endpointslice/util"
    	"k8s.io/klog/v2"
    	"k8s.io/kubernetes/pkg/api/v1/endpoints"
    	podutil "k8s.io/kubernetes/pkg/api/v1/pod"
    	api "k8s.io/kubernetes/pkg/apis/core"
    	helper "k8s.io/kubernetes/pkg/apis/core/v1/helper"
    	"k8s.io/kubernetes/pkg/controller"
    	utillabels "k8s.io/kubernetes/pkg/util/labels"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 26.3K bytes
    - Viewed (0)
Back to top