-
Notifications
You must be signed in to change notification settings - Fork 3
/
variables.tf
398 lines (337 loc) · 11.4 KB
/
variables.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
variable "enabled" {
type = bool
default = true
description = "Variable indicating whether deployment is enabled"
}
variable "cluster_identity_oidc_issuer" {
type = string
description = "The OIDC Identity issuer for the cluster"
}
variable "cluster_identity_oidc_issuer_arn" {
type = string
description = "The OIDC Identity issuer ARN for the cluster that can be used to associate IAM roles with a service account"
}
variable "helm_chart_name" {
type = string
default = "aws-ebs-csi-driver"
description = "Helm chart name to be installed"
}
variable "helm_chart_version" {
type = string
default = "2.10.1"
description = "Version of the Helm chart"
}
variable "helm_release_name" {
type = string
default = "aws-ebs-csi-driver"
description = "Helm release name"
}
variable "helm_repo_url" {
type = string
default = "https://kubernetes-sigs.github.io/aws-ebs-csi-driver"
description = "Helm repository"
}
variable "helm_create_namespace" {
type = bool
default = true
description = "Create the namespace if it does not yet exist"
}
variable "namespace" {
type = string
default = "kube-system"
description = "The K8s namespace in which the AWS EBS CSI driver service account has been created"
}
variable "settings" {
type = map(any)
default = {}
description = "Additional helm sets which will be passed to the Helm chart values, see https://github.com/kubernetes-sigs/aws-ebs-csi-driver/tree/master/charts/aws-ebs-csi-driver"
}
variable "values" {
type = string
default = ""
description = "Additional yaml encoded values which will be passed to the Helm chart, see https://github.com/kubernetes-sigs/aws-ebs-csi-driver/tree/master/charts/aws-ebs-csi-driver"
}
variable "service_account_create" {
type = bool
default = true
description = "Whether to create Service Account"
}
variable "service_account_name" {
type = string
default = "aws-ebs-csi-driver"
description = "The k8s EBS CSI driver service account name"
}
variable "irsa_role_create" {
type = bool
default = true
description = "Whether to create IRSA role and annotate service account"
}
variable "irsa_policy_enabled" {
type = bool
default = true
description = "Whether to create opinionated policy to allow operations on specified zones in `policy_allowed_zone_ids`."
}
variable "irsa_additional_policies" {
type = map(string)
default = {}
description = "Map of the additional policies to be attached to default role. Where key is arbitrary id and value is policy arn."
}
variable "irsa_role_name_prefix" {
type = string
default = "ebs-csi-controller"
description = "The IRSA role name prefix for AWS EBS CSI controller"
}
variable "irsa_tags" {
type = map(string)
default = {}
description = "IRSA resources tags"
}
variable "storage_classes_create" {
type = bool
default = true
description = "Whether to create Storage Classes"
}
variable "storage_classes" {
type = list(any)
default = [
{
"name" : "ebs-csi-gp3"
"annotations" : {
"storageclass.kubernetes.io/is-default-class" : "true"
}
"allowVolumeExpansion" : true
"volumeBindingMode" : "WaitForFirstConsumer"
"reclaimPolicy" : "Delete"
"parameters" : {
"type" : "gp3"
"encrypted" : "true"
}
}
]
description = "List of the custom Storage Classes definitions"
}
variable "argo_namespace" {
type = string
default = "argo"
description = "Namespace to deploy ArgoCD application CRD to"
}
variable "argo_enabled" {
type = bool
default = false
description = "If set to true, the module will be deployed as ArgoCD application, otherwise it will be deployed as a Helm release"
}
variable "argo_helm_enabled" {
type = bool
default = false
description = "If set to true, the ArgoCD Application manifest will be deployed using Kubernetes provider as a Helm release. Otherwise it'll be deployed as a Kubernetes manifest. See Readme for more info"
}
variable "argo_destination_server" {
type = string
default = "https://kubernetes.default.svc"
description = "Destination server for ArgoCD Application"
}
variable "argo_project" {
type = string
default = "default"
description = "ArgoCD Application project"
}
variable "argo_info" {
type = list(object({
name = string
value = string
}))
default = [{
"name" = "terraform"
"value" = "true"
}]
description = "ArgoCD info manifest parameter"
}
variable "argo_sync_policy" {
type = any
description = "ArgoCD syncPolicy manifest parameter"
default = {}
}
variable "argo_metadata" {
type = any
default = {
"finalizers" : [
"resources-finalizer.argocd.argoproj.io"
]
}
description = "ArgoCD Application metadata configuration. Override or create additional metadata parameters"
}
variable "argo_apiversion" {
type = string
default = "argoproj.io/v1alpha1"
description = "ArgoCD Appliction apiVersion"
}
variable "argo_spec" {
type = any
default = {}
description = "ArgoCD Application spec configuration. Override or create additional spec parameters"
}
variable "argo_helm_values" {
type = string
default = ""
description = "Value overrides to use when deploying argo application object with helm"
}
variable "argo_kubernetes_manifest_computed_fields" {
type = list(string)
default = ["metadata.labels", "metadata.annotations"]
description = "List of paths of fields to be handled as \"computed\". The user-configured value for the field will be overridden by any different value returned by the API after apply."
}
variable "argo_kubernetes_manifest_field_manager_name" {
type = string
default = "Terraform"
description = "The name of the field manager to use when applying the kubernetes manifest resource. Defaults to Terraform"
}
variable "argo_kubernetes_manifest_field_manager_force_conflicts" {
type = bool
default = false
description = "Forcibly override any field manager conflicts when applying the kubernetes manifest resource"
}
variable "argo_kubernetes_manifest_wait_fields" {
type = map(string)
default = {}
description = "A map of fields and a corresponding regular expression with a pattern to wait for. The provider will wait until the field matches the regular expression. Use * for any value."
}
variable "helm_repo_key_file" {
type = string
default = ""
description = "Helm repositories cert key file"
}
variable "helm_repo_cert_file" {
type = string
default = ""
description = "Helm repositories cert file"
}
variable "helm_repo_ca_file" {
type = string
default = ""
description = "Helm repositories cert file"
}
variable "helm_repo_username" {
type = string
default = ""
description = "Username for HTTP basic authentication against the helm repository"
}
variable "helm_repo_password" {
type = string
default = ""
description = "Password for HTTP basic authentication against the helm repository"
}
variable "helm_devel" {
type = bool
default = false
description = "Use helm chart development versions, too. Equivalent to version '>0.0.0-0'. If version is set, this is ignored"
}
variable "helm_package_verify" {
type = bool
default = false
description = "Verify the package before installing it. Helm uses a provenance file to verify the integrity of the chart; this must be hosted alongside the chart"
}
variable "helm_keyring" {
type = string
default = "~/.gnupg/pubring.gpg"
description = "Location of public keys used for verification. Used only if helm_package_verify is true"
}
variable "helm_timeout" {
type = number
default = 300
description = "Time in seconds to wait for any individual kubernetes operation (like Jobs for hooks)"
}
variable "helm_disable_webhooks" {
type = bool
default = false
description = "Prevent helm chart hooks from running"
}
variable "helm_reset_values" {
type = bool
default = false
description = "When upgrading, reset the values to the ones built into the helm chart"
}
variable "helm_reuse_values" {
type = bool
default = false
description = "When upgrading, reuse the last helm release's values and merge in any overrides. If 'helm_reset_values' is specified, this is ignored"
}
variable "helm_force_update" {
type = bool
default = false
description = "Force helm resource update through delete/recreate if needed"
}
variable "helm_recreate_pods" {
type = bool
default = false
description = "Perform pods restart during helm upgrade/rollback"
}
variable "helm_cleanup_on_fail" {
type = bool
default = false
description = "Allow deletion of new resources created in this helm upgrade when upgrade fails"
}
variable "helm_release_max_history" {
type = number
default = 0
description = "Maximum number of release versions stored per release"
}
variable "helm_atomic" {
type = bool
default = false
description = "If set, installation process purges chart on fail. The wait flag will be set automatically if atomic is used"
}
variable "helm_wait" {
type = bool
default = false
description = "Will wait until all helm release resources are in a ready state before marking the release as successful. It will wait for as long as timeout"
}
variable "helm_wait_for_jobs" {
type = bool
default = false
description = "If wait is enabled, will wait until all helm Jobs have been completed before marking the release as successful. It will wait for as long as timeout"
}
variable "helm_skip_crds" {
type = bool
default = false
description = "If set, no CRDs will be installed before helm release"
}
variable "helm_render_subchart_notes" {
type = bool
default = true
description = "If set, render helm subchart notes along with the parent"
}
variable "helm_disable_openapi_validation" {
type = bool
default = false
description = "If set, the installation process will not validate rendered helm templates against the Kubernetes OpenAPI Schema"
}
variable "helm_dependency_update" {
type = bool
default = false
description = "Runs helm dependency update before installing the chart"
}
variable "helm_replace" {
type = bool
default = false
description = "Re-use the given name of helm release, only if that name is a deleted release which remains in the history. This is unsafe in production"
}
variable "helm_description" {
type = string
default = ""
description = "Set helm release description attribute (visible in the history)"
}
variable "helm_lint" {
type = bool
default = false
description = "Run the helm chart linter during the plan"
}
variable "helm_set_sensitive" {
type = map(any)
default = {}
description = "Value block with custom sensitive values to be merged with the values yaml that won't be exposed in the plan's diff"
}
variable "helm_postrender" {
type = map(any)
default = {}
description = "Value block with a path to a binary file to run after helm renders the manifest which can alter the manifest contents"
}