Documentation ¶
Index ¶
- func AddHelmApp(releaseName string, helmApp *HelmApp)
- func GetCachedHelmApps() []string
- func GetChartConfigSecret(helmApp *HelmApp) (*corev1.Secret, error)
- func GetChartLicenseFromSecret(helmApp *HelmApp) (*kotsv1beta1.License, 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 Init(ctx context.Context) error
- func RemoveHelmApp(releaseName string)
- func RenderValuesFromConfig(app string, newConfigItems map[string]template.ItemValue, ...) (map[string]interface{}, *kotsv1beta1.Config, error)
- func SaveChartLicenseInSecret(helmApp *HelmApp, license *kotsv1beta1.License) error
- func SaveConfigValuesToFile(helmApp *HelmApp, data []byte) error
- func UpdateChartConfig(secret *corev1.Secret) error
- type ChartUpdate
- type ChartUpdates
- type HelmApp
- type InstalledRelease
- type InstalledReleases
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHelmApp ¶
func GetCachedHelmApps ¶
func GetCachedHelmApps() []string
func GetChartLicenseFromSecret ¶
func GetChartLicenseFromSecret(helmApp *HelmApp) (*kotsv1beta1.License, error)
func GetKotsLicenseID ¶
func GetKotsLicenseID(release *helmrelease.Release) string
func GetMergedValues ¶
func HelmReleaseFromSecretData ¶
func HelmReleaseFromSecretData(data []byte) (*helmrelease.Release, error)
func RemoveHelmApp ¶
func RemoveHelmApp(releaseName string)
func RenderValuesFromConfig ¶
func SaveChartLicenseInSecret ¶
func SaveChartLicenseInSecret(helmApp *HelmApp, license *kotsv1beta1.License) error
func SaveConfigValuesToFile ¶ added in v1.77.0
func UpdateChartConfig ¶
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 HelmApp ¶ added in v1.76.0
type HelmApp struct { Release helmrelease.Release Labels map[string]string Namespace string IsConfigurable bool ChartPath string CreationTimestamp time.Time PathToValuesFile string }
func GetHelmApp ¶
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.