Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for NewAttributesRecord (0.21 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)
  3. plugin/pkg/admission/limitranger/admission_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/admission_test.go

    	example := new
    	if example == nil {
    		example = old
    	}
    
    	accessor, err := meta.Accessor(example)
    	if err != nil {
    		panic(err)
    	}
    
    	return &FakeAttributes{
    		Attributes: admission.NewAttributesRecord(
    			new,
    			old,
    			example.GetObjectKind().GroupVersionKind(),
    			accessor.GetNamespace(),
    			accessor.GetName(),
    			schema.GroupVersionResource{},
    			"",
    			operation,
    			nil,
    			false,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 25 01:39:01 UTC 2024
    - 63.8K bytes
    - Viewed (0)
Back to top