manifest

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package manifest provides Helm-compatible template rendering for manifest files. Both the bundler and validator use this package to render Go-templated manifests that use .Values, .Release, .Chart, and Helm functions (toYaml, nindent, etc.).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HelmFuncMap

func HelmFuncMap() template.FuncMap

HelmFuncMap returns Helm-compatible template functions for manifest rendering.

func Render

func Render(content []byte, input RenderInput) ([]byte, error)

Render renders manifest content as a Go template with Helm-compatible data and functions. Templates can use .Values, .Release, .Chart, and functions like toYaml, nindent, toString, and default.

Types

type RenderInput

type RenderInput struct {
	// ComponentName is the component identifier, used as the Values map key.
	ComponentName string
	// Namespace is the release namespace (.Release.Namespace).
	Namespace string
	// ChartName is the chart name (.Chart.Name).
	ChartName string
	// ChartVersion is the normalized chart version without 'v' prefix (.Chart.Version).
	ChartVersion string
	// Values is the component values map, accessible as .Values[ComponentName].
	Values map[string]any
}

RenderInput provides the data needed to render a manifest template.

Jump to

Keyboard shortcuts

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