helm

package module
v2.0.0-...-993bbbb Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package helm provides common functionalities for testing helm charts, such as calling out to the helm client.

Index

Constants

This section is empty.

Variables

View Source
var ErrDestinationNotPointer = errors.New("destinationObj must be a pointer")

ErrDestinationNotPointer is returned when the destination object passed to an unmarshal function is not a pointer.

View Source
var ErrNoMatchingData = errors.New("no matching raw data were found for the concrete type")

ErrNoMatchingData is returned when no matching raw data are found for the concrete type during YAML unmarshalling.

View Source
var ErrYAMLRootIsArray = errors.New("YAML root is an array, but destinationObj is a single object")

ErrYAMLRootIsArray is returned when the YAML root is an array but the destination object is a single object.

Functions

func AddRepo deprecated

func AddRepo(t testing.TestingT, options *Options, repoName string, repoURL string)

AddRepo will setup the provided helm repository to the local helm client configuration. This will fail the test if there is an error.

Deprecated: Use AddRepoContext instead.

func AddRepoContext

func AddRepoContext(t testing.TestingT, ctx context.Context, options *Options, repoName string, repoURL string)

AddRepoContext will setup the provided helm repository to the local helm client configuration. This will fail the test if there is an error. The ctx parameter supports cancellation and timeouts.

func AddRepoContextE

func AddRepoContextE(t testing.TestingT, ctx context.Context, options *Options, repoName string, repoURL string) error

AddRepoContextE will setup the provided helm repository to the local helm client configuration. The ctx parameter supports cancellation and timeouts.

func AddRepoE deprecated

func AddRepoE(t testing.TestingT, options *Options, repoName string, repoURL string) error

AddRepoE will setup the provided helm repository to the local helm client configuration.

Deprecated: Use AddRepoContextE instead.

func Delete deprecated

func Delete(t testing.TestingT, options *Options, releaseName string, purge bool)

Delete will delete the provided release from Tiller. If you set purge to true, Tiller will delete the release object as well so that the release name can be reused. This will fail the test if there is an error.

Deprecated: Use DeleteContext instead.

func DeleteContext

func DeleteContext(t testing.TestingT, ctx context.Context, options *Options, releaseName string, purge bool)

DeleteContext will delete the provided release. If you set purge to true, the release object will be deleted as well so that the release name can be reused. This will fail the test if there is an error. The ctx parameter supports cancellation and timeouts.

func DeleteContextE

func DeleteContextE(t testing.TestingT, ctx context.Context, options *Options, releaseName string, purge bool) error

DeleteContextE will delete the provided release. If you set purge to true, the release object will be deleted as well so that the release name can be reused. The ctx parameter supports cancellation and timeouts.

func DeleteE deprecated

func DeleteE(t testing.TestingT, options *Options, releaseName string, purge bool) error

DeleteE will delete the provided release from Tiller. If you set purge to true, Tiller will delete the release object as well so that the release name can be reused.

Deprecated: Use DeleteContextE instead.

func DiffAgainstSnapshot deprecated

func DiffAgainstSnapshot(t testing.TestingT, options *Options, yamlData string, releaseName string) int

DiffAgainstSnapshot compares the current manifests of a chart (e.g bitnami/nginx) with the previous manifests stored in the snapshot. see https://github.com/gruntwork-io/terratest/issues/1377 It returns the number of differences between the two manifests or -1 in case of error. It will fail the test if there is an error while reading or writing the two manifests in the file system.

Deprecated: Use DiffAgainstSnapshotContext instead.

func DiffAgainstSnapshotContext

func DiffAgainstSnapshotContext(t testing.TestingT, ctx context.Context, options *Options, yamlData string, releaseName string) int

DiffAgainstSnapshotContext compares the current manifests of a chart (e.g bitnami/nginx) with the previous manifests stored in the snapshot. see https://github.com/gruntwork-io/terratest/issues/1377 It returns the number of differences between the two manifests or -1 in case of error. The ctx parameter is accepted for API consistency with other Context-aware helpers. It will fail the test if there is an error while reading or writing the two manifests in the file system.

func DiffAgainstSnapshotContextE

func DiffAgainstSnapshotContextE(t testing.TestingT, ctx context.Context, options *Options, yamlData string, releaseName string) (int, error)

DiffAgainstSnapshotContextE compares the current manifests of a chart (e.g bitnami/nginx) with the previous manifests stored in the snapshot. see https://github.com/gruntwork-io/terratest/issues/1377 The ctx parameter is accepted for API consistency with other Context-aware helpers. It returns the number of differences between the manifests or -1 in case of error.

func DiffAgainstSnapshotE deprecated

func DiffAgainstSnapshotE(t testing.TestingT, options *Options, yamlData string, releaseName string) (int, error)

DiffAgainstSnapshotE compares the current manifests of a chart (e.g bitnami/nginx) with the previous manifests stored in the snapshot. see https://github.com/gruntwork-io/terratest/issues/1377 It returns the number of differences between the manifests or -1 in case of error.

Deprecated: Use DiffAgainstSnapshotContextE instead.

func FormatSetFilesAsArgs deprecated

func FormatSetFilesAsArgs(t testing.TestingT, setFiles map[string]string) []string

FormatSetFilesAsArgs formats the given list of keys and file paths as command line args for helm to set from file (e.g of the format --set-file key=path). This will fail the test if one of the paths do not exist or the absolute path can not be determined.

Deprecated: Use FormatSetFilesAsArgsContext instead.

func FormatSetFilesAsArgsContext

func FormatSetFilesAsArgsContext(t testing.TestingT, ctx context.Context, setFiles map[string]string) []string

FormatSetFilesAsArgsContext formats the given list of keys and file paths as command line args for helm to set from file (e.g of the format --set-file key=path). The ctx parameter is accepted for API consistency with other Context-aware helpers. This will fail the test if one of the paths do not exist or the absolute path can not be determined.

func FormatSetFilesAsArgsContextE

func FormatSetFilesAsArgsContextE(ctx context.Context, setFiles map[string]string) ([]string, error)

FormatSetFilesAsArgsContextE formats the given list of keys and file paths as command line args for helm to set from file (e.g of the format --set-file key=path). The ctx parameter is accepted for API consistency with other Context-aware helpers.

func FormatSetFilesAsArgsE deprecated

func FormatSetFilesAsArgsE(setFiles map[string]string) ([]string, error)

FormatSetFilesAsArgsE formats the given list of keys and file paths as command line args for helm to set from file (e.g of the format --set-file key=path).

Deprecated: Use FormatSetFilesAsArgsContextE instead.

func FormatSetValuesAsArgs

func FormatSetValuesAsArgs(setValues map[string]string, flag string) []string

FormatSetValuesAsArgs formats the given values as command line args for helm using the given flag (e.g flags of the format "--set"/"--set-string"/"--set-json" resulting in args like --set/set-string/set-json key=value...).

func FormatValuesFilesAsArgs deprecated

func FormatValuesFilesAsArgs(t testing.TestingT, valuesFiles []string) []string

FormatValuesFilesAsArgs formats the given list of values file paths as command line args for helm (e.g of the format -f path). This will fail the test if one of the paths do not exist or the absolute path can not be determined.

Deprecated: Use FormatValuesFilesAsArgsContext instead.

func FormatValuesFilesAsArgsContext

func FormatValuesFilesAsArgsContext(t testing.TestingT, ctx context.Context, valuesFiles []string) []string

FormatValuesFilesAsArgsContext formats the given list of values file paths as command line args for helm (e.g of the format -f path). The ctx parameter is accepted for API consistency with other Context-aware helpers. This will fail the test if one of the paths do not exist or the absolute path can not be determined.

func FormatValuesFilesAsArgsContextE

func FormatValuesFilesAsArgsContextE(ctx context.Context, valuesFiles []string) ([]string, error)

FormatValuesFilesAsArgsContextE formats the given list of values file paths as command line args for helm (e.g of the format -f path). The ctx parameter is accepted for API consistency with other Context-aware helpers. This will error if the file does not exist.

func FormatValuesFilesAsArgsE deprecated

func FormatValuesFilesAsArgsE(valuesFiles []string) ([]string, error)

FormatValuesFilesAsArgsE formats the given list of values file paths as command line args for helm (e.g of the format -f path). This will error if the file does not exist.

Deprecated: Use FormatValuesFilesAsArgsContextE instead.

func Install deprecated

func Install(t testing.TestingT, options *Options, chart string, releaseName string)

Install will install the selected helm chart with the provided options under the given release name. This will fail the test if there is an error.

Deprecated: Use InstallContext instead.

func InstallContext

func InstallContext(t testing.TestingT, ctx context.Context, options *Options, chart string, releaseName string)

InstallContext will install the selected helm chart with the provided options under the given release name. This will fail the test if there is an error. The ctx parameter supports cancellation and timeouts.

func InstallContextE

func InstallContextE(t testing.TestingT, ctx context.Context, options *Options, chart string, releaseName string) error

InstallContextE will install the selected helm chart with the provided options under the given release name. If releaseName is empty, the name is omitted so callers can rely on helm's --generate-name (passed through ExtraArgs). The ctx parameter supports cancellation and timeouts.

func InstallE deprecated

func InstallE(t testing.TestingT, options *Options, chart string, releaseName string) error

InstallE will install the selected helm chart with the provided options under the given release name.

Deprecated: Use InstallContextE instead.

func PrepareHelmCommand

func PrepareHelmCommand(options *Options, cmd string, additionalArgs ...string) *shell.Command

PrepareHelmCommand builds a shell.Command for running helm with the given options, subcommand, and additional arguments.

func RemoveRepo deprecated

func RemoveRepo(t testing.TestingT, options *Options, repoName string)

RemoveRepo will remove the provided helm repository from the local helm client configuration. This will fail the test if there is an error.

Deprecated: Use RemoveRepoContext instead.

func RemoveRepoContext

func RemoveRepoContext(t testing.TestingT, ctx context.Context, options *Options, repoName string)

RemoveRepoContext will remove the provided helm repository from the local helm client configuration. This will fail the test if there is an error. The ctx parameter supports cancellation and timeouts.

func RemoveRepoContextE

func RemoveRepoContextE(t testing.TestingT, ctx context.Context, options *Options, repoName string) error

RemoveRepoContextE will remove the provided helm repository from the local helm client configuration. The ctx parameter supports cancellation and timeouts.

func RemoveRepoE deprecated

func RemoveRepoE(t testing.TestingT, options *Options, repoName string) error

RemoveRepoE will remove the provided helm repository from the local helm client configuration.

Deprecated: Use RemoveRepoContextE instead.

func RenderRemoteTemplate deprecated

func RenderRemoteTemplate(t testing.TestingT, options *Options, chartURL string, releaseName string, templateFiles []string, extraHelmArgs ...string) string

RenderRemoteTemplate runs `helm template` to render a remote chart given the provided options and returns stdout from the template command. If you pass in templateFiles, this will only render those templates. This function will fail the test if there is an error rendering the template.

Deprecated: Use RenderRemoteTemplateContext instead.

func RenderRemoteTemplateContext

func RenderRemoteTemplateContext(t testing.TestingT, ctx context.Context, options *Options, chartURL string, releaseName string, templateFiles []string, extraHelmArgs ...string) string

RenderRemoteTemplateContext runs `helm template` to render a remote chart given the provided options and returns stdout from the template command. If you pass in templateFiles, this will only render those templates. This function will fail the test if there is an error rendering the template. The ctx parameter supports cancellation and timeouts.

func RenderRemoteTemplateContextE

func RenderRemoteTemplateContextE(t testing.TestingT, ctx context.Context, options *Options, chartURL string, releaseName string, templateFiles []string, extraHelmArgs ...string) (string, error)

RenderRemoteTemplateContextE runs `helm template` to render a remote helm chart given the provided options and returns stdout from the template command. If you pass in templateFiles, this will only render those templates. The ctx parameter supports cancellation and timeouts.

func RenderRemoteTemplateE deprecated

func RenderRemoteTemplateE(t testing.TestingT, options *Options, chartURL string, releaseName string, templateFiles []string, extraHelmArgs ...string) (string, error)

RenderRemoteTemplateE runs `helm template` to render a remote helm chart given the provided options and returns stdout/stderr from the template command. If you pass in templateFiles, this will only render those templates.

Deprecated: Use RenderRemoteTemplateContextE instead.

func RenderTemplate deprecated

func RenderTemplate(t testing.TestingT, options *Options, chartDir string, releaseName string, templateFiles []string, extraHelmArgs ...string) string

RenderTemplate runs `helm template` to render the template given the provided options and returns stdout/stderr from the template command. If you pass in templateFiles, this will only render those templates. This function will fail the test if there is an error rendering the template.

Deprecated: Use RenderTemplateContext instead.

func RenderTemplateAndGetStdOutErrContextE

func RenderTemplateAndGetStdOutErrContextE(t testing.TestingT, ctx context.Context, options *Options, chartDir string, releaseName string, templateFiles []string, extraHelmArgs ...string) (string, string, error)

RenderTemplateAndGetStdOutErrContextE runs `helm template` to render the template given the provided options and returns stdout and stderr separately from the template command. If you pass in templateFiles, this will only render those templates. The ctx parameter supports cancellation and timeouts.

func RenderTemplateAndGetStdOutErrE deprecated

func RenderTemplateAndGetStdOutErrE(t testing.TestingT, options *Options, chartDir string, releaseName string, templateFiles []string, extraHelmArgs ...string) (string, string, error)

RenderTemplateAndGetStdOutErrE runs `helm template` to render the template given the provided options and returns stdout and stderr separately from the template command. If you pass in templateFiles, this will only render those templates.

Deprecated: Use RenderTemplateAndGetStdOutErrContextE instead.

func RenderTemplateContext

func RenderTemplateContext(t testing.TestingT, ctx context.Context, options *Options, chartDir string, releaseName string, templateFiles []string, extraHelmArgs ...string) string

RenderTemplateContext runs `helm template` to render the template given the provided options and returns stdout from the template command. If you pass in templateFiles, this will only render those templates. This function will fail the test if there is an error rendering the template. The ctx parameter supports cancellation and timeouts.

func RenderTemplateContextE

func RenderTemplateContextE(t testing.TestingT, ctx context.Context, options *Options, chartDir string, releaseName string, templateFiles []string, extraHelmArgs ...string) (string, error)

RenderTemplateContextE runs `helm template` to render the template given the provided options and returns stdout from the template command. If you pass in templateFiles, this will only render those templates. The ctx parameter supports cancellation and timeouts.

func RenderTemplateE deprecated

func RenderTemplateE(t testing.TestingT, options *Options, chartDir string, releaseName string, templateFiles []string, extraHelmArgs ...string) (string, error)

RenderTemplateE runs `helm template` to render the template given the provided options and returns stdout/stderr from the template command. If you pass in templateFiles, this will only render those templates.

Deprecated: Use RenderTemplateContextE instead.

func Rollback deprecated

func Rollback(t testing.TestingT, options *Options, releaseName string, revision string)

Rollback will downgrade the release to the specified version. This will fail the test if there is an error.

Deprecated: Use RollbackContext instead.

func RollbackContext

func RollbackContext(t testing.TestingT, ctx context.Context, options *Options, releaseName string, revision string)

RollbackContext will downgrade the release to the specified version. This will fail the test if there is an error. The ctx parameter supports cancellation and timeouts.

func RollbackContextE

func RollbackContextE(t testing.TestingT, ctx context.Context, options *Options, releaseName string, revision string) error

RollbackContextE will downgrade the release to the specified version. The ctx parameter supports cancellation and timeouts.

func RollbackE deprecated

func RollbackE(t testing.TestingT, options *Options, releaseName string, revision string) error

RollbackE will downgrade the release to the specified version.

Deprecated: Use RollbackContextE instead.

func RunHelmCommandAndGetOutputContextE

func RunHelmCommandAndGetOutputContextE(t testing.TestingT, ctx context.Context, options *Options, cmd string, additionalArgs ...string) (string, error)

RunHelmCommandAndGetOutputContextE runs helm with the given arguments and options and returns combined, interleaved stdout/stderr. The ctx parameter supports cancellation and timeouts.

func RunHelmCommandAndGetOutputE deprecated

func RunHelmCommandAndGetOutputE(t testing.TestingT, options *Options, cmd string, additionalArgs ...string) (string, error)

RunHelmCommandAndGetOutputE runs helm with the given arguments and options and returns combined, interleaved stdout/stderr.

Deprecated: Use RunHelmCommandAndGetOutputContextE instead.

func RunHelmCommandAndGetStdOutContextE

func RunHelmCommandAndGetStdOutContextE(t testing.TestingT, ctx context.Context, options *Options, cmd string, additionalArgs ...string) (string, error)

RunHelmCommandAndGetStdOutContextE runs helm with the given arguments and options and returns stdout. The ctx parameter supports cancellation and timeouts.

func RunHelmCommandAndGetStdOutE deprecated

func RunHelmCommandAndGetStdOutE(t testing.TestingT, options *Options, cmd string, additionalArgs ...string) (string, error)

RunHelmCommandAndGetStdOutE runs helm with the given arguments and options and returns stdout.

Deprecated: Use RunHelmCommandAndGetStdOutContextE instead.

func RunHelmCommandAndGetStdOutErrContextE

func RunHelmCommandAndGetStdOutErrContextE(t testing.TestingT, ctx context.Context, options *Options, cmd string, additionalArgs ...string) (string, string, error)

RunHelmCommandAndGetStdOutErrContextE runs helm with the given arguments and options and returns stdout and stderr separately. The ctx parameter supports cancellation and timeouts.

func RunHelmCommandAndGetStdOutErrE deprecated

func RunHelmCommandAndGetStdOutErrE(t testing.TestingT, options *Options, cmd string, additionalArgs ...string) (string, string, error)

RunHelmCommandAndGetStdOutErrE runs helm with the given arguments and options and returns stdout and stderr separately.

Deprecated: Use RunHelmCommandAndGetStdOutErrContextE instead.

func UnmarshalK8SYaml

func UnmarshalK8SYaml(t testing.TestingT, yamlData string, destinationObj any)

UnmarshalK8SYaml is the same as UnmarshalK8SYamlE, but will fail the test if there is an error.

func UnmarshalK8SYamlE

func UnmarshalK8SYamlE(t testing.TestingT, yamlData string, destinationObj any) error

UnmarshalK8SYamlE can be used to take template outputs and unmarshal them into the corresponding client-go struct. For example, suppose you render the template into a Deployment object. You can unmarshal the yaml as follows:

var deployment appsv1.Deployment
UnmarshalK8SYamlE(t, renderedOutput, &deployment)

At the end of this, the deployment variable will be populated.

func UnmarshalK8SYamls

func UnmarshalK8SYamls[T any](t testing.TestingT, yamlData string, destinationObj *[]T, check func(v T) bool)

UnmarshalK8SYamls is the same as UnmarshalK8SYamlsE, but will fail the test if there is an error.

func UnmarshalK8SYamlsE

func UnmarshalK8SYamlsE[T any](t testing.TestingT, yamlData string, destinationObj *[]T, check func(v T) bool) error

UnmarshalK8SYamlsE tries to unmarshal YAML that contains multiple Kubernetes objects into a slice of a concrete type. It requires the caller to pass a check function to determine whether each unmarshalled object is valid. It will ignore errors or invalid objects, but if no valid objects are found, it will return an error.

func UpdateSnapshot deprecated

func UpdateSnapshot(t testing.TestingT, options *Options, yamlData string, releaseName string)

UpdateSnapshot creates or updates the k8s manifest snapshot of a chart (e.g bitnami/nginx). It is one of the two functions needed to implement snapshot based testing for helm. see https://github.com/gruntwork-io/terratest/issues/1377 A snapshot is used to compare the current manifests of a chart with the previous manifests. A global diff is run against the two snapshots and the number of differences is returned.

Deprecated: Use UpdateSnapshotContext instead.

func UpdateSnapshotContext

func UpdateSnapshotContext(t testing.TestingT, ctx context.Context, options *Options, yamlData string, releaseName string)

UpdateSnapshotContext creates or updates the k8s manifest snapshot of a chart (e.g bitnami/nginx). It is one of the two functions needed to implement snapshot based testing for helm. see https://github.com/gruntwork-io/terratest/issues/1377 A snapshot is used to compare the current manifests of a chart with the previous manifests. A global diff is run against the two snapshots and the number of differences is returned. The ctx parameter is accepted for API consistency with other Context-aware helpers.

func UpdateSnapshotContextE

func UpdateSnapshotContextE(t testing.TestingT, ctx context.Context, options *Options, yamlData string, releaseName string) error

UpdateSnapshotContextE creates or updates the k8s manifest snapshot of a chart (e.g bitnami/nginx). It is one of the two functions needed to implement snapshot based testing for helm. see https://github.com/gruntwork-io/terratest/issues/1377 A snapshot is used to compare the current manifests of a chart with the previous manifests. A global diff is run against the two snapshots and the number of differences is returned. The ctx parameter is accepted for API consistency with other Context-aware helpers. It will return an error if there is an issue while writing the manifests' snapshot in the file system.

func UpdateSnapshotE deprecated

func UpdateSnapshotE(t testing.TestingT, options *Options, yamlData string, releaseName string) error

UpdateSnapshotE creates or updates the k8s manifest snapshot of a chart (e.g bitnami/nginx). It is one of the two functions needed to implement snapshot based testing for helm. see https://github.com/gruntwork-io/terratest/issues/1377 A snapshot is used to compare the current manifests of a chart with the previous manifests. A global diff is run against the two snapshots and the number of differences is returned. It will fail the test if there is an error while writing the manifests' snapshot in the file system.

Deprecated: Use UpdateSnapshotContextE instead.

func Upgrade deprecated

func Upgrade(t testing.TestingT, options *Options, chart string, releaseName string)

Upgrade will upgrade the release and chart will be deployed with the latest configuration. This will fail the test if there is an error.

Deprecated: Use UpgradeContext instead.

func UpgradeContext

func UpgradeContext(t testing.TestingT, ctx context.Context, options *Options, chart string, releaseName string)

UpgradeContext will upgrade the release and chart will be deployed with the latest configuration. This will fail the test if there is an error. The ctx parameter supports cancellation and timeouts.

func UpgradeContextE

func UpgradeContextE(t testing.TestingT, ctx context.Context, options *Options, chart string, releaseName string) error

UpgradeContextE will upgrade the release and chart will be deployed with the latest configuration. The ctx parameter supports cancellation and timeouts.

func UpgradeE deprecated

func UpgradeE(t testing.TestingT, options *Options, chart string, releaseName string) error

UpgradeE will upgrade the release and chart will be deployed with the latest configuration.

Deprecated: Use UpgradeContextE instead.

Types

type ChartNotFoundError

type ChartNotFoundError struct {
	Path string
}

ChartNotFoundError is returned when a provided chart dir is not found.

func (ChartNotFoundError) Error

func (err ChartNotFoundError) Error() string

Error implements the error interface for ChartNotFoundError.

type Options

type Options struct {
	// Set a non-default logger that should be used. See the logger package for more info.
	// Use logger.Discard to not print the output while executing the command.
	Logger *logger.Logger

	// Values that should be set via the command line.
	SetValues map[string]string

	// Values that should be set via the command line explicitly as `string` types.
	SetStrValues map[string]string

	// SetJSONValues are values that should be set via the command line in JSON format.
	SetJSONValues map[string]string

	// Deprecated: Use [SetJSONValues] instead.
	SetJsonValues map[string]string //nolint:revive,staticcheck // Deprecated field kept for backwards compatibility.

	// Values that should be set from a file. These should be file paths. Use to avoid logging secrets.
	SetFiles map[string]string

	// KubectlOptions to control how to authenticate to kubernetes cluster. `nil` => use defaults.
	KubectlOptions *k8s.KubectlOptions

	// Environment variables to set when running helm.
	EnvVars map[string]string

	// Extra arguments to pass to the helm install/upgrade/rollback/delete and helm repo add commands.
	// The key signals the command (e.g., install) while the values are the extra arguments to pass through.
	ExtraArgs map[string][]string

	// The path to the helm home to use when calling out to helm.
	// Empty string means use default ($HOME/.helm).
	HomePath string

	// Version of chart.
	Version string

	// The path to the snapshot directory when using snapshot based testing.
	// Empty string means use default ($PWD/__snapshot__).
	SnapshotPath string

	// List of values files to render.
	ValuesFiles []string

	// If true, helm dependencies will be built before rendering template, installing or upgrading the chart.
	BuildDependencies bool
}

Options represents the options for a Helm command.

type SetFileNotFoundError

type SetFileNotFoundError struct {
	Path string
}

SetFileNotFoundError is returned when a provided set file input is not found on the host path.

func (SetFileNotFoundError) Error

func (err SetFileNotFoundError) Error() string

Error implements the error interface for SetFileNotFoundError.

type TemplateFileNotFoundError

type TemplateFileNotFoundError struct {
	Path     string
	ChartDir string
}

TemplateFileNotFoundError is returned when a provided template file input is not found in the chart.

func (TemplateFileNotFoundError) Error

func (err TemplateFileNotFoundError) Error() string

Error implements the error interface for TemplateFileNotFoundError.

type ValuesFileNotFoundError

type ValuesFileNotFoundError struct {
	Path string
}

ValuesFileNotFoundError is returned when a provided values file input is not found on the host path.

func (ValuesFileNotFoundError) Error

func (err ValuesFileNotFoundError) Error() string

Error implements the error interface for ValuesFileNotFoundError.

Jump to

Keyboard shortcuts

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