Creating an example PipelineRun.

This commit is contained in:
Tom Alexander
2024-07-21 15:54:12 -04:00
parent 1612278bed
commit 1406a21785
6 changed files with 156 additions and 0 deletions

24
src/crd_pipeline_run.rs Normal file
View File

@@ -0,0 +1,24 @@
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",
version = "v1beta1",
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")]
pub timeout: Option<String>,
}