Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for PodRunning (0.26 sec)

  1. pkg/controller/podgc/gc_controller_test.go

    				{name: "d3", phase: v1.PodRunning, nodeName: "worker-2"},
    				{name: "e3", phase: v1.PodUnknown, nodeName: "worker-2"},
    
    				// pods a4, b4, c4, d4 and e4 are on node worker-3
    				{name: "a4", nodeName: "worker-3"},
    				{name: "b4", deletionTimeStamp: &metav1.Time{}, nodeName: "worker-3"},
    				{name: "c4", phase: v1.PodPending, nodeName: "worker-3"},
    				{name: "d4", phase: v1.PodRunning, nodeName: "worker-3"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 08:16:48 UTC 2024
    - 29K bytes
    - Viewed (0)
  2. pkg/registry/core/pod/storage/eviction_test.go

    			expectError: "Cannot evict pod as it would violate the pod's disruption budget.: TooManyRequests: The disruption budget foo needs 0 healthy pods and has 0 currently",
    			podPhase:    api.PodRunning,
    			podName:     "t1",
    			policies:    []*policyv1.UnhealthyPodEvictionPolicyType{nil, unhealthyPolicyPtr(policyv1.IfHealthyBudget)}, // AlwaysAllow would terminate the pod since Running pods are not guarded by this policy
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 09:26:37 UTC 2024
    - 40K bytes
    - Viewed (0)
  3. pilot/pkg/serviceregistry/kube/controller/ambient/workloads_test.go

    			pod: &v1.Pod{
    				TypeMeta: metav1.TypeMeta{},
    				ObjectMeta: metav1.ObjectMeta{
    					Name:      "name",
    					Namespace: "ns",
    				},
    				Spec: v1.PodSpec{},
    				Status: v1.PodStatus{
    					Phase: v1.PodRunning,
    					PodIP: "1.2.3.4",
    				},
    			},
    			result: &workloadapi.Workload{
    				Uid:               "cluster0//Pod/ns/name",
    				Name:              "name",
    				Namespace:         "ns",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 16:51:29 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  4. pkg/kube/util.go

    	case corev1.PodSucceeded:
    		return nil
    	case corev1.PodRunning:
    		return CheckPodReady(pod)
    	default:
    		return fmt.Errorf("%s", pod.Status.Phase)
    	}
    }
    
    // CheckPodReady returns nil if the given pod and all of its containers are ready.
    func CheckPodReady(pod *corev1.Pod) error {
    	switch pod.Status.Phase {
    	case corev1.PodRunning:
    		// Wait until all containers are ready.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/kube/controller/pod.go

    func isPodPhaseTerminal(phase v1.PodPhase) bool {
    	return phase == v1.PodFailed || phase == v1.PodSucceeded
    }
    
    func IsPodRunning(pod *v1.Pod) bool {
    	return pod.Status.Phase == v1.PodRunning
    }
    
    // IsPodReady is copied from kubernetes/pkg/api/v1/pod/utils.go
    func IsPodReady(pod *v1.Pod) bool {
    	return IsPodReadyConditionTrue(pod.Status)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/util/apiclient/wait.go

    				lastKnownPodNumber = len(pods.Items)
    			}
    
    			if len(pods.Items) == 0 {
    				return false, nil
    			}
    
    			for _, pod := range pods.Items {
    				if pod.Status.Phase != v1.PodRunning {
    					return false, nil
    				}
    			}
    
    			return true, nil
    		})
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. pkg/controller/statefulset/stateful_set_utils.go

    		pod.Labels[apps.PodIndexLabel] = strconv.Itoa(ordinal)
    	}
    }
    
    // isRunningAndReady returns true if pod is in the PodRunning Phase, if it has a condition of PodReady.
    func isRunningAndReady(pod *v1.Pod) bool {
    	return pod.Status.Phase == v1.PodRunning && podutil.IsPodReady(pod)
    }
    
    func isRunningAndAvailable(pod *v1.Pod, minReadySeconds int32) bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 26.7K bytes
    - Viewed (0)
Back to top