Upgrade to PipelineRun v1.
This commit is contained in:
parent
1406a21785
commit
6c15fc00b4
@ -1,5 +1,5 @@
|
||||
{
|
||||
"apiVersion": "tekton.dev/v1beta1",
|
||||
"apiVersion": "tekton.dev/v1",
|
||||
"kind": "PipelineRun",
|
||||
"metadata": {
|
||||
"name": "minimal-test",
|
||||
@ -14,8 +14,7 @@
|
||||
"metadata": {},
|
||||
"stepTemplate": {
|
||||
"image": "alpine:3.18",
|
||||
"name": "",
|
||||
"resources": {
|
||||
"computeResources": {
|
||||
"requests": {
|
||||
"cpu": "10m",
|
||||
"memory": "600Mi"
|
||||
@ -42,8 +41,7 @@
|
||||
"metadata": {},
|
||||
"stepTemplate": {
|
||||
"image": "alpine:3.18",
|
||||
"name": "",
|
||||
"resources": {
|
||||
"computeResources": {
|
||||
"requests": {
|
||||
"cpu": "10m",
|
||||
"memory": "600Mi"
|
||||
@ -65,6 +63,8 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"timeout": "240h0m0s"
|
||||
"timeouts": {
|
||||
"pipeline": "240h0m0s"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
apiVersion: tekton.dev/v1beta1
|
||||
apiVersion: tekton.dev/v1
|
||||
kind: PipelineRun
|
||||
metadata:
|
||||
name: minimal-test
|
||||
@ -11,8 +11,7 @@ spec:
|
||||
metadata: {}
|
||||
stepTemplate:
|
||||
image: alpine:3.18
|
||||
name: ""
|
||||
resources:
|
||||
computeResources:
|
||||
requests:
|
||||
cpu: 10m
|
||||
memory: 600Mi
|
||||
@ -29,8 +28,7 @@ spec:
|
||||
metadata: {}
|
||||
stepTemplate:
|
||||
image: alpine:3.18
|
||||
name: ""
|
||||
resources:
|
||||
computeResources:
|
||||
requests:
|
||||
cpu: 10m
|
||||
memory: 600Mi
|
||||
@ -41,4 +39,5 @@ spec:
|
||||
script: |
|
||||
#!/usr/bin/env sh
|
||||
echo -n "dolar" > "$(results.ipsum.path)"
|
||||
timeout: 240h0m0s
|
||||
timeouts:
|
||||
pipeline: 240h0m0s
|
||||
|
@ -8,7 +8,7 @@ use serde_json::Value;
|
||||
#[derive(CustomResource, Serialize, Deserialize, Clone, Debug, JsonSchema)]
|
||||
#[kube(
|
||||
group = "tekton.dev",
|
||||
version = "v1beta1",
|
||||
version = "v1",
|
||||
kind = "PipelineRun",
|
||||
singular = "pipelinerun",
|
||||
plural = "pipelineruns"
|
||||
@ -20,5 +20,5 @@ pub struct PipelineRunSpec {
|
||||
pub pipelineSpec: Option<Value>,
|
||||
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub timeout: Option<String>,
|
||||
pub timeouts: Option<Value>,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user