postrender

package
v0.37.4 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildPostRenderers

func BuildPostRenderers(rel *v2.HelmRelease) helmpostrender.PostRenderer

BuildPostRenderers creates the post-renderer instances from a HelmRelease and combines them into a single Combined post renderer.

Types

type Combined

type Combined struct {
	// contains filtered or unexported fields
}

Combined is a collection of Helm PostRenders which are invoked in the order of insertion.

func NewCombined

func NewCombined(renderer ...helmpostrender.PostRenderer) *Combined

func (*Combined) Run

func (c *Combined) Run(renderedManifests *bytes.Buffer) (modifiedManifests *bytes.Buffer, err error)

type Kustomize

type Kustomize struct {
	// Patches is a list of patches to apply to the rendered manifests.
	Patches []kustomize.Patch
	// PatchesStrategicMerge is a list of strategic merge patches to apply to
	// the rendered manifests.
	PatchesStrategicMerge []apiextensionsv1.JSON
	// PatchesJSON6902 is a list of JSON patches to apply to the rendered
	// manifests.
	PatchesJSON6902 []kustomize.JSON6902Patch
	// Images is a list of images to replace in the rendered manifests.
	Images []kustomize.Image
}

Kustomize is a Helm post-render plugin that runs Kustomize.

func (*Kustomize) Run

func (k *Kustomize) Run(renderedManifests *bytes.Buffer) (modifiedManifests *bytes.Buffer, err error)

type OriginLabels

type OriginLabels struct {
	// contains filtered or unexported fields
}

func NewOriginLabels

func NewOriginLabels(group, namespace, name string) *OriginLabels

func (*OriginLabels) Run

func (k *OriginLabels) Run(renderedManifests *bytes.Buffer) (modifiedManifests *bytes.Buffer, err error)

Jump to

Keyboard shortcuts

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