Documentation ¶
Index ¶
- func HandleBuildCompletion(build *buildapi.Build, buildLister buildclient.BuildLister, ...)
- func HandleBuildPruning(buildConfigName string, namespace string, buildLister buildclient.BuildLister, ...) error
- func HasBuildPodNameAnnotation(build *buildapi.Build) bool
- func SetBuildCompletionTimeAndDuration(build *buildapi.Build, startTime *metav1.Time) bool
- func SetBuildPodNameAnnotation(build *buildapi.Build, podName string)
- type ByCreationTimestamp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleBuildCompletion ¶
func HandleBuildCompletion(build *buildapi.Build, buildLister buildclient.BuildLister, buildConfigGetter buildclient.BuildConfigGetter, buildDeleter buildclient.BuildDeleter, runPolicies []policy.RunPolicy)
func HandleBuildPruning ¶
func HandleBuildPruning(buildConfigName string, namespace string, buildLister buildclient.BuildLister, buildConfigGetter buildclient.BuildConfigGetter, buildDeleter buildclient.BuildDeleter) error
HandleBuildPruning handles the deletion of old successful and failed builds based on settings in the BuildConfig.
func SetBuildCompletionTimeAndDuration ¶
SetBuildCompletionTimeAndDuration will set the build completion timestamp to the current time if it is nil. It will also set the start timestamp to the same value if it is nil. Returns true if the build object was modified.
Types ¶
type ByCreationTimestamp ¶
func (ByCreationTimestamp) Len ¶
func (b ByCreationTimestamp) Len() int
func (ByCreationTimestamp) Less ¶
func (b ByCreationTimestamp) Less(i, j int) bool
func (ByCreationTimestamp) Swap ¶
func (b ByCreationTimestamp) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.