Documentation ¶
Index ¶
- Constants
- 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 GetKotsKindsForRevision(releaseName string, revision int64, namespace string) (kotsutil.KotsKinds, error)
- func GetKotsKindsFromHelmApp(helmApp *apptypes.HelmApp) (kotsutil.KotsKinds, error)
- func GetKotsKindsFromReplicatedSecret(secret *corev1.Secret) (kotsutil.KotsKinds, error)
- func GetKotsKindsFromUpstreamChartVersion(helmApp *apptypes.HelmApp, licenseID string, version string) (kotsutil.KotsKinds, error)
- func GetKotsLicenseID(release *helmrelease.Release) string
- func GetMergedValues(releasedValues, renderedValues map[string]interface{}) (map[string]interface{}, error)
- func GetReplicatedSecretForRevision(releaseName string, revision int64, namespace string) (*corev1.Secret, error)
- func GetReplicatedSecretFromUpstreamChartVersion(helmApp *apptypes.HelmApp, licenseID string, version string) (*corev1.Secret, error)
- func GetUpdateCheckSpec(helmApp *apptypes.HelmApp) (string, error)
- func HelmReleaseFromSecretData(data []byte) (*helmrelease.Release, error)
- func HelmUpdateToDownsreamVersion(update ChartUpdate, sequence int64) *downstreamtypes.DownstreamVersion
- func Init(ctx context.Context) error
- func MigrateExistingHelmReleaseSecrets(clientset kubernetes.Interface, releaseName string, releaseNamespace string, ...) error
- func RemoveHelmApp(releaseName string)
- func RenderValuesFromConfig(helmApp *apptypes.HelmApp, kotsKinds *kotsutil.KotsKinds, chart []byte) (map[string]interface{}, error)
- func ResponseAppFromHelmApp(helmApp *apptypes.HelmApp) (*types.HelmResponseApp, error)
- func SaveChartLicenseInSecret(helmApp *apptypes.HelmApp, licenseData []byte) error
- func SetCachedUpdateMetadata(chartPath string, tag string, meta *ReplicatedMeta)
- func SetCachedUpdateStatus(chartPath string, tag string, status storetypes.DownstreamVersionStatus)
- func SetUpdateCheckSpec(helmApp *apptypes.HelmApp, updateSpec string) error
- func SyncLicense(helmApp *apptypes.HelmApp) (bool, error)
- type ChartUpdate
- type ChartUpdates
- type InstalledRelease
- type InstalledReleases
- type ReplicatedMeta
Constants ¶
View Source
const (
HelmReleaseSecretType = "helm.sh/release.v1"
)
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 GetKotsKindsFromHelmApp ¶ added in v1.84.0
func GetKotsKindsFromReplicatedSecret ¶ added in v1.84.0
func GetKotsKindsFromUpstreamChartVersion ¶ added in v1.85.0
func GetKotsLicenseID ¶
func GetKotsLicenseID(release *helmrelease.Release) string
func GetMergedValues ¶
func GetReplicatedSecretForRevision ¶ added in v1.86.0
func GetReplicatedSecretFromUpstreamChartVersion ¶ added in v1.86.0
func GetUpdateCheckSpec ¶ added in v1.86.1
func HelmReleaseFromSecretData ¶
func HelmReleaseFromSecretData(data []byte) (*helmrelease.Release, error)
func HelmUpdateToDownsreamVersion ¶ added in v1.85.0
func HelmUpdateToDownsreamVersion(update ChartUpdate, sequence int64) *downstreamtypes.DownstreamVersion
func MigrateExistingHelmReleaseSecrets ¶ added in v1.96.2
func MigrateExistingHelmReleaseSecrets(clientset kubernetes.Interface, releaseName string, releaseNamespace string, kotsadmNamespace string) error
MigrateExistingHelmReleaseSecrets will move all helm release secrets from the kotsadm namespace to the release namespace
func RemoveHelmApp ¶
func RemoveHelmApp(releaseName string)
func RenderValuesFromConfig ¶
func ResponseAppFromHelmApp ¶ added in v1.85.0
func ResponseAppFromHelmApp(helmApp *apptypes.HelmApp) (*types.HelmResponseApp, error)
func SaveChartLicenseInSecret ¶
Always save original data returned from the server without remarshaling.
func SetCachedUpdateMetadata ¶ added in v1.88.0
func SetCachedUpdateMetadata(chartPath string, tag string, meta *ReplicatedMeta)
func SetCachedUpdateStatus ¶ added in v1.85.0
func SetCachedUpdateStatus(chartPath string, tag string, status storetypes.DownstreamVersionStatus)
func SetUpdateCheckSpec ¶ added in v1.86.1
Types ¶
type ChartUpdate ¶
type ChartUpdate struct { Tag string Version semver.Version Status storetypes.DownstreamVersionStatus CreatedOn *time.Time IsDownloaded bool }
type ChartUpdates ¶
type ChartUpdates []ChartUpdate
func CheckForUpdates ¶
func CheckForUpdates(helmApp *apptypes.HelmApp, license *kotsv1beta1.License, currentVersion *semver.Version) (ChartUpdates, error)
func GetCachedUpdates ¶
func GetCachedUpdates(chartPath string) ChartUpdates
func GetDownloadedUpdates ¶ added in v1.88.0
func GetDownloadedUpdates(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 DeployedOn *time.Time ReleasedOn *time.Time }
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)
type ReplicatedMeta ¶ added in v1.88.0
type ReplicatedMeta struct { LicenseID string `yaml:"license_id"` Username string `yaml:"username"` CreatedAt *time.Time `yaml:"created_at"` }
func GetReplicatedMetadataFromUpstreamChartVersion ¶ added in v1.88.0
Click to show internal directories.
Click to hide internal directories.