Documentation ¶
Index ¶
- func AddHelmApp(releaseName string, helmApp *apptypes.HelmApp)
- func CreateHelmRegistryCreds(username string, password string, url string) error
- func GetCachedHelmApps() []string
- func GetChartConfigSecret(helmApp *apptypes.HelmApp) (*corev1.Secret, error)
- func GetChartLicenseFromSecretOrDownload(helmApp *apptypes.HelmApp) (*kotsv1beta1.License, error)
- func GetChartSecret(releaseName, namespace, version string) (*helmrelease.Release, error)
- func GetConfigValuesMap(configValues *kotsv1beta1.ConfigValues) (map[string]interface{}, error)
- func GetHelmApp(releaseName string) *apptypes.HelmApp
- func GetKotsKinds(helmApp *apptypes.HelmApp) (kotsutil.KotsKinds, error)
- func GetKotsKindsForRevision(releaseName string, revision int64) (kotsutil.KotsKinds, error)
- func GetKotsLicenseID(release *helmrelease.Release) string
- func GetMergedValues(releasedValues, renderedValues map[string]interface{}) (map[string]interface{}, error)
- func HelmReleaseFromSecretData(data []byte) (*helmrelease.Release, error)
- func HelmReleaseToSecretData(release *helmrelease.Release) ([]byte, error)
- func Init(ctx context.Context) error
- func RemoveHelmApp(releaseName string)
- func RenderValuesFromConfig(helmApp *apptypes.HelmApp, kotsKinds *kotsutil.KotsKinds, chart []byte) (map[string]interface{}, error)
- func SaveChartLicenseInSecret(helmApp *apptypes.HelmApp, licenseData []byte) error
- type ChartUpdate
- type ChartUpdates
- type InstalledRelease
- type InstalledReleases
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHelmApp ¶
func CreateHelmRegistryCreds ¶
func GetCachedHelmApps ¶
func GetCachedHelmApps() []string
func GetChartConfigSecret ¶
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 GetKotsKindsForRevision ¶ added in v1.82.0
func GetKotsLicenseID ¶
func GetKotsLicenseID(release *helmrelease.Release) string
func GetMergedValues ¶
func HelmReleaseFromSecretData ¶
func HelmReleaseFromSecretData(data []byte) (*helmrelease.Release, error)
func HelmReleaseToSecretData ¶
func HelmReleaseToSecretData(release *helmrelease.Release) ([]byte, error)
func RemoveHelmApp ¶
func RemoveHelmApp(releaseName string)
func RenderValuesFromConfig ¶
Types ¶
type ChartUpdate ¶
type ChartUpdates ¶
type ChartUpdates []ChartUpdate
func CheckForUpdates ¶
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)
Click to show internal directories.
Click to hide internal directories.