helm

package
v0.1.0-rc.24 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(
	ctx context.Context,
	releaseName string,
	namespace string,
	chartPath string,
	valuesPaths []string,
) ([]byte, error)

Render delegates, in-process to the Argo CD repo server to render plain YAML manifests from a Helm chart.

Types

type Config

type Config struct {
	// ReleaseName specifies the release name that will be used when executing the
	// `helm template` command.
	ReleaseName string `json:"releaseName,omitempty"`
	// ChartPath is a path to a directory, relative to the root of the repository,
	// where a Helm chart can be located. This is used as an argument in the
	// `helm template` command. By convention, if left unspecified, the value
	// `base/` is assumed.
	ChartPath string `json:"chartPath,omitempty"`
	// Values are paths to Helm values files (e.g. values.yaml), relative to the
	// root of the repository. Each of these will be used as a value for the
	// `--values` flag in the `helm template` command. By convention, if left
	// unspecified, one path will be assumed: <branch name>/values.yaml.
	ValuesPaths []string `json:"valuesPaths,omitempty"`
	// Namespace is the Kubernetes namespace in which the Helm chart will be
	// rendered. This is used as an argument in the `helm template` command. By
	// convention, if left unspecified, the value `default` is assumed.
	Namespace string `json:"namespace,omitempty"`
}

Config encapsulates optional Helm configuration options.

func (Config) Expand

func (c Config) Expand(values []string) Config

Expand expands all file/directory paths referenced by this configuration object, replacing placeholders of the form ${n} where n is a non-negative integer, with corresponding values from the provided string array. The modified object is returned.

Jump to

Keyboard shortcuts

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