postrender

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 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.

func Digest added in v1.0.0

func Digest(algo digest.Algorithm, postrenders []v2.PostRenderer) digest.Digest

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
	// 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