pub struct BuildConfigSpec {Show 13 fields
pub completion_deadline_seconds: Option<i64>,
pub failed_builds_history_limit: Option<i32>,
pub node_selector: BTreeMap<String, String>,
pub output: Option<BuildOutput>,
pub post_commit: Option<BuildPostCommitSpec>,
pub resources: Option<ResourceRequirements>,
pub revision: Option<SourceRevision>,
pub run_policy: Option<String>,
pub service_account: Option<String>,
pub source: Option<BuildSource>,
pub strategy: BuildStrategy,
pub successful_builds_history_limit: Option<i32>,
pub triggers: Vec<BuildTriggerPolicy>,
}
Expand description
BuildConfigSpec describes when and how builds are created
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
failed_builds_history_limit: Option<i32>
failedBuildsHistoryLimit is the number of old failed builds to retain. If not specified, all failed builds are retained.
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.
run_policy: Option<String>
RunPolicy describes how the new build created from this build configuration will be scheduled for execution. This is optional, if not specified we default to “Serial”.
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.
successful_builds_history_limit: Option<i32>
successfulBuildsHistoryLimit is the number of old successful builds to retain. If not specified, all successful builds are retained.
triggers: Vec<BuildTriggerPolicy>
triggers determine how new Builds can be launched from a BuildConfig. If no triggers are defined, a new build can only occur as a result of an explicit client build creation.
Trait Implementations§
Source§impl Clone for BuildConfigSpec
impl Clone for BuildConfigSpec
Source§fn clone(&self) -> BuildConfigSpec
fn clone(&self) -> BuildConfigSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more