const maxJSONPatchOperations …
func PatchResource(r rest.Patcher, scope *RequestScope, admit admission.Interface, patchTypes []string) http.HandlerFunc { … }
type mutateObjectUpdateFunc …
type patcher …
type patchMechanism …
type jsonPatcher …
func (p *jsonPatcher) applyPatchToCurrentObject(requestContext context.Context, currentObject runtime.Object) (runtime.Object, error) { … }
func (p *jsonPatcher) createNewObject(_ context.Context) (runtime.Object, error) { … }
type jsonPatchOp …
func (p *jsonPatcher) applyJSPatch(versionedJS []byte) (patchedJS []byte, strictErrors []error, retErr error) { … }
type smpPatcher …
func (p *smpPatcher) applyPatchToCurrentObject(requestContext context.Context, currentObject runtime.Object) (runtime.Object, error) { … }
func (p *smpPatcher) createNewObject(_ context.Context) (runtime.Object, error) { … }
func newApplyPatcher(p *patcher, fieldManager *managedfields.FieldManager, unmarshalFn, unmarshalStrictFn func([]byte, interface{ … }
type applyPatcher …
func (p *applyPatcher) applyPatchToCurrentObject(requestContext context.Context, obj runtime.Object) (runtime.Object, error) { … }
func (p *applyPatcher) createNewObject(requestContext context.Context) (runtime.Object, error) { … }
func strategicPatchObject(
requestContext context.Context,
defaulter runtime.ObjectDefaulter,
originalObject runtime.Object,
patchBytes []byte,
objToUpdate runtime.Object,
schemaReferenceObj runtime.Object,
validationDirective string,
) error { … }
func (p *patcher) applyPatch(ctx context.Context, _, currentObject runtime.Object) (objToUpdate runtime.Object, patchErr error) { … }
func (p *patcher) admissionAttributes(ctx context.Context, updatedObject runtime.Object, currentObject runtime.Object, operation admission.Operation, operationOptions runtime.Object) admission.Attributes { … }
func (p *patcher) applyAdmission(ctx context.Context, patchedObject runtime.Object, currentObject runtime.Object) (runtime.Object, error) { … }
func (p *patcher) patchResource(ctx context.Context, scope *RequestScope) (runtime.Object, bool, error) { … }
func applyPatchToObject(
requestContext context.Context,
defaulter runtime.ObjectDefaulter,
originalMap map[string]interface{ … }
func interpretStrategicMergePatchError(err error) error { … }
func patchToUpdateOptions(po *metav1.PatchOptions) *metav1.UpdateOptions { … }
func patchToCreateOptions(po *metav1.PatchOptions) *metav1.CreateOptions { … }