patch

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: AGPL-3.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func AdaptSelector(selector *fluxapis.Selector) *kustypes.Selector

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.

Jump to

Keyboard shortcuts

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