patch

package
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ThreeWayMergePatch

func ThreeWayMergePatch(currentObj, modifiedObj runtime.Object, a *PatchAction) (client.Patch, error)

ThreeWayMergePatch creates a patch by computing a three way diff based on its current state, modified state, and last-applied-state recorded in the annotation.

Types

type PatchAction

type PatchAction struct {
	UpdateAnno            bool
	AnnoLastAppliedConfig string
	AnnoLastAppliedTime   string
}

PatchAction is the action for patch

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL