Help us shape the future of Go! Take the 2026 Go Developer Survey

render

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package render renders a chart client-side, the same way `helm template` does, without touching a cluster.

Index

Constants

View Source
const Placeholder = "deadvalues-placeholder"

Placeholder stands in for a value that exists only on the cluster.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Release     string
	Namespace   string
	KubeVersion string
	APIVersions []string
	// Placeholders are paths set from values that exist only on the cluster.
	Placeholders [][]string
}

type Renderer

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

func New

func New(c *chart.Chart, o Options) (*Renderer, error)

func (*Renderer) Defaults

func (r *Renderer) Defaults() (map[string]interface{}, error)

Defaults returns the chart's values.yaml coalesced with its subcharts.

func (*Renderer) Label

func (r *Renderer) Label() string

func (*Renderer) MissingAPIVersions

func (r *Renderer) MissingAPIVersions() []string

MissingAPIVersions lists the APIs the chart checks for that the capabilities lack and still exist; when a check takes its API from a variable, every API quoted in the templates is a candidate.

func (*Renderer) Name

func (r *Renderer) Name() string

func (*Renderer) Render

func (r *Renderer) Render(vals map[string]interface{}) (map[string]string, error)

Render returns the rendered manifests keyed by template path, skipping NOTES.txt, partials and templates that render to nothing.

func (*Renderer) UsesLookup

func (r *Renderer) UsesLookup() bool

func (*Renderer) Version

func (r *Renderer) Version() string

func (*Renderer) WithAPIVersions

func (r *Renderer) WithAPIVersions(apis []string) *Renderer

WithAPIVersions returns a renderer for the same chart whose capabilities also include apis, as if the cluster served them.

Jump to

Keyboard shortcuts

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