v1.0.3 Latest Latest

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

Go to latest
Published: Jul 20, 2015 License: Apache-2.0 Imports: 4 Imported by: 0



Package util contains common functions that are used by the rest of the OpenShift build system.



View Source
const (
	// BuildPodSuffix is the suffix used to append to a build pod name given a build name
	BuildPodSuffix = "build"
	// NoBuildLogsMessage reports that no build logs are available
	NoBuildLogsMessage = "No logs are available."


This section is empty.


func GetBuildLabel added in v1.0.3

func GetBuildLabel(pod *kapi.Pod) (string, bool)

GetBuildLabel retrieves build label from a Pod returning its value and a boolean value informing whether the value was found

func GetBuildName added in v0.5.3

func GetBuildName(pod *kapi.Pod) string

GetBuildName returns name of the build pod.

func GetBuildPodName added in v0.4.2

func GetBuildPodName(build *buildapi.Build) string

GetBuildPodName returns name of the build pod.

func GetImageStreamForStrategy added in v0.5.1

func GetImageStreamForStrategy(strategy buildapi.BuildStrategy) *kapi.ObjectReference

GetImageStreamForStrategy returns the ImageStream[Tag/Image] ObjectReference associated with the BuildStrategy.

func IsBuildComplete added in v0.5.3

func IsBuildComplete(build *buildapi.Build) bool

IsBuildComplete returns whether the provided build is complete or not

func NameFromImageStream added in v0.5.1

func NameFromImageStream(namespace string, ref *kapi.ObjectReference, tag string) string

NameFromImageStream returns a concatenated name representing an ImageStream[Tag/Image] reference. If the reference does not contain a Namespace, the namespace parameter is used instead.


This section is empty.

Jump to

Keyboard shortcuts

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