Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestIgnoresNilObject (0.64 sec)

  1. plugin/pkg/admission/serviceaccount/admission_test.go

    	err := handler.Admit(context.TODO(), attrs, nil)
    	if err != nil {
    		t.Errorf("Expected non-pod resource allowed, got err: %v", err)
    	}
    }
    
    func TestIgnoresNilObject(t *testing.T) {
    	attrs := admission.NewAttributesRecord(nil, nil, api.Kind("Pod").WithVersion("version"), "myns", "myname", api.Resource("pods").WithVersion("version"), "", admission.Create, &metav1.CreateOptions{}, false, nil)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 17:49:30 UTC 2024
    - 36.9K bytes
    - Viewed (0)
Back to top