-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathkubo-windows.yml
406 lines (382 loc) · 10.1 KB
/
kubo-windows.yml
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
resource_types:
- name: gcs
type: docker-image
source:
repository: frodenas/gcs-resource
- name: bosh-deployment
type: docker-image
source:
repository: cloudfoundry/bosh-deployment-resource
- name: slack-notification
type: docker-image
source:
repository: cfcommunity/slack-notification-resource
tag: latest
- name: bosh-errand
type: docker-image
source:
repository: pcfkubo/bosh2-errand-resource
tag: v0.1.3-dev
resources:
- name: run-smoke-tests-errand
type: bosh-errand
source:
deployment: ci-service
skip_check: true
- name: stemcell-windows
type: gcs
source:
bucket: k8s-windows-stemcells
json_key: ((gcs-json-key))
regexp: bosh-stemcell-(.*).tgz
- name: stemcell-xenial
type: bosh-io-stemcell
source:
name: bosh-vsphere-esxi-ubuntu-xenial-go_agent
- name: cfcr-deployment
type: bosh-deployment
source:
deployment: ci-service
skip_check: true
- name: gcs-bosh-state
type: gcs
source:
bucket: kubo-pipeline-store
json_key: ((gcs-json-key))
versioned_file: bosh/state.json
- name: source-json
type: gcs
source:
bucket: kubo-pipeline-store
json_key: ((gcs-json-key))
versioned_file: source.json
- name: kubo-lock
type: pool
source:
branch: master
pool: kubo-vsphere-lb
private_key: ((git-ssh-key.private_key))
uri: [email protected]:pivotal-cf-experimental/kubo-locks.git
- name: gcs-load-balancer-vars
type: gcs
source:
bucket: kubo-pipeline-store
json_key: ((gcs-json-key))
versioned_file: load-balancer-vars.yml
- name: gcs-bosh-creds
type: gcs
source:
bucket: kubo-pipeline-store
json_key: ((gcs-json-key))
versioned_file: bosh/creds.yml
- name: git-kubo-deployment
type: git
source:
branch: develop
uri: https://github.com/pivotal-k8s/kubo-deployment
- name: git-kubo-ci
type: git
source:
branch: master
uri: https://github.com/pivotal-k8s/kubo-ci
- name: gcs-kubeconfig
type: gcs
source:
bucket: kubo-pipeline-store
json_key: ((gcs-json-key))
versioned_file: k8s/config
- name: slack-alert
type: slack-notification
source:
url: ((build-alert-slack-url))
- name: git-kubo-release
type: git
source:
branch: hostgw2
uri: https://github.com/pivotal-k8s/kubo-release
- name: run-apply-addons-errand
type: bosh-errand
source:
deployment: ci-service
skip_check: true
- name: slackers
type: git
source:
paths:
- slackers
private_key: ((git-ssh-key.private_key))
uri: [email protected]:cloudfoundry-incubator/cfcr-home.git
jobs:
- name: claim-lock
plan:
- get: git-kubo-release
trigger: true
- get: git-kubo-deployment
trigger: true
- put: kubo-lock
params:
acquire: true
- name: install-bosh
plan:
- aggregate:
- get: git-kubo-release
passed:
- claim-lock
- get: git-kubo-deployment
passed:
- claim-lock
- get: git-kubo-ci
- get: slackers
- get: kubo-lock
passed:
- claim-lock
trigger: true
version: every
- task: install
file: git-kubo-ci/tasks/install-bosh.yml
params:
CLOUD_CONFIG_OPS_FILE: vsphere-lb-k8s-cloud-config-multiaz.yml
USE_TURBULENCE: 1
tags:
- vsphere-lb
- aggregate:
- put: gcs-bosh-creds
params:
file: bosh-creds/creds.yml
- put: gcs-bosh-state
params:
file: bosh-state/state.json
- task: generate-load-balancer-vars
file: git-kubo-ci/tasks/generate-load-balancer-vars.yml
- task: generate-source-json
file: git-kubo-ci/tasks/generate-source-json.yml
- aggregate:
- put: gcs-load-balancer-vars
params:
file: load-balancer-vars/vars.yml
- put: source-json
params:
file: source-json/source.json
- task: update-cloud-config-with-vm-ext
file: git-kubo-ci/tasks/update-cloud-config-with-vm-ext.yml
tags:
- vsphere-lb
on_failure:
do:
- task: configure-slack-notification
file: git-kubo-ci/tasks/configure-slack-notification.yml
- put: slack-alert
params:
attachments_file: slack-notification/attachments
text: |
Build Failed. https://ci.kubo.sh/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
- name: deploy-k8s
plan:
- aggregate:
- get: git-kubo-release
passed:
- install-bosh
- get: git-kubo-deployment
passed:
- install-bosh
- get: git-kubo-ci
- get: kubo-lock
passed:
- install-bosh
trigger: true
version: every
- get: gcs-bosh-state
passed:
- install-bosh
- get: gcs-bosh-creds
passed:
- install-bosh
- get: source-json
passed:
- install-bosh
- get: gcs-load-balancer-vars
passed:
- install-bosh
- get: stemcell-windows
- get: stemcell-xenial
- get: slackers
- task: get_director_uuid
file: git-kubo-ci/tasks/get_director_uuid.yml
- task: create-release
file: git-kubo-ci/tasks/etcd/create-release.yml
input_mapping:
release-dir: git-kubo-release
output_mapping:
release: kubo-release
- put: cfcr-deployment
params:
cleanup: true
manifest: git-kubo-deployment/manifests/cfcr.yml
ops_files:
- git-kubo-deployment/manifests/ops-files/misc/single-master.yml
- git-kubo-deployment/manifests/ops-files/misc/bootstrap.yml
- git-kubo-deployment/manifests/ops-files/allow-privileged-containers.yml
- git-kubo-ci/manifests/ops-files/kubo-latest-version.yml
- git-kubo-deployment/manifests/ops-files/iaas/vsphere/cloud-provider.yml
- git-kubo-deployment/manifests/ops-files/iaas/vsphere/use-vm-extensions.yml
- git-kubo-deployment/manifests/ops-files/use-hostgw.yml
- git-kubo-deployment/manifests/ops-files/windows/add-worker.yml
- git-kubo-deployment/manifests/ops-files/windows/scale-to-one-az.yml
- git-kubo-deployment/manifests/ops-files/windows/use-hostgw.yml
releases:
- kubo-release/release.tgz
source_file: source-json/source.json
stemcells:
- stemcell-windows/*.tgz
- stemcell-xenial/*.tgz
vars:
deployment_name: ci-service
worker_count: 3
vars_files:
- gcs-load-balancer-vars/load-balancer-vars.yml
- kubo-lock/metadata
- director_uuid/var.yml
tags:
- vsphere-lb
- put: run-apply-addons-errand
params:
keep_alive: true
name: apply-addons
source_file: source-json/source.json
tags:
- vsphere-lb
- put: run-smoke-tests-errand
params:
keep_alive: true
name: smoke-tests
source_file: source-json/source.json
tags:
- vsphere-lb
- task: update-kubeconfig
file: git-kubo-ci/tasks/update-kubeconfig.yml
tags:
- vsphere-lb
- put: gcs-kubeconfig
params:
file: kubeconfig/config
on_failure:
do:
- task: configure-slack-notification
file: git-kubo-ci/tasks/configure-slack-notification.yml
- put: slack-alert
params:
attachments_file: slack-notification/attachments
text: |
Build Failed. https://ci.kubo.sh/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
- name: run-k8s-integration-tests
plan:
- aggregate:
- get: git-kubo-release
passed:
- deploy-k8s
- get: git-kubo-deployment
passed:
- deploy-k8s
- get: git-kubo-ci
- get: kubo-lock
passed:
- deploy-k8s
trigger: true
version: every
- get: gcs-bosh-creds
passed:
- deploy-k8s
- get: gcs-bosh-state
passed:
- deploy-k8s
- get: source-json
passed:
- deploy-k8s
- get: gcs-kubeconfig
passed:
- deploy-k8s
- get: slackers
- task: integration-tests
file: git-kubo-ci/tasks/run-k8s-integration-tests.yml
params:
DEPLOYMENT_NAME: ci-service
ENABLE_K8S_LBS_TESTS: false
ENABLE_MULTI_AZ_TESTS: true
ENABLE_OSS_ONLY_TESTS: true
ENABLE_PERSISTENT_VOLUME_TESTS: true
tags:
- vsphere-lb
on_failure:
do:
- task: configure-slack-notification
file: git-kubo-ci/tasks/configure-slack-notification.yml
- put: slack-alert
params:
attachments_file: slack-notification/attachments
text: |
Build Failed. https://ci.kubo.sh/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
- name: destroy-k8s
plan:
- aggregate:
- get: git-kubo-ci
- get: slackers
- get: kubo-lock
passed:
- run-k8s-integration-tests
trigger: true
version: every
- get: gcs-bosh-creds
passed:
- run-k8s-integration-tests
- get: gcs-bosh-state
passed:
- run-k8s-integration-tests
- get: source-json
passed:
- run-k8s-integration-tests
- task: destroy-k8s
file: git-kubo-ci/tasks/destroy-k8s-instance.yml
input_mapping:
kubo-lock: kubo-lock
on_failure:
do:
- task: configure-slack-notification
file: git-kubo-ci/tasks/configure-slack-notification.yml
- put: slack-alert
params:
attachments_file: slack-notification/attachments
text: |
Build Failed. https://ci.kubo.sh/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
- name: destroy-bosh
plan:
- aggregate:
- get: slackers
- get: git-kubo-ci
- get: kubo-lock
passed:
- destroy-k8s
trigger: true
resource: kubo-lock
version: every
- get: gcs-bosh-creds
passed:
- destroy-k8s
- get: gcs-bosh-state
passed:
- destroy-k8s
- task: destroy
file: git-kubo-ci/tasks/destroy-bosh.yml
input_mapping:
kubo-lock: kubo-lock
- put: kubo-lock
params:
release: kubo-lock
on_failure:
do:
- task: configure-slack-notification
file: git-kubo-ci/tasks/configure-slack-notification.yml
- put: slack-alert
params:
attachments_file: slack-notification/attachments
text: |
Build Failed. https://ci.kubo.sh/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME