[][src]Struct openshift_openapi::api::build::v1::BuildConfigSpec

pub struct BuildConfigSpec {
    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>,
}

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

impl Clone for BuildConfigSpec[src]

impl Debug for BuildConfigSpec[src]

impl Default for BuildConfigSpec[src]

impl<'de> Deserialize<'de> for BuildConfigSpec[src]

impl PartialEq<BuildConfigSpec> for BuildConfigSpec[src]

impl Serialize for BuildConfigSpec[src]

impl StructuralPartialEq for BuildConfigSpec[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.