Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isRunningAndReady (0.1 sec)

  1. pkg/controller/statefulset/stateful_set_utils_test.go

    }
    
    func TestIsRunningAndReady(t *testing.T) {
    	set := newStatefulSet(3)
    	pod := newStatefulSetPod(set, 1)
    	if isRunningAndReady(pod) {
    		t.Error("isRunningAndReady does not respect Pod phase")
    	}
    	pod.Status.Phase = v1.PodRunning
    	if isRunningAndReady(pod) {
    		t.Error("isRunningAndReady does not respect Pod condition")
    	}
    	condition := v1.PodCondition{Type: v1.PodReady, Status: v1.ConditionTrue}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 50.9K bytes
    - Viewed (0)
Back to top