Documentation ¶
Overview ¶
Package configpatcher provides methods to patch Talos config.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StrategicMerge ¶
func StrategicMerge(cfg coreconfig.Provider, patch StrategicMergePatch) (coreconfig.Provider, error)
StrategicMerge performs strategic merge config patching.
Strategic merge on two sets of documents - on the left hand side and on the right hand side. Documents with matching tuples (apiVersion, kind, name) are merged together. If the document on the right doesn't exist on the left, it is appended.
Types ¶
type Input ¶
Input to the patch application process.
func WithConfig ¶
WithConfig returns a new Input that wraps the given config.
type Patch ¶
type Patch any
Patch is either JSON patch or strategic merge patch.
func LoadPatch ¶
LoadPatch loads the strategic merge patch or JSON patch (JSON/YAML for JSON patch).
func LoadPatches ¶
LoadPatches loads the JSON patch either from value literal or from a file if the patch starts with '@'.
type StrategicMergePatch ¶
type StrategicMergePatch struct {
coreconfig.Provider
}
StrategicMergePatch is a strategic merge config patch.