Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestIsRunningAndReady (0.14 sec)

  1. pkg/controller/statefulset/stateful_set_utils_test.go

    	if !hasStaleOwnerRef(&target, &ownerB, podKind) {
    		t.Error("ownerB should be stale")
    	}
    	if hasStaleOwnerRef(&target, &ownerC, podKind) {
    		t.Error("ownerC should not be stale")
    	}
    }
    
    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
    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