build.v1.buildStatus
"BuildStatus contains the status of a build"
Index
fn withCancelled(cancelled)
fn withCompletionTimestamp(completionTimestamp)
fn withDuration(duration)
fn withLogSnippet(logSnippet)
fn withMessage(message)
fn withOutputDockerImageReference(outputDockerImageReference)
fn withPhase(phase)
fn withReason(reason)
fn withStages(stages)
fn withStagesMixin(stages)
fn withStartTimestamp(startTimestamp)
obj config
obj output
Fields
fn withCancelled
withCancelled(cancelled)
"cancelled describes if a cancel event was triggered for the build."
fn withCompletionTimestamp
withCompletionTimestamp(completionTimestamp)
fn withDuration
withDuration(duration)
"duration contains time.Duration object describing build time."
fn withLogSnippet
withLogSnippet(logSnippet)
"logSnippet is the last few lines of the build log. This value is only set for builds that failed."
fn withMessage
withMessage(message)
"message is a human-readable message indicating details about why the build has this status."
fn withOutputDockerImageReference
withOutputDockerImageReference(outputDockerImageReference)
"outputDockerImageReference contains a reference to the Docker image that will be built by this build. Its value is computed from Build.Spec.Output.To, and should include the registry address, so that it can be used to push and pull the image."
fn withPhase
withPhase(phase)
"phase is the point in the build lifecycle. Possible values are \"New\", \"Pending\", \"Running\", \"Complete\", \"Failed\", \"Error\", and \"Cancelled\"."
fn withReason
withReason(reason)
"reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI."
fn withStages
withStages(stages)
"stages contains details about each stage that occurs during the build including start time, duration (in milliseconds), and the steps that occured within each stage."
fn withStagesMixin
withStagesMixin(stages)
"stages contains details about each stage that occurs during the build including start time, duration (in milliseconds), and the steps that occured within each stage."
Note: This function appends passed data to existing values
fn withStartTimestamp
withStartTimestamp(startTimestamp)
obj config
"ObjectReference contains enough information to let you inspect or modify the referred object."
fn config.withApiVersion
withApiVersion(apiVersion)
"API version of the referent."
fn config.withFieldPath
withFieldPath(fieldPath)
"If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object."
fn config.withKind
withKind(kind)
"Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds"
fn config.withName
withName(name)
"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"
fn config.withNamespace
withNamespace(namespace)
"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"
fn config.withResourceVersion
withResourceVersion(resourceVersion)
"Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency"
fn config.withUid
withUid(uid)
"UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids"
obj output
"BuildStatusOutput contains the status of the built image."
obj output.to
"BuildStatusOutputTo describes the status of the built image with regards to image registry to which it was supposed to be pushed."
fn output.to.withImageDigest
withImageDigest(imageDigest)
"imageDigest is the digest of the built Docker image. The digest uniquely identifies the image in the registry to which it was pushed.\n\nPlease note that this field may not always be set even if the push completes successfully - e.g. when the registry returns no digest or returns it in a format that the builder doesn't understand."