Documentation ¶
Index ¶
- Variables
- 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 SetApplicationCondition(status *shipper.ApplicationStatus, condition shipper.ApplicationCondition)
- func SetHighestObservedGeneration(app *shipper.Application, generation int)
Constants ¶
This section is empty.
Variables ¶
View Source
var ConditionsShouldDiscardTimestamps = false
Functions ¶
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 SetApplicationCondition ¶
func SetApplicationCondition(status *shipper.ApplicationStatus, condition shipper.ApplicationCondition)
func SetHighestObservedGeneration ¶
func SetHighestObservedGeneration(app *shipper.Application, generation int)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.