render

package
v0.26.2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HydrateValues added in v0.25.0

func HydrateValues(release *v1alpha1.Release, environment *v1alpha1.Environment, mappings map[string]any) (map[string]any, error)

func Render

func Render(ctx context.Context, params RenderOpts) error

Types

type ManifestColorWriter

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

ManifestColorWriter colorizes helm manifest by searching for document breaks and source comments. The implementation is naive and depends on the write buffer not breaking lines. In theory this means colorization can fail, however in practice it works well enough.

func (ManifestColorWriter) Write

func (w ManifestColorWriter) Write(data []byte) (int, error)

type RenderOpts

type RenderOpts struct {
	Env          string
	Release      string
	DefaultChart string
	CacheDir     string
	ValueMapping map[string]any
	Catalog      *catalog.Catalog
	IO           internal.IO
	Helm         helm.PullRenderer
	Color        bool
}

Jump to

Keyboard shortcuts

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