render

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Release     string
	Namespace   string
	KubeVersion string
	APIVersions []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 API versions the chart checks with .Capabilities.APIVersions.Has that the configured capabilities lack, leaving out versions Kubernetes removed before the rendered version.

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