helm

package
v1.81.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 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 GetChartLicenseFromSecret

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

func GetHelmApp

func GetHelmApp(releaseName string) *apptypes.HelmApp

func GetKotsKinds

func GetKotsKinds(helmApp *apptypes.HelmApp) (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 GetTempConfigValues

func GetTempConfigValues(helmApp *apptypes.HelmApp) (*kotsv1beta1.ConfigValues, error)

func HelmReleaseFromSecretData

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

func HelmReleaseToSecretData

func HelmReleaseToSecretData(release *helmrelease.Release) ([]byte, error)

func Init

func Init(ctx context.Context) error

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, license *kotsv1beta1.License) error

func SetTempConfigValues

func SetTempConfigValues(helmApp *apptypes.HelmApp, revision int64, configValues *kotsv1beta1.ConfigValues) error

TODO: this function is not thread safe

func UpdateChartConfig

func UpdateChartConfig(secret *corev1.Secret) error

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 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