Documentation
¶
Overview ¶
Package patch applies Flux patches to an already constructed document set.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdaptSelector ¶
AdaptSelector converts a Flux selector into a kustomize selector. Mirrors flux's generator adaptSelector (nil in, nil out).
func ApplyPatches ¶
func ApplyPatches(request *PatchRequest) ([]byte, error)
ApplyPatches applies the upstream transformer to rendered documents.
func PrepareGeneration ¶
func PrepareGeneration( object manifest.BaseManifest, work manifest.WorkScope, ) (store.ChildDocuments, error)
PrepareGeneration retains generated children and their visible occurrences after patching.
Types ¶
type PatchRequest ¶
type PatchRequest struct {
Documents []byte
Patches []fluxapis.Patch
Images []fluxapis.Image
Work *manifest.WorkRecord
Partial bool
}
PatchRequest carries one ordered patch operation on a supplied set of documents.