helm

package
v1.4.1-0...-109f576 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	HelmExecutable string
}

Client is a local helm client

func NewClient

func NewClient() (*Client, error)

NewClient ensures a helm command exists

func (Client) AddRepository

func (h Client) AddRepository(repoName, url string) error

AddRepository adds a Helm repository

func (Client) Cache

func (h Client) Cache() (string, error)

Cache returns the local helm cache if defined

func (Client) Exec

func (h Client) Exec(arg ...string) (string, string, error)

Exec returns the output and error of a helm command given several arguments Returns stdOut and stdErr as well as any error

func (Client) GetManifestString

func (h Client) GetManifestString(namespace, release string) (string, error)

GetManifestString will run 'helm get manifest' on a given namespace and release and return string output.

func (Client) GetUserSuppliedValuesYAML

func (h Client) GetUserSuppliedValuesYAML(namespace, release string) ([]byte, error)

GetUserSuppliedValues will run 'helm get values' on a given namespace and release and return []byte output suitable for yaml Marshaling.

func (Client) ListNamespaceReleasesYAML

func (h Client) ListNamespaceReleasesYAML(namespace string) ([]byte, error)

ListNamespaceReleasesYAML will run 'helm list' on a given namespace and return []byte output suitable for yaml Marshaling.

func (Client) UpdateDependencies

func (h Client) UpdateDependencies(path string) error

UpdateDependencies will update dependencies for a given release if it is stored locally (i.e. pulled from git)

func (Client) Version

func (h Client) Version() (*semver.Version, error)

Version returns the helm client version

Jump to

Keyboard shortcuts

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