-
Notifications
You must be signed in to change notification settings - Fork 309
/
cf-deployment.yml
2246 lines (2167 loc) · 68.6 KB
/
cf-deployment.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
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---
groups:
- name: cf-deployment
jobs:
- unit-test-ops-files
- unit-test-golang-tests
- unit-test-update-releases-coverage
- lint-cf-deployment-manifest
- branch-freshness
- validate-certs
- fresh-acquire-pool
- fresh-deploy
- fresh-smoke-tests
- fresh-cats
- fresh-delete-deployment
- upgrade-acquire-pool
- upgrade-deploy
- upgrade-smoke-tests
- upgrade-cats
- upgrade-delete-deployment
- experimental-acquire-pool
- experimental-deploy
- experimental-smoke-tests
- experimental-cats
- experimental-delete-deployment
- lite-acquire-pool
- lite-deploy
- lite-smoke-tests
- lite-recreate-director
- bbr-acquire-pool
- bbr-deploy
- bbr-run-drats
- bbr-delete-deployment
- windows-acquire-pool
- windows-deploy
- windows-smoke-tests
- windows-cats
- windows-delete-deployment
- fips-acquire-pool
- fips-deploy
- fips-smoke-tests
- fips-cats
- fips-delete-deployment
- bless-manifest
- ship-it-patch
- ship-it-minor
- ship-it-major
- release-notes-template
- name: fresh-luna
jobs:
- unit-test-ops-files
- unit-test-golang-tests
- unit-test-update-releases-coverage
- lint-cf-deployment-manifest
- fresh-acquire-pool
- fresh-release-pool-manual
- fresh-deploy
- fresh-smoke-tests
- fresh-cats
- fresh-delete-deployment
- bless-manifest
- name: upgrade-trelawney
jobs:
- unit-test-ops-files
- unit-test-golang-tests
- unit-test-update-releases-coverage
- lint-cf-deployment-manifest
- upgrade-acquire-pool
- upgrade-deploy
- upgrade-smoke-tests
- upgrade-cats
- upgrade-release-pool-manual
- upgrade-delete-deployment
- bless-manifest
- name: experimental-hermione
jobs:
- unit-test-ops-files
- unit-test-golang-tests
- unit-test-update-releases-coverage
- lint-cf-deployment-manifest
- experimental-acquire-pool
- experimental-cats
- experimental-deploy
- experimental-delete-deployment
- experimental-release-pool-manual
- experimental-smoke-tests
- experimental-ops-files
- bless-manifest
- name: lite-snitch
jobs:
- unit-test-ops-files
- unit-test-golang-tests
- unit-test-update-releases-coverage
- lint-cf-deployment-manifest
- lite-acquire-pool
- lite-deploy
- lite-smoke-tests
- lite-recreate-director
- lite-release-pool-manual
- bless-manifest
- name: bbr
jobs:
- unit-test-ops-files
- unit-test-golang-tests
- unit-test-update-releases-coverage
- lint-cf-deployment-manifest
- bbr-acquire-pool
- bbr-deploy
- bbr-run-drats
- bbr-delete-deployment
- bbr-release-pool-manual
- bless-manifest
- name: windows-cedric
jobs:
- unit-test-ops-files
- unit-test-golang-tests
- unit-test-update-releases-coverage
- lint-cf-deployment-manifest
- windows-acquire-pool
- windows-release-pool-manual
- windows-deploy
- windows-smoke-tests
- windows-cats
- windows-delete-deployment
- bless-manifest
- name: fips-snape
jobs:
- unit-test-ops-files
- unit-test-golang-tests
- unit-test-update-releases-coverage
- lint-cf-deployment-manifest
- fips-acquire-pool
- fips-release-pool-manual
- fips-deploy
- fips-smoke-tests
- fips-cats
- fips-delete-deployment
- bless-manifest
- name: ship-it
jobs:
- ship-it-patch
- ship-it-minor
- ship-it-major
- release-notes-template
resource_types:
- name: terraform
type: docker-image
source:
repository: ljfranklin/terraform-resource
- name: bosh-deployment-v2
type: docker-image
source:
repository: cloudfoundry/bosh-deployment-resource
# TODO remove this resource type declaration when a final release of the resource is available
- name: bosh-io-stemcell
source:
repository: concourse/bosh-io-stemcell-resource
tag: 1.3.0
type: docker-image
resources:
- name: fresh-pool
type: pool
icon: pool
source:
uri: git@github.com:cloudfoundry/relint-ci-pools
branch: main
pool: cf-deployment/fresh
private_key: ((ard_wg_gitbot_ssh_key.private_key))
- name: upgrade-pool
type: pool
icon: pool
source:
uri: git@github.com:cloudfoundry/relint-ci-pools
branch: main
pool: cf-deployment/upgrade
private_key: ((ard_wg_gitbot_ssh_key.private_key))
- name: experimental-pool
type: pool
icon: pool
source:
uri: git@github.com:cloudfoundry/relint-ci-pools
branch: main
pool: cf-deployment/experimental
private_key: ((ard_wg_gitbot_ssh_key.private_key))
- name: lite-pool
type: pool
icon: pool
source:
uri: git@github.com:cloudfoundry/relint-ci-pools
branch: main
pool: cf-deployment/lite
private_key: ((ard_wg_gitbot_ssh_key.private_key))
- name: bbr-pool
type: pool
icon: pool
source:
uri: git@github.com:cloudfoundry/relint-ci-pools
branch: main
pool: bbr
private_key: ((ard_wg_gitbot_ssh_key.private_key))
- name: windows-pool
type: pool
icon: pool
source:
uri: git@github.com:cloudfoundry/relint-ci-pools
branch: main
pool: cf-deployment/windows
private_key: ((ard_wg_gitbot_ssh_key.private_key))
- name: fips-pool
type: pool
icon: pool
source:
uri: git@github.com:cloudfoundry/relint-ci-pools
branch: main
pool: cf-deployment/fips
private_key: ((ard_wg_gitbot_ssh_key.private_key))
- name: fips-stemcell
type: bosh-io-stemcell
icon: dna
source:
name: bosh-aws-xen-hvm-ubuntu-jammy-fips-go_agent
auth:
access_key: ((ci_dev_gcp_service_account_hmac_access_key))
secret_key: ((ci_dev_gcp_service_account_hmac_secret))
- name: relint-envs
type: git
icon: github
source:
branch: main
uri: git@github.com:cloudfoundry/relint-envs.git
private_key: ((ard_wg_gitbot_ssh_key.private_key))
- name: daily
type: time
icon: clock-outline
source:
interval: 24h
- name: cf-deployment-concourse-tasks
type: git
icon: github
source:
uri: https://github.com/cloudfoundry/cf-deployment-concourse-tasks.git
- name: runtime-ci
type: git
icon: github
source:
branch: main
uri: https://github.com/cloudfoundry/runtime-ci.git
- name: bosh-bootloader
type: git
icon: github
source:
branch: main
uri: https://github.com/cloudfoundry/bosh-bootloader
- name: cf-deployment-develop
type: git
icon: github
source:
branch: develop
uri: git@github.com:cloudfoundry/cf-deployment.git
private_key: ((ard_wg_gitbot_ssh_key.private_key))
ignore_paths:
- .envrc
- .overcommit.yml
- ISSUE_TEMPLATE.md
- PULL_REQUEST_TEMPLATE.md
- ci/**
- texts/**
- name: cf-deployment-release-candidate
type: git
icon: github
source:
branch: release-candidate
uri: git@github.com:cloudfoundry/cf-deployment.git
private_key: ((ard_wg_gitbot_ssh_key.private_key))
ignore_paths:
- .envrc
- .overcommit.yml
- ISSUE_TEMPLATE.md
- PULL_REQUEST_TEMPLATE.md
- ci/**
- texts/**
- name: cf-deployment-main
type: git
icon: github
source:
branch: main
uri: git@github.com:cloudfoundry/cf-deployment.git
private_key: ((ard_wg_gitbot_ssh_key.private_key))
ignore_paths:
- .envrc
- .overcommit.yml
- ISSUE_TEMPLATE.md
- PULL_REQUEST_TEMPLATE.md
- ci/**
- texts/**
- name: cf-deployment-all-branches
type: git
icon: github
source:
branch: develop
uri: https://github.com/cloudfoundry/cf-deployment.git
ignore_paths:
- .envrc
- .overcommit.yml
- ISSUE_TEMPLATE.md
- PULL_REQUEST_TEMPLATE.md
- ci/**
- texts/**
- name: cf-acceptance-tests-rc
type: git
icon: github
source:
branch: release-candidate
uri: https://github.com/cloudfoundry/cf-acceptance-tests.git
- name: cf-smoke-tests
type: git
icon: github
source:
uri: https://github.com/cloudfoundry/cf-smoke-tests
- name: bosh-deployment
type: git
icon: github
source:
branch: master
uri: https://github.com/cloudfoundry/bosh-deployment.git
- name: cf-deployment-version
type: semver
source:
driver: git
uri: git@github.com:cloudfoundry/cf-relint-ci-semver.git
branch: main
private_key: ((ard_wg_gitbot_ssh_key.private_key))
file: cf-deployment-version
- name: disaster-recovery-acceptance-tests
type: git
icon: github
source:
uri: https://github.com/cloudfoundry/disaster-recovery-acceptance-tests.git
- name: bbr-github-release
type: github-release
icon: github
source:
owner: cloudfoundry
repository: bosh-backup-and-restore
check_every: 5m
- name: trelawney-external-resources
type: terraform
source:
backend_type: gcs
backend_config:
bucket: trelawney-upgrade-external-resource-state
credentials: ((trelawney_gcp_service_account_json))
env_name: trelawney
jobs:
- name: unit-test-ops-files
serial: true
public: true
plan:
- get: cf-deployment-develop
trigger: true
- task: unit-test-ops-files
config:
platform: linux
image_resource:
type: docker-image
source:
repository: cloudfoundry/bosh-cli
inputs:
- name: cf-deployment-develop
params:
RUN_SEMANTIC: true
run:
dir: cf-deployment-develop
path: scripts/test
- name: validate-certs
serial: true
public: true
plan:
- in_parallel:
- get: relint-envs
trigger: true
- get: runtime-ci
trigger: true
- get: daily
trigger: true
- task: validate-certs
file: runtime-ci/tasks/check-certs/task.yml
params:
DAYS_LEFT_THRESHOLD: 16
PATH_TO_VERIFY: relint-envs
PATHS_TO_IGNORE:
- environments/ci/concourse/bbl-state/vars
- environments/dev/cdutra-plan-patch-dev/certs
- name: unit-test-golang-tests
serial: true
public: true
plan:
- get: cf-deployment-develop
trigger: true
- task: unit-test-golang-ops-files
config:
platform: linux
image_resource:
type: docker-image
source:
repository: cloudfoundry/bosh-cli
inputs:
- name: cf-deployment-develop
# params:
# RUN_SEMANTIC: true
run:
dir: cf-deployment-develop/units
path: ./test
args:
- -timeout
- 1h
- name: unit-test-update-releases-coverage
serial: true
public: true
plan:
- get: cf-deployment-develop
trigger: true
- get: runtime-ci
- task: unit-test-update-releases-coverage
config:
platform: linux
image_resource:
type: docker-image
source:
repository: cloudfoundry/bosh-cli
inputs:
- name: cf-deployment-develop
- name: runtime-ci
run:
dir: runtime-ci
path: scripts/tests/update-releases-coverage-test
- name: lint-cf-deployment-manifest
serial: false
public: true
plan:
- get: cf-deployment-develop
trigger: true
- task: lint-manifest
config:
platform: linux
image_resource:
type: docker-image
source:
repository: cloudfoundry/cf-deployment-concourse-tasks
inputs:
- name: cf-deployment-develop
run:
path: /bin/bash
args:
- -exc
- |
ruby -e "require 'yaml'; YAML.load_file('./cf-deployment-develop/cf-deployment.yml', aliases: true)"
- name: branch-freshness
public: true
plan:
- in_parallel:
- get: cf-deployment-all-branches
trigger: true
- get: runtime-ci
- task: validate-branch-freshness
file: runtime-ci/tasks/validate-branch-freshness/task.yml
input_mapping:
repo: cf-deployment-all-branches
- name: fresh-acquire-pool
serial: true
public: true
plan:
- in_parallel:
- get: cf-deployment-develop
trigger: true
passed:
- unit-test-ops-files
- lint-cf-deployment-manifest
- unit-test-golang-tests
- unit-test-update-releases-coverage
- put: fresh-pool
params: {acquire: true}
timeout: 4h
- name: fresh-release-pool-manual
public: true
plan:
- get: fresh-pool
ensure:
try:
put: fresh-pool
params: {release: fresh-pool}
- name: fresh-deploy
serial_groups: [ fresh-cats, fresh-smokes ]
public: true
plan:
- get: fresh-pool
trigger: true
passed: [fresh-acquire-pool]
- in_parallel:
- get: cf-deployment-develop
passed: [fresh-acquire-pool]
- get: cf-deployment-concourse-tasks
- get: runtime-ci
- get: relint-envs
- get: cf-smoke-tests
- task: guarantee-no-existing-cf-deployment
file: cf-deployment-concourse-tasks/bosh-delete-deployment/task.yml
input_mapping:
bbl-state: relint-envs
params:
BBL_STATE_DIR: environments/test/luna/bbl-state
DEPLOYMENT_NAME: luna-cf
IGNORE_ERRORS: true
- task: collect-ops-files
file: cf-deployment-concourse-tasks/collect-ops-files/task.yml
input_mapping:
base-ops-files: cf-deployment-develop
new-ops-files: relint-envs
params:
BASE_OPS_FILE_DIR: operations
NEW_OPS_FILES: |
environments/test/luna/rename-isolation-segment-network.yml
environments/test/luna/change-postgres-max-connections.yml
environments/test/luna/smoke-tests-timeout-scale.yml
environments/test/luna/use-operator-provided-router-tls-certificate.yml
environments/test/luna/change-deployment-name-for-nfs-test-server.yml
- task: bosh-deploy-cf
file: cf-deployment-concourse-tasks/bosh-deploy/task.yml
input_mapping:
bbl-state: relint-envs
cf-deployment: cf-deployment-develop
ops-files: collected-ops-files
vars-files: relint-envs
params:
BBL_STATE_DIR: environments/test/luna/bbl-state
SYSTEM_DOMAIN: cf.luna.env.wg-ard.ci.cloudfoundry.org
BOSHENV_iso_seg_tls_cert: ((luna-iso_lb))
BOSH_DEPLOY_ARGS: "--vars-env=BOSHENV"
OPS_FILES: |
operations/rename-network-and-deployment.yml
operations/set-bbs-active-key.yml
operations/add-persistent-isolation-segment-diego-cell.yml
operations/test/use-cflinuxfs4-compat-isolation-segment-diego-cell.yml
operations/add-persistent-isolation-segment-router.yml
operations/rename-isolation-segment-network.yml
operations/addons/enable-component-syslog.yml
operations/addons/add-system-metrics-agent.yml
operations/use-postgres.yml
operations/experimental/enable-tls-cloud-controller-postgres.yml
operations/experimental/disable-v2-api.yml
operations/change-postgres-max-connections.yml
operations/use-internal-lookup-for-route-services.yml
operations/enable-tls-on-file-server.yml
operations/test/speed-up-dynamic-asgs.yml
operations/use-cflinuxfs4-compat.yml
operations/smoke-tests-timeout-scale.yml
operations/stop-skipping-tls-validation.yml
operations/use-operator-provided-router-tls-certificate.yml
operations/enable-nfs-volume-service.yml
operations/test/enable-nfs-test-server.yml
operations/change-deployment-name-for-nfs-test-server.yml
VARS_FILES: |
environments/test/luna/deployment-name.yml
environments/test/luna/network-name.yml
environments/test/luna/bbs-key-label.yml
environments/test/luna/syslog-vars.yml
REGENERATE_CREDENTIALS: true
- task: update-integration-configs
file: cf-deployment-concourse-tasks/update-integration-configs/task.yml
params:
BBL_STATE_DIR: environments/test/luna/bbl-state
CATS_INTEGRATION_CONFIG_FILE: environments/test/luna/integration_config.json
input_mapping:
bbl-state: relint-envs
integration-configs: relint-envs
- in_parallel:
- task: ensure-api-healthy
file: runtime-ci/tasks/ensure-api-healthy/task.yml
input_mapping:
cats-integration-config: relint-envs
params:
CONFIG_FILE_PATH: environments/test/luna/integration_config.json
- task: ensure-isolation-segment-healthy
file: runtime-ci/tasks/ensure-api-healthy/task.yml
input_mapping:
cats-integration-config: updated-integration-configs
params:
CHECK_ISOLATION_SEGMENT: true
CONFIG_FILE_PATH: environments/test/luna/integration_config.json
- in_parallel:
- task: open-asgs-for-credhub
file: cf-deployment-concourse-tasks/open-asgs-for-bosh-instance-group/task.yml
input_mapping:
bbl-state: relint-envs
params:
BBL_STATE_DIR: environments/test/luna/bbl-state
BOSH_DEPLOYMENT: luna-cf
INSTANCE_GROUP_NAME: credhub
SYSTEM_DOMAIN: cf.luna.env.wg-ard.ci.cloudfoundry.org
SECURITY_GROUP_NAME: credhub
- task: open-asgs-for-uaa
file: cf-deployment-concourse-tasks/open-asgs-for-bosh-instance-group/task.yml
input_mapping:
bbl-state: relint-envs
params:
BBL_STATE_DIR: environments/test/luna/bbl-state
BOSH_DEPLOYMENT: luna-cf
INSTANCE_GROUP_NAME: uaa
SYSTEM_DOMAIN: cf.luna.env.wg-ard.ci.cloudfoundry.org
SECURITY_GROUP_NAME: uaa
- task: enable-docker-and-tasks
attempts: 2
file: cf-deployment-concourse-tasks/set-feature-flags/task.yml
input_mapping:
bbl-state: relint-envs
params:
BBL_STATE_DIR: environments/test/luna/bbl-state
SYSTEM_DOMAIN: cf.luna.env.wg-ard.ci.cloudfoundry.org
ENABLED_FEATURE_FLAGS: |
diego_cnb
diego_docker
task_creation
- task: run-nfs-broker-push-errand
file: cf-deployment-concourse-tasks/run-errand/task.yml
input_mapping:
bbl-state: relint-envs
params:
BBL_STATE_DIR: environments/test/luna/bbl-state
DEPLOYMENT_NAME: luna-cf
ERRAND_NAME: nfs-broker-push
- name: fresh-smoke-tests
public: true
serial_groups: [ fresh-smokes ]
plan:
- do:
- get: fresh-pool
passed: [ fresh-deploy ]
trigger: true
- in_parallel:
- get: relint-envs
- get: cf-deployment-develop
passed: [ fresh-deploy ]
- get: cf-deployment-concourse-tasks
timeout: 1h
- task: bosh-run-errand-smoke-tests
file: cf-deployment-concourse-tasks/run-errand/task.yml
params:
BBL_STATE_DIR: environments/test/luna/bbl-state
ERRAND_NAME: smoke_tests
DEPLOYMENT_NAME: luna-cf
input_mapping:
bbl-state: relint-envs
- name: fresh-cats
public: true
serial_groups: [ fresh-cats ]
plan:
- timeout: 4h
do:
- get: fresh-pool
trigger: true
passed: [ fresh-deploy ]
- in_parallel:
- get: cf-deployment-concourse-tasks
- get: cf-acceptance-tests-rc
- get: relint-envs
- get: cf-deployment-develop
passed: [ fresh-deploy ]
- task: update-integration-configs
file: cf-deployment-concourse-tasks/update-integration-configs/task.yml
params:
BBL_STATE_DIR: environments/test/luna/bbl-state
CATS_INTEGRATION_CONFIG_FILE: environments/test/luna/integration_config.json
input_mapping:
bbl-state: relint-envs
integration-configs: relint-envs
- task: run-cats
file: cf-deployment-concourse-tasks/run-cats/task.yml
input_mapping:
integration-config: updated-integration-configs
cf-acceptance-tests: cf-acceptance-tests-rc
params:
CONFIG_FILE_PATH: environments/test/luna/integration_config.json
CAPTURE_LOGS: true
RELINT_VERBOSE_AUTH: "true"
SKIP_REGEXP: "shows logs and metrics"
NODES: 12
- name: fresh-delete-deployment
serial: true
public: true
plan:
- timeout: 4h
do:
- get: fresh-pool
trigger: true
passed:
- fresh-cats
- fresh-smoke-tests
- in_parallel:
- get: cf-deployment-concourse-tasks
- get: relint-envs
- task: delete-deployment-cf
file: cf-deployment-concourse-tasks/bosh-delete-deployment/task.yml
input_mapping:
bbl-state: relint-envs
params:
BBL_STATE_DIR: environments/test/luna/bbl-state
DEPLOYMENT_NAME: luna-cf
IGNORE_ERRORS: true
- task: run-bosh-cleanup
file: cf-deployment-concourse-tasks/bosh-cleanup/task.yml
input_mapping:
bbl-state: relint-envs
params:
BBL_STATE_DIR: environments/test/luna/bbl-state
- put: fresh-pool
params: {release: fresh-pool}
- name: upgrade-acquire-pool
serial: true
public: true
plan:
- in_parallel:
- get: cf-deployment-develop
trigger: true
passed:
- unit-test-ops-files
- lint-cf-deployment-manifest
- unit-test-golang-tests
- unit-test-update-releases-coverage
- put: upgrade-pool
params: {acquire: true}
timeout: 4h
- name: upgrade-release-pool-manual
public: true
plan:
- get: upgrade-pool
ensure:
try:
put: upgrade-pool
params: {release: upgrade-pool}
- name: upgrade-deploy
public: true
serial_groups: [ upgrade-cats, upgrade-smokes ]
plan:
- get: upgrade-pool
trigger: true
passed: [upgrade-acquire-pool]
- in_parallel:
- get: runtime-ci
- get: cf-deployment-concourse-tasks
- get: cf-deployment-main
- get: cf-deployment-develop
passed: [upgrade-acquire-pool]
- get: relint-envs
- task: check-stemcell-versions
file: runtime-ci/tasks/check-stemcell-versions/task.yml
params:
BRANCH_TO_COMPARE: develop
- task: guarantee-no-existing-cf-deployment
file: cf-deployment-concourse-tasks/bosh-delete-deployment/task.yml
input_mapping:
bbl-state: relint-envs
params:
BBL_STATE_DIR: environments/test/trelawney/bbl-state
IGNORE_ERRORS: true
- task: generate-external-db-vars-file
file: runtime-ci/tasks/generate-external-db-vars-file/task.yml
input_mapping:
bbl-state: relint-envs
params:
BBL_STATE_DIR: environments/test/trelawney/bbl-state
GCP_PROJECT_ID: cf-deployments-wg
GCP_REGION: europe-west3
GCP_SERVICE_ACCOUNT_JSON: ((trelawney_gcp_service_account_json))
- try:
put: trelawney-external-resources
params:
action: destroy
terraform_source: relint-envs/environments/test/trelawney/external-resource-templates
var_files:
- vars-file/db.tfvars
get_params:
action: destroy
- put: trelawney-external-resources
params:
terraform_source: relint-envs/environments/test/trelawney/external-resource-templates
delete_on_failure: true
var_files:
- vars-file/db.tfvars
- task: collect-ops-files-latest-release
file: cf-deployment-concourse-tasks/collect-ops-files/task.yml
input_mapping:
base-ops-files: cf-deployment-main
new-ops-files: relint-envs
params:
BASE_OPS_FILE_DIR: operations
NEW_OPS_FILES: |
environments/test/trelawney/add-external-ips-for-cloud-sql-db.yml
environments/test/trelawney/scale-log-api-to-4.yml
- task: setup-external-ip-db-vars
file: runtime-ci/tasks/generate-external-ip-db-vars/task.yml
input_mapping:
bbl-state: relint-envs
output_mapping:
updated-bbl-state: updated-bbl-state-with-db-vars
params:
BBL_STATE_DIR: environments/test/trelawney/bbl-state
VARS_DIR: environments/test/trelawney
- task: bosh-deploy-cf-latest-release
attempts: 2
file: cf-deployment-concourse-tasks/bosh-deploy/task.yml
input_mapping:
bbl-state: relint-envs
cf-deployment: cf-deployment-main
ops-files: collected-ops-files
vars-files: updated-bbl-state-with-db-vars
params:
BBL_STATE_DIR: environments/test/trelawney/bbl-state
SYSTEM_DOMAIN: cf.trelawney.env.wg-ard.ci.cloudfoundry.org
OPS_FILES: |
operations/use-compiled-releases.yml
operations/use-external-dbs.yml
operations/add-external-ips-for-cloud-sql-db.yml
operations/experimental/colocate-smoke-tests-on-cc-worker.yml
operations/experimental/disable-v2-api.yml
operations/set-cpu-weight.yml
operations/enable-cpu-throttling.yml
operations/use-external-blobstore.yml
operations/use-gcs-blobstore-service-account.yml
operations/enable-service-discovery.yml
operations/add-persistent-isolation-segment-diego-cell.yml
operations/scale-log-api-to-4.yml
operations/use-internal-lookup-for-route-services.yml
VARS_FILES: |
environments/test/trelawney/external-db-vars.yml
environments/test/trelawney/external-public-ip-vars.yml
environments/test/trelawney/external-db-host-vars.yml
environments/test/trelawney/gcs-vars.yml
REGENERATE_CREDENTIALS: true
- task: bosh-run-errand-smoke-tests-latest-release
file: cf-deployment-concourse-tasks/run-errand/task.yml
params:
BBL_STATE_DIR: environments/test/trelawney/bbl-state
ERRAND_NAME: smoke_tests
INSTANCE: cc-worker/first
input_mapping:
bbl-state: relint-envs
- task: add-tcp-domain
file: runtime-ci/tasks/add-tcp-domain/task.yml
input_mapping:
bbl-state: relint-envs
params:
BBL_STATE_DIR: environments/test/trelawney/bbl-state
SYSTEM_DOMAIN: cf.trelawney.env.wg-ard.ci.cloudfoundry.org
- task: collect-ops-files-develop
file: cf-deployment-concourse-tasks/collect-ops-files/task.yml
input_mapping:
base-ops-files: cf-deployment-develop
new-ops-files: relint-envs
params:
BASE_OPS_FILE_DIR: operations
NEW_OPS_FILES: |
environments/test/trelawney/add-external-ips-for-cloud-sql-db.yml
environments/test/trelawney/scale-log-api-to-4.yml
- task: bosh-deploy-cf-develop
attempts: 1
file: cf-deployment-concourse-tasks/bosh-deploy/task.yml
input_mapping:
bbl-state: relint-envs
cf-deployment: cf-deployment-develop
ops-files: collected-ops-files
vars-files: updated-bbl-state-with-db-vars
params:
BBL_STATE_DIR: environments/test/trelawney/bbl-state
SYSTEM_DOMAIN: cf.trelawney.env.wg-ard.ci.cloudfoundry.org
OPS_FILES: |
operations/use-compiled-releases.yml
operations/use-external-dbs.yml
operations/add-external-ips-for-cloud-sql-db.yml
operations/experimental/colocate-smoke-tests-on-cc-worker.yml
operations/experimental/disable-v2-api.yml
operations/set-cpu-weight.yml
operations/enable-cpu-throttling.yml
operations/use-external-blobstore.yml
operations/use-gcs-blobstore-service-account.yml
operations/enable-service-discovery.yml
operations/add-persistent-isolation-segment-diego-cell.yml
operations/scale-log-api-to-4.yml
operations/use-internal-lookup-for-route-services.yml
operations/test/speed-up-dynamic-asgs.yml
VARS_FILES: |
environments/test/trelawney/external-db-vars.yml
environments/test/trelawney/external-public-ip-vars.yml
environments/test/trelawney/external-db-host-vars.yml
environments/test/trelawney/gcs-vars.yml
DEPLOY_WITH_UPTIME_MEASUREMENTS: true
FAIL_ON_DOWNTIME: true
HTTP_AVAILABILITY_THRESHOLD: 0
APP_PUSHABILITY_THRESHOLD: 10
RECENT_LOGS_THRESHOLD: 10000
STREAMING_LOGS_THRESHOLD: 10000
APP_STATS_THRESHOLD: 10
- in_parallel:
- task: open-asgs-for-credhub
file: cf-deployment-concourse-tasks/open-asgs-for-bosh-instance-group/task.yml
input_mapping:
bbl-state: relint-envs
params:
BBL_STATE_DIR: environments/test/trelawney/bbl-state
INSTANCE_GROUP_NAME: credhub
SYSTEM_DOMAIN: cf.trelawney.env.wg-ard.ci.cloudfoundry.org
SECURITY_GROUP_NAME: credhub
- task: open-asgs-for-uaa
file: cf-deployment-concourse-tasks/open-asgs-for-bosh-instance-group/task.yml
input_mapping:
bbl-state: relint-envs
params:
BBL_STATE_DIR: environments/test/trelawney/bbl-state
INSTANCE_GROUP_NAME: uaa
SYSTEM_DOMAIN: cf.trelawney.env.wg-ard.ci.cloudfoundry.org
SECURITY_GROUP_NAME: uaa
- task: enable-docker-and-tasks
file: cf-deployment-concourse-tasks/set-feature-flags/task.yml
input_mapping:
bbl-state: relint-envs
params:
BBL_STATE_DIR: environments/test/trelawney/bbl-state
SYSTEM_DOMAIN: cf.trelawney.env.wg-ard.ci.cloudfoundry.org
ENABLED_FEATURE_FLAGS: |
diego_docker
task_creation
service_instance_sharing
- name: upgrade-smoke-tests
public: true
serial_groups: [ upgrade-smokes ]
plan:
- do:
- get: upgrade-pool
passed: [ upgrade-deploy ]
trigger: true
- in_parallel:
- get: relint-envs
- get: cf-deployment-develop
passed: [ upgrade-deploy ]
- get: cf-deployment-concourse-tasks
timeout: 1h
- task: bosh-run-errand-smoke-tests
file: cf-deployment-concourse-tasks/run-errand/task.yml
params:
BBL_STATE_DIR: environments/test/trelawney/bbl-state
ERRAND_NAME: smoke_tests
INSTANCE: cc-worker/first
input_mapping:
bbl-state: relint-envs
- name: upgrade-cats
public: true
serial_groups: [ upgrade-cats ]