-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinputs.tf
690 lines (605 loc) · 22.1 KB
/
inputs.tf
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
variable deploy_linkerd {
type = bool
default = true
description = "Mesh Applications with Linkerd"
}
variable high_availability {
type = bool
default = false
description = "Install Linkerd in high availability (HA) mode"
}
variable cert_validity_period_hours {
description = "The number of hours after initial issuing that the certificate will become invalid."
type = number
default = 8760 # 1 year
}
variable linkerd_additional_configuration_values {
type = list(string)
default = []
description = "List of values in raw yaml to pass to helm. Values will be merged, in order, as Helm does with multiple -f options. Example: [\"enablePodAntiAffinity: false\"]"
}
variable kubernetes_config_file {
description = "Kubernetes config file path."
type = string
default = "~/.kube/config"
}
variable kubernetes_config_context {
description = "Kubernetes config context."
type = string
default = ""
}
variable nginx_extra_values {
type = map(string)
description = "MAP of Helm values for the NGINX stack"
}
variable deploy_ingress_nginx {
type = bool
default = false
description = "Deploy Ingress Nginx proxy"
}
variable loki_extra_values {
type = map(string)
description = "MAP of Helm values for the Loki stack"
}
variable grafana_prometheus_extra_values {
type = map(string)
description = "MAP of Helm values for the Grafana/Prometheus stack"
}
variable grafana_additional_data_sources {
type = list(any)
description = "List of MAP specifying additional data sources for grafana, defaults to Loki data source"
}
variable promtail_extra_values {
type = map(string)
description = "MAP of Helm values for the Promtail stack"
}
variable deploy_grafana_prometheus {
type = bool
default = true
description = "Deploy Grafana and Prometheus stack"
}
variable deploy_loki {
type = bool
default = true
description = "Deploy Loki stack"
}
variable deploy_promtail {
type = bool
default = true
description = "Deploy Promtail stack"
}
variable deploy_argo_workflows {
type = bool
default = true
description = "Deploy Argo Workflows"
}
variable namespace_annotations {
type = map(string)
description = "MAP of custom defined namespace annotations"
}
variable deploy_titiler {
description = "Whether or not to include the TiTiler tiling module resources"
type = bool
default = false
}
variable deploy_stacfastapi {
description = "Whether or not to deploy the STAC-FastAPI module resources"
type = bool
default = false
}
variable deploy_staccollection {
description = "Whether or not to deploy the STAC-collection module resources"
type = bool
default = false
}
variable deploy_swoop_api {
description = "Whether or not to include the SWOOP API module resources"
type = bool
default = true
}
variable deploy_swoop_caboose {
description = "Whether or not to include the SWOOP Caboose module resources"
type = bool
default = true
}
variable deploy_swoop_conductor {
description = "Whether or not to include the SWOOP Conductor module resources"
type = bool
default = true
}
variable deploy_db_migration {
description = "Whether or not to include the DB Migration capability for SWOOP resources"
type = bool
default = true
}
variable swoop_bundle_version {
type = string
description = "Version of SWOOP Bundle Helm Chart"
default = "0.1.0"
}
variable deploy_postgres {
description = "Whether or not to include the Postgres module resources"
type = bool
default = true
}
variable deploy_db_init {
description = "Whether or not to deploy the Postgres initialization script"
type = bool
default = true
}
variable deploy_minio {
description = "Whether or not to include the MinIO module resources"
type = bool
default = true
}
variable deploy_workflow_config {
description = "Whether or not to include the SWOOP workflow configuration module resources"
type = bool
default = true
}
variable postgres_version {
type = string
description = "Version of Postgres Helm Chart"
default = "0.1.0"
}
variable db_init_version {
type = string
description = "Version of DB Init Helm Chart"
default = "0.1.0"
}
variable minio_version {
type = string
description = "Version of MinIO Helm Chart"
default = "0.1.0"
}
variable swoop_api_additional_configuration_values {
type = list(string)
default = []
description = "List of values in raw yaml to pass to helm. Values will be merged, in order, as Helm does with multiple -f options."
}
variable custom_swoop_api_values_yaml {
type = string
default = ""
description = "Path to custom SWOOP API values.yaml"
}
variable postgres_additional_configuration_values {
type = list(string)
default = []
description = "List of values in raw yaml to pass to helm. Values will be merged, in order, as Helm does with multiple -f options."
}
variable custom_postgres_values_yaml {
type = string
default = ""
description = "Path to custom Postgres values.yaml"
}
variable minio_additional_configuration_values {
type = list(string)
default = []
description = "List of values in raw yaml to pass to helm. Values will be merged, in order, as Helm does with multiple -f options."
}
variable custom_minio_values_yaml {
type = string
default = ""
description = "Path to custom MinIO values.yaml"
}
variable ingress_nginx_additional_configuration_values {
type = list(string)
default = []
description = "List of values in raw yaml to pass to helm. Values will be merged, in order, as Helm does with multiple -f options."
}
variable custom_ingress_nginx_values_yaml {
type = string
default = ""
description = "Path to custom MinIO values.yaml"
}
variable ingress_nginx_version {
type = string
description = "Version of Ingress NGINX Helm Chart"
default = "4.7.1"
}
variable custom_postgres_input_map {
type = map(any)
description = "Input values for Postgres Helm Chart"
default = {
"container.port" = 5432
"deployment.name" = "postgres"
"image.repository" = "quay.io/element84/swoop-db"
"image.tag" = "latest"
"local-path-provisioner.enabled" = true
"local-path-provisioner.singleNamespace" = false
"local-path-provisioner.storageClass.provisionerName" = "filmdrop.io/local-postgres-path-provisioner"
"local-path-provisioner.storageClass.name" = "local-path-class-postgres"
"local-path-provisioner.configmap.name" = "local-path-config-postgres"
"migration.imagePullPolicy" = "Always"
"migration.jobName" = "migration-job"
"migration.version" = 8
"migration.no_wait" = false
"migration.rollback" = false
"migration.image.repository" = "quay.io/element84/swoop-db"
"migration.image.tag" = "latest"
"replicaCount" = 1
"service.type" = "ClusterIP"
"service.port" = 5432
"service.targetPort" = 5432
"service.name" = "postgres"
"service.dbName" = "swoop"
"service.authMethod" = "trust"
"service.createDBAdminSecret" = false
"service.dbUser" = ""
"service.dbPassword" = ""
"service.createOwnerRoleSecret" = false
"service.ownerRoleUsername" = ""
"service.ownerRolePassword" = ""
"service.createApiRoleSecret" = false
"service.apiRoleUsername" = ""
"service.apiRolePassword" = ""
"service.createCabooseRoleSecret" = false
"service.cabooseRoleUsername" = ""
"service.cabooseRolePassword" = ""
"service.createConductorRoleSecret" = false
"service.conductorRoleUsername" = ""
"service.conductorRolePassword" = ""
"service.sslMode" = "disable"
"service.schemaVersionTable" = "swoop.schema_version"
"storage.size" = "256M"
"storage.volumeBindingMode" = "WaitForFirstConsumer"
"storage.provisioner" = "filmdrop.io/local-postgres-path-provisioner"
"storage.retainPersistentVolume" = true
"storage.storageClassName" = "postgres-retain"
}
}
variable dbadmin_username {
description = "DB Admin username"
type = string
default = ""
sensitive = true
}
variable dbadmin_password {
description = "Password for DB Admin"
type = string
default = ""
sensitive = true
}
variable dbadmin_secret {
description = "Kubernetes Secret name of DB Admin credentials"
type = string
default = "postgres-secret-admin-role"
sensitive = true
}
variable owner_username {
description = "Username for Owner role"
type = string
default = ""
sensitive = true
}
variable owner_password {
description = "Password for Owner role"
type = string
default = ""
}
variable owner_secret {
description = "Kubernetes Secret name of Owner credentials"
type = string
default = "postgres-secret-owner-role"
sensitive = true
}
variable api_username {
description = "Username for API role"
type = string
default = ""
sensitive = true
}
variable api_password {
description = "Password for API role"
type = string
default = ""
sensitive = true
}
variable api_secret {
description = "Kubernetes Secret name of API credentials"
type = string
default = "postgres-secret-api-role"
sensitive = true
}
variable caboose_username {
description = "Username for Caboose role"
type = string
default = ""
sensitive = true
}
variable caboose_password {
description = "Password for Caboose role"
type = string
default = ""
sensitive = true
}
variable caboose_secret {
description = "Kubernetes Secret name of Caboose credentials"
type = string
default = "postgres-secret-caboose-role"
sensitive = true
}
variable conductor_username {
description = "Username for Conductor role"
type = string
default = ""
sensitive = true
}
variable conductor_password {
description = "Password for Conductor role"
type = string
default = ""
sensitive = true
}
variable conductor_secret {
description = "Kubernetes Secret name of Conductor credentials"
type = string
default = "postgres-secret-conductor-role"
sensitive = true
}
variable custom_minio_input_map {
type = map(any)
description = "Input values for MinIO Helm Chart"
default = {
"container.port" = 9000
"container.servicePort" = 9001
"deployment.name" = "minio"
"image.repository" = "quay.io/minio/minio"
"image.tag" = "latest"
"local-path-provisioner.enabled" = true
"local-path-provisioner.singleNamespace" = false
"local-path-provisioner.storageClass.provisionerName" = "filmdrop.io/local-minio-path-provisioner"
"local-path-provisioner.storageClass.name" = "local-path-class-minio"
"local-path-provisioner.configmap.name" = "local-path-config-minio"
"replicaCount" = 1
"service.type" = "ClusterIP"
"service.port" = 9000
"service.targetPort" = 9000
"service.servicePort" = 9001
"service.serviceTargetPort" = 9001
"service.name" = "minio"
"service.bucketName" = "swoop"
"service.accessKeyId" = ""
"service.secretAccessKey" = ""
"service.createSecret" = false
"storage.size" = "256M"
"storage.volumeBindingMode" = "WaitForFirstConsumer"
"storage.provisioner" = "filmdrop.io/local-minio-path-provisioner"
"storage.retainPersistentVolume" = true
"storage.storageClassName" = "minio-retain"
}
}
variable minio_access_key {
description = "Object Storage accessKeyId credential"
type = string
default = ""
sensitive = true
}
variable minio_secret_access_key {
description = "Object Storage secretAccessKey credential"
type = string
default = ""
sensitive = true
}
variable minio_secret {
description = "Object Storage Kubernetes Secret name for credentials"
type = string
default = "minio-secret-credentials"
sensitive = true
}
variable custom_swoop_input_map {
type = map(any)
description = "Input values for SWOOP Bundle Helm Chart"
default = {
"swoop.api.executionDir" = "s3://swoop/execution"
"swoop.api.configFile" = "workflow-config.yml"
"swoop.api.serviceAccount" = "swoop-api"
"swoop.caboose.configFile" = "/opt/swoop-go/fixtures/swoop-config.yml"
"swoop.caboose.serviceAccount" = "argo"
"swoop.caboose.argo.crdsInstall" = true
"swoop.caboose.argo.objectCounts" = 5
"swoop.conductor.configFile" = "/opt/swoop-go/fixtures/swoop-config.yml"
"swoop.conductor.serviceAccount" = "argo"
"swoop.conductor.argo.enabled" = false
"swoop.conductor.argo.crdsInstall" = false
"swoop.conductor.argo.objectCounts" = 5
"swoop.conductor.instanceName" = "main"
"swoop.bundle.serviceAccount" = "swoop-bundle"
}
}
variable custom_swoop_api_service_input_map {
type = map(any)
description = "Input values for SWOOP API Helm Chart"
default = {
"container.port" = 8000
"deployment.name" = "swoop-api"
"image.repository" = "quay.io/element84/swoop"
"image.tag" = "latest"
"service.type" = "ClusterIP"
"service.port" = 8000
"service.targetPort" = 8000
"service.name" = "swoop-api"
"replicaCount" = 1
}
}
variable custom_swoop_caboose_service_input_map {
type = map(any)
description = "Input values for SWOOP Caboose Helm Chart"
default = {
"container.port" = 8000
"deployment.name" = "swoop-caboose"
"image.repository" = "quay.io/element84/swoop-go"
"image.tag" = "latest"
"service.type" = "ClusterIP"
"service.port" = 8000
"service.targetPort" = 8000
"service.name" = "swoop-caboose"
"replicaCount" = 1
}
}
variable custom_swoop_conductor_service_input_map {
type = map(any)
description = "Input values for SWOOP Conductor Helm Chart"
default = {
"container.port" = 8000
"deployment.name" = "swoop-conductor"
"image.repository" = "quay.io/element84/swoop-go"
"image.tag" = "latest"
"service.type" = "ClusterIP"
"service.port" = 8000
"service.targetPort" = 8000
"service.name" = "swoop-conductor"
"replicaCount" = 1
}
}
variable custom_stac_fastapi_input_map {
type = map(any)
description = "Input values for STAC-FastAPI Helm Chart"
default = {
"local-path-provisioner.enabled" = true
"local-path-provisioner.singleNamespace" = false
"local-path-provisioner.storageClass.provisionerName" = "filmdrop.io/local-pgstac-path-provisioner"
"local-path-provisioner.storageClass.name" = "local-path-class-pgstac"
"local-path-provisioner.configmap.name" = "local-path-config-pgstac"
"pgStac.container.port" = 5432
"pgStac.deployment.name" = "pgstac"
"pgStac.image.repository" = "quay.io/element84/pgstac"
"pgStac.image.tag" = "latest"
"pgStac.enabled" = true
"pgStac.replicaCount" = 1
"pgStac.service.type" = "ClusterIP"
"pgStac.service.port" = 5439
"pgStac.service.targetPort" = 5432
"pgStac.service.name" = "pgstac"
"pgStac.dbName" = "postgis"
"pgStac.dbHost" = ""
"pgStac.dbUser" = ""
"pgStac.dbPassword" = ""
"pgStac.createPgStacSecret" = false
"pgStac.storage.size" = "256M"
"pgStac.storage.volumeBindingMode" = "WaitForFirstConsumer"
"pgStac.storage.provisioner" = "filmdrop.io/local-pgstac-path-provisioner"
"pgStac.storage.retainPersistentVolume" = true
"pgStac.storage.storageClassName" = "pgstac-retain"
"stacFastApi.container.port" = 8080
"stacFastApi.deployment.name" = "stac-fastapi-pgstac"
"stacFastApi.image.repository" = "ghcr.io/stac-utils/stac-fastapi-pgstac"
"stacFastApi.image.tag" = "main"
"stacFastApi.replicaCount" = 1
"stacFastApi.service.type" = "ClusterIP"
"stacFastApi.service.port" = 8080
"stacFastApi.service.targetPort" = 8080
"stacFastApi.service.name" = "stac-fastapi-pgstac"
"stacFastApi.service.serviceserviceAccount" = "stac-fastapi-pgstac"
}
}
variable stac_fastapi_username {
description = "Username for STAC-FastAPI role"
type = string
default = ""
sensitive = true
}
variable stac_fastapi_password {
description = "Password for STAC-FastAPI role"
type = string
default = ""
sensitive = true
}
variable stac_fastapi_secret {
description = "Kubernetes Secret name of STAC-FastAPI credentials"
type = string
default = "stac-fastapi-secret-credentials"
sensitive = true
}
variable stac_fastapi_additional_configuration_values {
type = list(string)
default = []
description = "List of values in raw yaml to pass to helm. Values will be merged, in order, as Helm does with multiple -f options."
}
variable custom_stac_fastapi_values_yaml {
type = string
default = ""
description = "Path to custom STAC-FastAPI values.yaml"
}
variable aws_access_key {
description = "AWS Access Key ID"
type = string
default = ""
sensitive = true
}
variable aws_secret_access_key {
description = "AWS Secret Access Key"
type = string
default = ""
sensitive = true
}
variable aws_region {
description = "AWS Region"
type = string
default = ""
sensitive = true
}
variable aws_session_token {
description = "AWS Session Token"
type = string
default = ""
sensitive = true
}
variable s3_secret {
description = "S3 Object Storage Kubernetes Secret name for credentials"
type = string
default = "copy-stac-asset-s3-secret"
sensitive = true
}
variable s3_secret_namespace {
description = "S3 Object Storage Kubernetes Secret namespace for credentials"
type = string
default = "swoop"
sensitive = true
}
variable create_s3_secret {
description = "boolean specifying if a secret will be created"
type = bool
default = true
}
variable custom_swoop_workflow_config_map {
type = map(any)
description = "Input values for SWOOP Workflow Config Chart"
default = {
"serviceAccountName" = "argo"
"mirrorWorkflowServiceAccountName" = "argo"
"copyAssetsTemplateTaskServiceAccountName" = "argo"
}
}
variable swoop_workflow_config_additional_configuration_values {
type = list(string)
default = []
description = "List of values in raw yaml to pass to helm. Values will be merged, in order, as Helm does with multiple -f options."
}
variable custom_swoop_workflow_config_values_yaml {
type = string
default = ""
description = "Path to custom Workflow Config values.yaml"
}
variable workflow_config_version {
type = string
description = "Version of Workflow Config Helm Chart"
default = "0.1.0"
}
variable swoop_namespace {
description = "Name of SWOOP Namespace"
type = string
default = "swoop"
}
variable swoop_workflow_output_s3_bucket {
type = string
description = "Output S3 Bucket for SWOOP initiated Workflows"
default = ""
sensitive = true
}
variable swoop_sa_iam_role {
type = string
description = "IAM Role for SWOOP Service Account"
default = ""
sensitive = true
}