Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for CreateAdmissionObjects (0.42 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/request/admissionreview.go

    	default:
    		return nil, fmt.Errorf("unexpected response type %T", review)
    	}
    }
    
    // CreateAdmissionObjects returns the unique request uid, the AdmissionReview object to send the webhook and to decode the response into,
    // or an error if the webhook does not support receiving any of the admission review versions we know to send
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 16:56:12 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/validating/dispatcher.go

    		if !(*h.SideEffects == v1.SideEffectClassNone || *h.SideEffects == v1.SideEffectClassNoneOnDryRun) {
    			return webhookerrors.NewDryRunUnsupportedErr(h.Name)
    		}
    	}
    
    	uid, request, response, err := webhookrequest.CreateAdmissionObjects(attr, invocation)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 20:24:12 UTC 2023
    - 13K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher.go

    			return false, webhookerrors.NewDryRunUnsupportedErr(h.Name)
    		}
    	}
    
    	uid, request, response, err := webhookrequest.CreateAdmissionObjects(attr, invocation)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/request/admissionreview_test.go

    					},
    				}
    			},
    			expectResponse: &admissionv1beta1.AdmissionReview{},
    		},
    	}
    
    	for _, tc := range testcases {
    		t.Run(tc.name, func(t *testing.T) {
    			uid, request, response, err := CreateAdmissionObjects(tc.attrs, tc.invocation)
    			if err != nil {
    				if len(tc.expectErr) > 0 {
    					if !strings.Contains(err.Error(), tc.expectErr) {
    						t.Errorf("expected error '%s', got %v", tc.expectErr, err)
    					}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 16:56:12 UTC 2023
    - 20.1K bytes
    - Viewed (0)
Back to top