Documentation ¶
Index ¶
Constants ¶
const ( DockerPushSecretMountPath = "/var/run/secrets/openshift.io/push" DockerPullSecretMountPath = "/var/run/secrets/openshift.io/pull" ConfigMapBuildSourceBaseMountPath = "/var/run/configs/openshift.io/build" SecretBuildSourceBaseMountPath = "/var/run/secrets/openshift.io/build" SourceImagePullSecretMountPath = "/var/run/secrets/openshift.io/source-image" // ExtractImageContentContainer is the name of the container that will // pull down input images and extract their content for input to the build. ExtractImageContentContainer = "extract-image-content" // GitCloneContainer is the name of the container that will clone the // build source repository and also handle binary input content. GitCloneContainer = "git-clone" )
const ( CustomBuild = "custom-build" DockerBuild = "docker-build" StiBuild = "sti-build" )
Variables ¶
var BuildContainerNames = []string{CustomBuild, StiBuild, DockerBuild}
var ( // BuildControllerRefKind contains the schema.GroupVersionKind for builds. // This is used in the ownerRef of builder pods. BuildControllerRefKind = buildv1.GroupVersion.WithKind("Build") )
var DefaultDropCaps = []string{
"KILL",
"MKNOD",
"SETGID",
"SETUID",
}
DefaultDropCaps is the list of capabilities to drop if the current user cannot run as root
Functions ¶
func HasOwnerReference ¶ added in v3.10.0
HasOwnerReference returns true if the build pod has an OwnerReference to the build.
Types ¶
type CustomBuildStrategy ¶
type CustomBuildStrategy struct { }
CustomBuildStrategy creates a build using a custom builder image.
func (*CustomBuildStrategy) CreateBuildPod ¶
CreateBuildPod creates the pod to be used for the Custom build
type DockerBuildStrategy ¶
type DockerBuildStrategy struct {
Image string
}
DockerBuildStrategy creates a Docker build using a Docker builder image.
func (*DockerBuildStrategy) CreateBuildPod ¶
CreateBuildPod creates the pod to be used for the Docker build TODO: Make the Pod definition configurable
type FatalError ¶
type FatalError struct { // Reason the fatal error occurred Reason string }
FatalError is an error which can't be retried.
func (*FatalError) Error ¶
func (e *FatalError) Error() string
Error implements the error interface.
type SourceBuildStrategy ¶
type SourceBuildStrategy struct { Image string SecurityClient securityclient.SecurityV1Interface }
SourceBuildStrategy creates STI(source to image) builds
func (*SourceBuildStrategy) CreateBuildPod ¶
CreateBuildPod creates a pod that will execute the STI build TODO: Make the Pod definition configurable