Skip to content

Commit 9787365

Browse files
committed
OSD: Fixed pipeline validation errors
1 parent 2285ffc commit 9787365

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

deploy/pipeline-trigger.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ spec:
3232
params:
3333
- name: payload
3434
value: $(tt.params.payload)
35+
taskRunSpecs:
36+
- pipelineTaskName: perform-cad-checks
37+
computeResources:
38+
requests:
39+
cpu: 100m
40+
memory: 64Mi
41+
limits:
42+
cpu: 500m
43+
memory: 256Mi
3544

3645
---
3746
apiVersion: triggers.tekton.dev/v1beta1

deploy/tekton-pruner.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ spec:
3131
memory: 256Mi
3232
terminationMessagePath: /dev/termination-log
3333
terminationMessagePolicy: FallbackToLogsOnError
34+
securityContext:
35+
runAsUser: 1000
36+
runAsGroup: 1000
37+
runAsNonRoot: true
3438
dnsPolicy: ClusterFirst
3539
restartPolicy: Never
3640
schedulerName: default-scheduler

openshift/template.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,15 @@ objects:
136136
pipelineRef:
137137
name: cad-checks-pipeline
138138
serviceAccountName: cad-sa
139+
taskRunSpecs:
140+
- computeResources:
141+
limits:
142+
cpu: 500m
143+
memory: 256Mi
144+
requests:
145+
cpu: 100m
146+
memory: 64Mi
147+
pipelineTaskName: perform-cad-checks
139148
timeout: 30m
140149
- apiVersion: triggers.tekton.dev/v1beta1
141150
kind: Trigger
@@ -358,6 +367,10 @@ objects:
358367
requests:
359368
cpu: 100m
360369
memory: 64Mi
370+
securityContext:
371+
runAsGroup: 1000
372+
runAsNonRoot: true
373+
runAsUser: 1000
361374
terminationMessagePath: /dev/termination-log
362375
terminationMessagePolicy: FallbackToLogsOnError
363376
dnsPolicy: ClusterFirst

0 commit comments

Comments
 (0)