-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathworkflow-openshift-4-perf-scale.yaml
179 lines (172 loc) · 5.33 KB
/
workflow-openshift-4-perf-scale.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: openshift-4-perf-scale-
spec:
entrypoint: start
onExit: destroy
arguments:
parameters:
- name: name
- name: openshift-version
value: ""
- name: master-node-type
value: ""
- name: master-node-count
value: ""
- name: worker-node-type
value: ""
- name: worker-node-count
value: ""
- name: region
value: ""
- name: pull-secret
value: ""
- name: fips-enabled
- name: trusted-certs-enabled
- name: credentials-mode
- name: ssd-storage-class
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 10Mi
volumes:
- name: credentials
secret:
secretName: openshift-4-gcp-service-account
templates:
- name: start
steps:
- - name: create
template: create
- - name: gather
template: gather
- - name: wait
template: wait
- name: create
outputs:
artifacts:
- name: kubeconfig
path: /data/auth/kubeconfig
archive:
none: {}
- name: kubeadmin-password
path: /data/auth/kubeadmin-password
archive:
none: {}
- name: url
path: /data/url
archive:
none: {}
- name: dotenv
path: /data/dotenv
archive:
none: {}
- name: SSH_ACCESS
path: /data/ssh/SSH_ACCESS.md
archive:
none: {}
- name: data
path: /data
archive:
tar: {}
container:
image: quay.io/stackrox-io/ci:automation-flavors-openshift-4-{{ .Chart.Annotations.automationFlavorsVersion }}
imagePullPolicy: Always
command:
- entrypoint.sh
args:
- create
- '{{ "{{" }}workflow.parameters.name{{ "}}" }}'
- ocp.infra.rox.systems
env:
- name: GOOGLE_CREDENTIALS
valueFrom:
secretKeyRef:
name: openshift-4-gcp-service-account
key: google-credentials.json
- name: GCP_PROJECT
value : "acs-team-temp-dev"
- name: PULL_SECRET
valueFrom:
secretKeyRef:
name: redhat-pull-secret
key: REDHAT_PULL_SECRET
- name: USER_PULL_SECRET
value: '{{ "{{" }}workflow.parameters.pull-secret{{ "}}" }}'
- name: OPENSHIFT_VERSION
value: '{{ "{{" }}workflow.parameters.openshift-version{{ "}}" }}'
- name: MASTER_NODE_COUNT
value: '{{ "{{" }}workflow.parameters.master-node-count{{ "}}" }}'
- name: WORKER_NODE_COUNT
value: '{{ "{{" }}workflow.parameters.worker-node-count{{ "}}" }}'
- name: MASTER_NODE_TYPE
value: '{{ "{{" }}workflow.parameters.master-node-type{{ "}}" }}'
- name: WORKER_NODE_TYPE
value: '{{ "{{" }}workflow.parameters.worker-node-type{{ "}}" }}'
- name: REGION
value: '{{ "{{" }}workflow.parameters.region{{ "}}" }}'
- name: FIPS_ENABLED
value: '{{ "{{" }}workflow.parameters.fips-enabled{{ "}}" }}'
- name: TRUSTED_CERTS_ENABLED
value: '{{ "{{" }}workflow.parameters.trusted-certs-enabled{{ "}}" }}'
- name: CREDENTIALS_MODE
value: '{{ "{{" }}workflow.parameters.credentials-mode{{ "}}" }}'
- name: SSD_STORAGE_CLASS
value: '{{ "{{" }}workflow.parameters.ssd-storage-class{{ "}}" }}'
volumeMounts:
- name: data
mountPath: /data
- name: gather
script:
image: busybox
command: [sh]
source: |
cd /data
. ./dotenv
echo "${OPENSHIFT_CONSOLE_URL}" > cluster-console-url
echo "${OPENSHIFT_CONSOLE_USERNAME}" > cluster-console-username
echo "${OPENSHIFT_CONSOLE_PASSWORD}" > cluster-console-password
volumeMounts:
- name: data
mountPath: /data
outputs:
artifacts:
- name: cluster-console-url
path: /data/cluster-console-url
archive:
none: {}
- name: cluster-console-username
path: /data/cluster-console-username
archive:
none: {}
- name: cluster-console-password
path: /data/cluster-console-password
archive:
none: {}
- name: wait
suspend: {}
- name: destroy
container:
image: quay.io/stackrox-io/ci:automation-flavors-openshift-4-{{ .Chart.Annotations.automationFlavorsVersion }}
imagePullPolicy: Always
command:
- entrypoint.sh
args:
- destroy
- '{{ "{{" }}workflow.parameters.name{{ "}}" }}'
env:
- name: GOOGLE_CREDENTIALS
valueFrom:
secretKeyRef:
name: openshift-4-gcp-service-account
key: google-credentials.json
- name: GCP_PROJECT
value : "acs-team-temp-dev"
volumeMounts:
- name: data
mountPath: /data