- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for IsPodTerminal (0.14 sec)
-
pkg/api/v1/pod/util.go
} // IsPodReady returns true if a pod is ready; false otherwise. func IsPodReady(pod *v1.Pod) bool { return IsPodReadyConditionTrue(pod.Status) } // IsPodTerminal returns true if a pod is terminal, all containers are stopped and cannot ever regress. func IsPodTerminal(pod *v1.Pod) bool { return IsPodPhaseTerminal(pod.Status.Phase) } // IsPodPhaseTerminal returns true if the pod's phase is terminal.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 24 17:18:04 UTC 2023 - 13.2K bytes - Viewed (0) -
pkg/api/v1/pod/util_test.go
expected: false, }, { expected: false, }, } for i, test := range tests { pod := newPod(now, true, 0) pod.Status.Phase = test.podPhase isTerminal := IsPodTerminal(pod) if isTerminal != test.expected { t.Errorf("[tc #%d] expected terminal pod: %t, got: %t", i, test.expected, isTerminal) } } } func TestGetContainerStatus(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 25 11:04:08 UTC 2023 - 32.1K bytes - Viewed (0) -
pkg/controller/resourceclaim/controller.go
} func podNeedsClaims(pod *v1.Pod, deleted bool) (bool, string) { if deleted { return false, "pod got removed" } if podutil.IsPodTerminal(pod) { return false, "pod has terminated" } if pod.DeletionTimestamp != nil && pod.Spec.NodeName == "" { return false, "pod got deleted before scheduling" } // Still needs claims.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 09 03:34:25 UTC 2024 - 37.1K bytes - Viewed (0) -
pkg/controller/controller_utils.go
func IsPodActive(p *v1.Pod) bool { return v1.PodSucceeded != p.Status.Phase && v1.PodFailed != p.Status.Phase && p.DeletionTimestamp == nil } func IsPodTerminating(p *v1.Pod) bool { return !podutil.IsPodTerminal(p) && p.DeletionTimestamp != nil } // FilterActiveReplicaSets returns replica sets that have (or at least ought to have) pods. func FilterActiveReplicaSets(replicaSets []*apps.ReplicaSet) []*apps.ReplicaSet {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 12 15:34:44 UTC 2024 - 47.6K bytes - Viewed (0)