helm

package
v1.84.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHelmApp

func AddHelmApp(releaseName string, helmApp *apptypes.HelmApp)

func CreateHelmRegistryCreds

func CreateHelmRegistryCreds(username string, password string, url string) error

func GetCachedHelmApps

func GetCachedHelmApps() []string

func GetChartConfigSecret

func GetChartConfigSecret(helmApp *apptypes.HelmApp) (*corev1.Secret, error)

func GetChartLicenseFromSecretOrDownload added in v1.82.0

func GetChartLicenseFromSecretOrDownload(helmApp *apptypes.HelmApp) (*kotsv1beta1.License, error)

func GetChartSecret

func GetChartSecret(releaseName, namespace, version string) (*helmrelease.Release, error)

func GetConfigValuesMap added in v1.82.0

func GetConfigValuesMap(configValues *kotsv1beta1.ConfigValues) (map[string]interface{}, error)

func GetHelmApp

func GetHelmApp(releaseName string) *apptypes.HelmApp

func GetKotsKindsForRevision added in v1.82.0

func GetKotsKindsForRevision(releaseName string, revision int64, namespace string) (kotsutil.KotsKinds, error)

func GetKotsKindsFromChartArchive added in v1.84.0

func GetKotsKindsFromChartArchive(archive *bytes.Buffer) (kotsutil.KotsKinds, error)

func GetKotsKindsFromHelmApp added in v1.84.0

func GetKotsKindsFromHelmApp(helmApp *apptypes.HelmApp) (kotsutil.KotsKinds, error)

func GetKotsKindsFromReplicatedSecret added in v1.84.0

func GetKotsKindsFromReplicatedSecret(secret *corev1.Secret) (kotsutil.KotsKinds, error)

func GetKotsLicenseID

func GetKotsLicenseID(release *helmrelease.Release) string

func GetMergedValues

func GetMergedValues(releasedValues, renderedValues map[string]interface{}) (map[string]interface{}, error)

func HelmReleaseFromSecretData

func HelmReleaseFromSecretData(data []byte) (*helmrelease.Release, error)

func Init

func Init(ctx context.Context) error

func PullChartVersion added in v1.84.0

func PullChartVersion(helmApp *apptypes.HelmApp, licenseID string, version string) (*bytes.Buffer, error)

TODO: Add caching

func RemoveHelmApp

func RemoveHelmApp(releaseName string)

func RenderValuesFromConfig

func RenderValuesFromConfig(helmApp *apptypes.HelmApp, kotsKinds *kotsutil.KotsKinds, chart []byte) (map[string]interface{}, error)

func SaveChartLicenseInSecret

func SaveChartLicenseInSecret(helmApp *apptypes.HelmApp, licenseData []byte) error

Always save original data returned from the server without remarshaling.

Types

type ChartUpdate

type ChartUpdate struct {
	Tag     string
	Version semver.Version
}

type ChartUpdates

type ChartUpdates []ChartUpdate

func CheckForUpdates

func CheckForUpdates(chartPath string, licenseID string, currentVersion *semver.Version) (ChartUpdates, error)

func GetCachedUpdates

func GetCachedUpdates(chartPath string) ChartUpdates

func (ChartUpdates) Len

func (v ChartUpdates) Len() int

func (ChartUpdates) Less

func (v ChartUpdates) Less(i, j int) bool

func (ChartUpdates) Swap

func (v ChartUpdates) Swap(i, j int)

func (ChartUpdates) ToTagList

func (u ChartUpdates) ToTagList() []string

type InstalledRelease

type InstalledRelease struct {
	ReleaseName string
	Revision    int
	Version     string
	Semver      *semver.Version
	Status      helmrelease.Status
}

Secret labels from Helm v3 code:

lbs.set("name", rls.Name) lbs.set("owner", owner) lbs.set("status", rls.Info.Status.String()) lbs.set("version", strconv.Itoa(rls.Version))

func GetChartVersion added in v1.83.0

func GetChartVersion(releaseName string, revision int64, namespace string) (*InstalledRelease, error)

func ListChartVersions

func ListChartVersions(releaseName string, namespace string) ([]InstalledRelease, error)

type InstalledReleases

type InstalledReleases []InstalledRelease

func (InstalledReleases) Len

func (v InstalledReleases) Len() int

func (InstalledReleases) Less

func (v InstalledReleases) Less(i, j int) bool

func (InstalledReleases) Swap

func (v InstalledReleases) Swap(i, j int)

Jump to

Keyboard shortcuts

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