-
Notifications
You must be signed in to change notification settings - Fork 3.1k
/
artgc-multi-strategy-multi-anno.yaml
121 lines (120 loc) · 3.36 KB
/
artgc-multi-strategy-multi-anno.yaml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: testing-on-completion-and-on-deletion-strategies-
spec:
entrypoint: entrypoint
artifactGC:
strategy: OnWorkflowCompletion
podGC:
strategy: ""
templates:
- name: entrypoint
steps:
- - name: call-first
template: first
- - name: call-second
template: second
- name: first
container:
image: argoproj/argosay:v2
command:
- sh
- -c
args:
- |
echo "hello world" > /tmp/message
outputs:
artifacts:
- name: first-on-completion-1
path: /tmp/message
s3:
key: first-on-completion-1
bucket: my-bucket-2
endpoint: minio:9000
insecure: true
accessKeySecret:
name: my-minio-cred
key: accesskey
secretKeySecret:
name: my-minio-cred
key: secretkey
artifactGC:
strategy: OnWorkflowCompletion
serviceAccountName: default
podMetadata:
annotations:
annotation-key-1: annotation-value-1
annotation-key-2: annotation-value-2
- name: first-on-completion-2
path: /tmp/message
s3:
key: first-on-completion-2
bucket: my-bucket-3
endpoint: minio:9000
insecure: true
accessKeySecret:
name: my-minio-cred
key: accesskey
secretKeySecret:
name: my-minio-cred
key: secretkey
- name: first-no-deletion
path: /tmp/message
s3:
key: first-no-deletion
bucket: my-bucket-3
endpoint: minio:9000
insecure: true
accessKeySecret:
name: my-minio-cred
key: accesskey
secretKeySecret:
name: my-minio-cred
key: secretkey
artifactGC:
strategy: Never
- name: second
archiveLocation:
s3:
key: default-to-be-overridden
bucket: my-bucket-3
endpoint: minio:9000
insecure: true
accessKeySecret:
name: my-minio-cred
key: accesskey
secretKeySecret:
name: my-minio-cred
key: secretkey
container:
image: argoproj/argosay:v2
command:
- sh
- -c
args:
- |
echo "hello world" > /tmp/message
outputs:
artifacts:
- name: second-on-deletion
s3:
key: second-on-deletion
path: /tmp/message
artifactGC:
strategy: OnWorkflowDeletion
- name: second-on-completion
path: /tmp/message
s3:
key: second-on-completion
bucket: my-bucket-2
endpoint: minio:9000
insecure: true
accessKeySecret:
name: my-minio-cred
key: accesskey
secretKeySecret:
name: my-minio-cred
key: secretkey
artifactGC:
strategy: OnWorkflowCompletion