...

Package jsonmergepatch

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

Overview ▾

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.