pub struct BuildSpec {
pub completion_deadline_seconds: Option<i64>,
pub node_selector: BTreeMap<String, String>,
pub output: Option<BuildOutput>,
pub post_commit: Option<BuildPostCommitSpec>,
pub resources: Option<ResourceRequirements>,
pub revision: Option<SourceRevision>,
pub service_account: Option<String>,
pub source: Option<BuildSource>,
pub strategy: BuildStrategy,
pub triggered_by: Vec<BuildTriggerCause>,
}
Expand description
BuildSpec has the information to represent a build and also additional information about a build
Fields§
§completion_deadline_seconds: Option<i64>
completionDeadlineSeconds is an optional duration in seconds, counted from the time when a build pod gets scheduled in the system, that the build may be active on a node before the system actively tries to terminate the build; value must be positive integer
node_selector: BTreeMap<String, String>
nodeSelector is a selector which must be true for the build pod to fit on a node If nil, it can be overridden by default build nodeselector values for the cluster. If set to an empty map or a map with any values, default build nodeselector values are ignored.
output: Option<BuildOutput>
output describes the container image the Strategy should produce.
post_commit: Option<BuildPostCommitSpec>
postCommit is a build hook executed after the build output image is committed, before it is pushed to a registry.
resources: Option<ResourceRequirements>
resources computes resource requirements to execute the build.
revision: Option<SourceRevision>
revision is the information from the source for a specific repo snapshot. This is optional.
service_account: Option<String>
serviceAccount is the name of the ServiceAccount to use to run the pod created by this build. The pod will be allowed to use secrets referenced by the ServiceAccount
source: Option<BuildSource>
source describes the SCM in use.
strategy: BuildStrategy
strategy defines how to perform a build.
triggered_by: Vec<BuildTriggerCause>
triggeredBy describes which triggers started the most recent update to the build configuration and contains information about those triggers.