package
4.1.0+incompatible
Repository: https://github.com/openshift/origin.git
Documentation: pkg.go.dev
# Functions
BuildConfigBuilds return a list of builds for the given build config.
BuildConfigSelector returns a label Selector which can be used to find all builds for a BuildConfig.
BuildNameForConfigVersion returns the name of the version-th build for the config that has the provided name.
ConfigNameForBuild returns the name of the build config from a build name.
FetchServiceAccountSecrets retrieves the Secrets used for pushing and pulling images from private Docker registries.
FindDockerSecretAsReference looks through a set of k8s Secrets to find one that represents Docker credentials and which contains credentials that are associated with the registry identified by the image.
GetBuildEnv gets the build strategy environment.
GetBuildPodName returns name of the build pod.
GetInputReference returns the From ObjectReference associated with the BuildStrategy.
IsBuildComplete returns whether the provided build is complete or not.
IsFatal returns true if err is a fatal error.
IsTerminalPhase returns true if the provided phase is terminal.
MergeEnvWithoutDuplicates merges two environment lists without having duplicate items in the output list.
MergeTrustedEnvWithoutDuplicates merges two environment lists without having duplicate items in the output list.
ParseProxyURL parses a proxy URL and allows fallback to non-URLs like myproxy:80 (for example) which url.Parse no longer accepts in Go 1.8.
SetBuildEnv replaces the current build environment.
UpdateBuildEnv updates the strategy environment This will replace the existing variable definitions with provided env.
UpdateCustomImageEnv updates base image env variable reference with the new image for a custom build strategy.
# Constants
AllowedUIDs is an environment variable that contains ranges of UIDs that are allowed in Source builder images.
BuildAnnotation is an annotation that identifies a Pod as being for a Build.
BuildBlobsContentCache is the directory used to store a cache for the blobs content to be reused within a build pod.
BuildBlobsMetaCache is the directory used to store a cache for the blobs metadata to be reused across builds.
BuildCancelledEventMessage is the message associated with the event registered when build is cancelled.
BuildCancelledEventReason is the reason associated with the event registered when build is cancelled.
BuildCloneAnnotation is an annotation whose value is the name of the build this build was cloned from.
BuildCompletedEventMessage is the message associated with the event registered when build completes successfully.
BuildCompletedEventReason is the reason associated with the event registered when build completes successfully.
BuildConfigAnnotation is an annotation that identifies the BuildConfig that a Build was created from.
BuildConfigLabel is the key of a Build label whose value is the ID of a BuildConfig on which the Build is based.
BuildConfigLabelDeprecated was used as BuildConfigLabel before adding namespaces.
BuildConfigPausedAnnotation is an annotation that marks a BuildConfig as paused.
BuilderServiceAccountName is the name of the account used to run build pods by default.
BuildFailedEventMessage is the message associated with the event registered when build fails.
BuildFailedEventReason is the reason associated with the event registered when build fails.
BuildJenkinsBlueOceanLogURLAnnotation is an annotation holding a link to the Jenkins build console log via the Jenkins BlueOcean UI Plugin.
BuildJenkinsBuildURIAnnotation is an annotation holding a link to the Jenkins build.
BuildJenkinsConsoleLogURLAnnotation is an annotation holding a link to the Jenkins build console log (including Jenkins chrome wrappering).
BuildJenkinsLogURLAnnotation is an annotation holding a link to the raw Jenkins build console log.
BuildJenkinsStatusJSONAnnotation is an annotation holding the Jenkins status information.
BuildLabel is the key of a Pod label whose value is the Name of a Build which is run.
BuildNumberAnnotation is an annotation whose value is the sequential number for this Build.
BuildPodNameAnnotation is an annotation whose value is the name of the pod running this build.
BuildRunPolicyLabel represents the start policy used to to start the build.
BuildSourceSecretMatchURIAnnotationPrefix is a prefix for annotations on a Secret which indicate a source URI against which the Secret can be used.
BuildStartedEventMessage is the message associated with the event registered when a build is started (pod is created).
BuildStartedEventReason is the reason associated with the event registered when a build is started (pod is created).
BuildWorkDirMount is the working directory within the build pod, mounted as a volume.
CustomBuildStrategyBaseImageKey is the environment variable that indicates the base image to be used when performing a custom build, if needed.
DropCapabilities is an environment variable that contains a list of capabilities to drop when executing a Source build.
NoBuildLogsMessage reports that no build logs are available.
RegistryConfKey is the ConfigMap key for the build pod's registry configuration file.
ServiceCAKey is the ConfigMap key for the service signing certificate authority mounted into build pods.
SignaturePolicyKey is the ConfigMap key for the build pod's image signature policy file.
WebHookSecretKey is the key used to identify the value containing the webhook invocation secret within a secret referenced by a webhook trigger.
# Variables
DefaultFailedBuildsHistoryLimit is the default number of failed builds to retain.
DefaultSuccessfulBuildsHistoryLimit is the default number of successful builds to retain.
# Structs
GeneratorFatalError represents a fatal error while generating a build.