Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for jsonPatchAnnotationValue (0.14 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher_test.go

    		},
    	}
    
    	for _, tc := range tcs {
    		t.Run(tc.name, func(t *testing.T) {
    			jsonPatch, err := jsonpatch.DecodePatch(tc.patch)
    			assert.NoError(t, err, "unexpected error decode patch")
    			actual, err := jsonPatchAnnotationValue(tc.config, tc.webhook, jsonPatch)
    			assert.NoError(t, err, "unexpected error getting json patch annotation")
    			if actual != tc.expected {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher.go

    	if w.attr == nil || w.attr.Attributes == nil {
    		return
    	}
    	var value string
    	var err error
    	switch patchType {
    	case admissionv1.PatchTypeJSONPatch:
    		value, err = jsonPatchAnnotationValue(w.configuration, w.webhook, patch)
    		if err != nil {
    			klog.Warningf("unexpected error composing mutating webhook JSON patch annotation: %v", err)
    			return
    		}
    	default:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 19.6K bytes
    - Viewed (0)
Back to top