application

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConditionsShouldDiscardTimestamps = false

Functions

func CopyEnvironment

func CopyEnvironment(app *shipper.Application, rel *shipper.Release)

func GetContender

func GetContender(appName string, rels []*shipper.Release) (*shipper.Release, error)

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

func GetIncumbent(appName string, rels []*shipper.Release) (*shipper.Release, error)

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

func ReleasesToApplicationHistory(releases []*shipper.Release) []string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL