Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for hasOwnerRef (0.47 sec)

  1. pkg/controller/statefulset/stateful_set_utils_test.go

    			hasRef: true,
    		},
    		{
    			uid:    "012",
    			hasRef: false,
    		},
    	}
    	for _, tc := range testCases {
    		owner := v1.Pod{}
    		owner.GetObjectMeta().SetUID(tc.uid)
    		got := hasOwnerRef(&target, &owner)
    		if got != tc.hasRef {
    			t.Errorf("Expected %t for %s, got %t", tc.hasRef, tc.uid, got)
    		}
    	}
    }
    
    func TestHasUnexpectedController(t *testing.T) {
    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