Documentation ¶
Index ¶
- Variables
- func ChartVersionResolved(app *shipper.Application) bool
- func CopyEnvironment(app *shipper.Application, rel *shipper.Release)
- func GetApplicationCondition(status shipper.ApplicationStatus, condType shipper.ApplicationConditionType) *shipper.ApplicationCondition
- func GetContender(appName string, rels []*shipper.Release) (*shipper.Release, error)
- func GetHighestObservedGeneration(app *shipper.Application) (int, error)
- func GetIncumbent(appName string, rels []*shipper.Release) (*shipper.Release, error)
- func NewApplicationCondition(condType shipper.ApplicationConditionType, status coreV1.ConditionStatus, ...) *shipper.ApplicationCondition
- func ReleasesToApplicationHistory(releases []*shipper.Release) []string
- func ResolveChartVersion(app *shipper.Application, resolver shipperrepo.ChartVersionResolver) (*repo.ChartVersion, error)
- func SetApplicationCondition(status *shipper.ApplicationStatus, condition shipper.ApplicationCondition)
- func SetHighestObservedGeneration(app *shipper.Application, generation int)
- func UpdateChartNameAnnotation(app *shipper.Application, name string)
- func UpdateChartVersionRawAnnotation(app *shipper.Application, version string)
- func UpdateChartVersionResolvedAnnotation(app *shipper.Application, version string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ConditionsShouldDiscardTimestamps = false
Functions ¶
func ChartVersionResolved ¶ added in v0.5.0
func ChartVersionResolved(app *shipper.Application) bool
func CopyEnvironment ¶
func CopyEnvironment(app *shipper.Application, rel *shipper.Release)
func GetApplicationCondition ¶
func GetApplicationCondition(status shipper.ApplicationStatus, condType shipper.ApplicationConditionType) *shipper.ApplicationCondition
func GetContender ¶
GetContender returns the contender from the given Release slice. The slice is expected to be sorted by descending generation.
func GetHighestObservedGeneration ¶
func GetHighestObservedGeneration(app *shipper.Application) (int, error)
func GetIncumbent ¶
GetIncumbent returns the incumbent from the given Release slice. The slice is expected to be sorted by descending generation.
An incumbent release is the first release in this slice that is considered completed.
func NewApplicationCondition ¶
func NewApplicationCondition(condType shipper.ApplicationConditionType, status coreV1.ConditionStatus, reason, message string) *shipper.ApplicationCondition
func ReleasesToApplicationHistory ¶
ReleasesToApplicationHistory transforms the given Release slice into a string slice sorted by descending generation, suitable to be used set in ApplicationStatus.History.
func ResolveChartVersion ¶ added in v0.5.0
func ResolveChartVersion(app *shipper.Application, resolver shipperrepo.ChartVersionResolver) (*repo.ChartVersion, error)
This function modifies app object and populates it's annotations. The changes are not saved immediately and are delegated to the caller.
func SetApplicationCondition ¶
func SetApplicationCondition(status *shipper.ApplicationStatus, condition shipper.ApplicationCondition)
func SetHighestObservedGeneration ¶
func SetHighestObservedGeneration(app *shipper.Application, generation int)
func UpdateChartNameAnnotation ¶ added in v0.5.0
func UpdateChartNameAnnotation(app *shipper.Application, name string)
func UpdateChartVersionRawAnnotation ¶ added in v0.5.0
func UpdateChartVersionRawAnnotation(app *shipper.Application, version string)
func UpdateChartVersionResolvedAnnotation ¶ added in v0.5.0
func UpdateChartVersionResolvedAnnotation(app *shipper.Application, version string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.