Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewAttributesRecord (1.66 sec)

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

    			podsGetter: noExistingPods,
    			attributes: admission.NewAttributesRecord(coremymirrorpod, nil, podKind, coremymirrorpod.Namespace, coremymirrorpod.Name, podResource, "", admission.Create, &metav1.CreateOptions{}, false, mynode),
    			err:        "",
    		},
    		{
    			name:       "forbid update of mirror pod bound to self",
    			podsGetter: existingPods,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 73.2K bytes
    - Viewed (0)
  2. plugin/pkg/admission/resourcequota/admission_test.go

    	err = handler.Validate(context.TODO(), admission.NewAttributesRecord(newPod, nil, api.Kind("Pod").WithVersion("version"), newPod.Namespace, newPod.Name, corev1.Resource("pods").WithVersion("version"), "", admission.Create, &metav1.CreateOptions{}, false, nil), nil)
    	if err == nil {
    		t.Errorf("Expected an error because the pod exceeded allowed quota")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 84.1K bytes
    - Viewed (0)
Back to top