render

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: MIT Imports: 10 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 render produces an entry's rendered/manifests.yaml: the vendored chart rendered with its discovery values, exactly as `helm template <name> <vendor dir> --namespace ... --kube-version ... --include-crds -f ...` would print it. The output is committed — PR diffs show what would change in-cluster, and image discovery runs against it — so assembly must stay byte-stable: it drives the same helm install action (client-side dry run) the helm CLI drives and reassembles manifest plus hooks the way the template command does.

The helm SDK pin is deliberate: rendering output can shift between helm versions, and the validate gate byte-compares regenerated output, so SDK upgrades are visible, reviewed events.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(ctx context.Context, in Input) ([]byte, error)

Render renders the chart client-side and returns the bytes helm template would print: the release manifest, then each hook prefixed with its source header.

Types

type Input

type Input struct {
	// ChartDir is the vendored chart directory (vendor/<chart name>).
	ChartDir string
	// ReleaseName is the helm release name; the mirror uses the chart
	// name, matching `helm template <name> <dir>`.
	ReleaseName string
	// Namespace to render into.
	Namespace string
	// KubeVersion for .Capabilities.KubeVersion, e.g. "1.34.0".
	KubeVersion string
	// APIVersions are extra .Capabilities.APIVersions entries.
	APIVersions []string
	// ValuesFiles are merged in order, later files winning.
	ValuesFiles []string
}

Input configures one render.

Jump to

Keyboard shortcuts

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