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.33.0 (latest)
Published
Apr 11, 2025
Platform
linux/amd64
Imports
5 packages
Last checked
56 minutes ago

Tools for package owners.