apimachineryk8s.io/apimachinery/pkg/util/jsonmergepatch Index | Files

package jsonmergepatch

import "k8s.io/apimachinery/pkg/util/jsonmergepatch"

Index

Functions

func CreateThreeWayJSONMergePatch

func CreateThreeWayJSONMergePatch(original, modified, current []byte, fns ...mergepatch.PreconditionFunc) ([]byte, error)

Create a 3-way merge patch based-on JSON merge patch. Calculate addition-and-change patch between current and modified. Calculate deletion patch between original and modified.

Source Files

patch.go

Version
v0.29.0-rc.1
Published
Nov 28, 2023
Platform
js/wasm
Imports
5 packages
Last checked
5 hours ago

Tools for package owners.