helm

package
v0.1.1-rc.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLatestChartVersion

func GetLatestChartVersion(
	ctx context.Context,
	registryURL string,
	chart string,
	semverConstraint string,
	creds *Credentials,
) (string, error)

GetLatestChartVersion connects to the Helm chart registry specified by registryURL and retrieves all available versions of the chart found therein. The registry can be either a classic chart registry (using HTTP/S) or an OCI registry. If no semverConstraint is provided (empty string is passed), then the version that is semantically greatest will be returned. If a semverConstraint is specified, then the semantically greatest version satisfying that constraint will be returned. If no version satisfies the constraint, the empty string is returned. Provided credentials may be nil for public registries, but must be non-nil for private registries.

func UpdateChartDependencies

func UpdateChartDependencies(homePath, chartPath string) error

Types

type Credentials

type Credentials struct {
	// Username identifies a principal, which combined with the value of the
	// Password field, can be used for reading from some remote registry.
	Username string
	// Password, when combined with the principal identified by the Username
	// field, can be used for both reading from some remote registry.
	Password string
}

Credentials represents the credentials for connecting to a private Helm chart repository.

Jump to

Keyboard shortcuts

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