Documentation ¶
Overview ¶
This package is for maintaining the link between `HelmRelease` resources and the Helm releases to which they correspond. Specifically,
updating the `HelmRelease` status based on the progress of syncing, and the state of the associated Helm release; and,
attributing each resource in a Helm release (under our control) to the associated `HelmRelease`.
Index ¶
- func GetCondition(status helmfluxv1.HelmReleaseStatus, ...) *helmfluxv1.HelmReleaseCondition
- func HasRolledBack(hr helmfluxv1.HelmRelease) bool
- func HasSynced(hr helmfluxv1.HelmRelease) bool
- func NewCondition(conditionType helmfluxv1.HelmReleaseConditionType, status v1.ConditionStatus, ...) helmfluxv1.HelmReleaseCondition
- func SetCondition(client v1client.HelmReleaseInterface, hr helmfluxv1.HelmRelease, ...) error
- func SetObservedGeneration(client v1client.HelmReleaseInterface, hr helmfluxv1.HelmRelease, ...) error
- func SetReleaseRevision(client v1client.HelmReleaseInterface, hr helmfluxv1.HelmRelease, ...) error
- func SetReleaseStatus(client v1client.HelmReleaseInterface, hr helmfluxv1.HelmRelease, ...) error
- func SetValuesChecksum(client v1client.HelmReleaseInterface, hr helmfluxv1.HelmRelease, ...) error
- type Updater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCondition ¶
func GetCondition(status helmfluxv1.HelmReleaseStatus, conditionType helmfluxv1.HelmReleaseConditionType) *helmfluxv1.HelmReleaseCondition
GetCondition returns the condition with the given type.
func HasRolledBack ¶
func HasRolledBack(hr helmfluxv1.HelmRelease) bool
HasRolledBack returns if the current generation of the HelmRelease has been rolled back.
func HasSynced ¶
func HasSynced(hr helmfluxv1.HelmRelease) bool
HasSynced returns if the HelmRelease has been processed by the controller.
func NewCondition ¶
func NewCondition(conditionType helmfluxv1.HelmReleaseConditionType, status v1.ConditionStatus, reason, message string) helmfluxv1.HelmReleaseCondition
NewCondition creates a new HelmReleaseCondition.
func SetCondition ¶
func SetCondition(client v1client.HelmReleaseInterface, hr helmfluxv1.HelmRelease, condition helmfluxv1.HelmReleaseCondition) error
SetCondition updates the HelmRelease to include the given condition.
func SetObservedGeneration ¶
func SetObservedGeneration(client v1client.HelmReleaseInterface, hr helmfluxv1.HelmRelease, generation int64) error
SetObservedGeneration updates the observed generation status of the HelmRelease to the given generation.
func SetReleaseRevision ¶
func SetReleaseRevision(client v1client.HelmReleaseInterface, hr helmfluxv1.HelmRelease, revision string) error
SetReleaseRevision updates the status of the HelmRelease to the given revision.
func SetReleaseStatus ¶
func SetReleaseStatus(client v1client.HelmReleaseInterface, hr helmfluxv1.HelmRelease, releaseName, releaseStatus string) error
SetReleaseStatus updates the status of the HelmRelease to the given release name and/or release status.
func SetValuesChecksum ¶
func SetValuesChecksum(client v1client.HelmReleaseInterface, hr helmfluxv1.HelmRelease, valuesChecksum string) error
SetValuesChecksum updates the values checksum of the HelmRelease to the given checksum.