webhook_bridge/src/crd_pipeline_run.rs

25 lines
658 B
Rust
Raw Normal View History

2024-07-21 15:54:12 -04:00
use kube::CustomResource;
use schemars::JsonSchema;
use serde::Deserialize;
use serde::Serialize;
use serde_json::Value;
/// A single execution of a Pipeline.
#[derive(CustomResource, Serialize, Deserialize, Clone, Debug, JsonSchema)]
#[kube(
group = "tekton.dev",
2024-07-21 16:16:17 -04:00
version = "v1",
2024-07-21 15:54:12 -04:00
kind = "PipelineRun",
singular = "pipelinerun",
plural = "pipelineruns"
)]
#[kube(namespaced)]
pub struct PipelineRunSpec {
/// Contents of the Pipeline
#[serde(default, skip_serializing_if = "Option::is_none")]
pub pipelineSpec: Option<Value>,
#[serde(default, skip_serializing_if = "Option::is_none")]
2024-07-21 16:16:17 -04:00
pub timeouts: Option<Value>,
2024-07-21 15:54:12 -04:00
}