forked from tektoncd/pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathworkspace-from-volumeclaimtemplate.yaml
More file actions
49 lines (49 loc) · 1.02 KB
/
workspace-from-volumeclaimtemplate.yaml
File metadata and controls
49 lines (49 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: volume-from-template
spec:
tasks:
- name: writer
taskSpec:
steps:
- name: write
image: ubuntu
script: echo bar > $(workspaces.task-ws.path)/foo
workspaces:
- name: task-ws
workspaces:
- name: task-ws
workspace: ws
- name: reader
runAfter:
- writer
taskSpec:
steps:
- name: read
image: ubuntu
script: cat $(workspaces.myws.path)/foo | grep bar
workspaces:
- name: myws
workspaces:
- name: myws
workspace: ws
workspaces:
- name: ws
---
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
generateName: run-with-template-
spec:
pipelineRef:
name: volume-from-template
workspaces:
- name: ws
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi