generated from lablabs/terraform-aws-eks-universal-addon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables-addon.tf
342 lines (283 loc) · 11.2 KB
/
variables-addon.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
# IMPORTANT: This file is synced with the "terraform-aws-eks-universal-addon" module. Any changes to this file might be overwritten upon the next release of that module.
# ================ common variables (required) ================
variable "helm_chart_name" {
type = string
default = null
description = "Helm chart name to be installed. Defaults to `local.addon.name` (required)."
}
variable "helm_chart_version" {
type = string
default = null
description = "Version of the Helm chart. Defaults to `local.addon.helm_chart_version` (required)."
}
variable "helm_release_name" {
type = string
default = null
description = "Helm release name. Defaults to `local.addon.name` (required)."
}
variable "helm_repo_url" {
type = string
default = null
description = "Helm repository. Defaults to `local.addon.helm_repo_url` (required)."
}
variable "helm_create_namespace" {
type = bool
default = null
description = "Create the namespace if it does not yet exist. Defaults to `true`."
}
variable "namespace" {
type = string
default = null
description = "The Kubernetes Namespace in which the Helm chart will be installed. Defaults to `local.addon.name`."
}
variable "settings" {
type = map(any)
default = null
description = "Additional Helm sets which will be passed to the Helm chart values. Defaults to `{}`."
}
variable "values" {
type = string
default = null
description = "Additional yaml encoded values which will be passed to the Helm chart. Defaults to `\"\"`."
}
# ================ argo variables (required) ================
variable "argo_namespace" {
type = string
default = null
description = "Namespace to deploy ArgoCD application CRD to. Defaults to `\"argo\"`."
}
variable "argo_enabled" {
type = bool
default = null
description = "If set to true, the module will be deployed as ArgoCD application, otherwise it will be deployed as a Helm release. Defaults to `false`."
}
variable "argo_helm_enabled" {
type = bool
default = null
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. Defaults to `false`."
}
variable "argo_helm_wait_timeout" {
type = string
default = null
description = "Timeout for ArgoCD Application Helm release wait job. Defaults to `\"10m\"`."
}
variable "argo_helm_wait_node_selector" {
type = map(string)
default = null
description = "Node selector for ArgoCD Application Helm release wait job. Defaults to `{}`."
}
variable "argo_helm_wait_tolerations" {
type = list(any)
default = null
description = "Tolerations for ArgoCD Application Helm release wait job. Defaults to `[]`."
}
variable "argo_helm_wait_backoff_limit" {
type = number
default = null
description = "Backoff limit for ArgoCD Application Helm release wait job. Defaults to `6`."
}
variable "argo_destination_server" {
type = string
default = null
description = "Destination server for ArgoCD Application. Defaults to `\"https://kubernetes.default.svc\"`."
}
variable "argo_project" {
type = string
default = null
description = "ArgoCD Application project. Defaults to `default`."
}
variable "argo_info" {
type = list(object({
name = string
value = string
}))
default = null
description = "ArgoCD info manifest parameter. Defaults to `[{name=\"terraform\",value=true}]`."
}
variable "argo_sync_policy" {
type = any
default = null
description = "ArgoCD syncPolicy manifest parameter. Defaults to `{}`."
}
variable "argo_metadata" {
type = any
default = null
description = "ArgoCD Application metadata configuration. Override or create additional metadata parameters. Defaults to `{finalizers=[\"resources-finalizer.argocd.argoproj.io\"]}`."
}
variable "argo_apiversion" {
type = string
default = null
description = "ArgoCD Application apiVersion. Defaults to `\"argoproj.io/v1alpha1\"`."
}
variable "argo_spec" {
type = any
default = null
description = "ArgoCD Application spec configuration. Override or create additional spec parameters. Defaults to `{}`."
}
variable "argo_helm_values" {
type = string
default = null
description = "Value overrides to use when deploying ArgoCD Application object with Helm. Defaults to `\"\"`."
}
# ================ argo kubernetes manifest variables (required) ================
variable "argo_kubernetes_manifest_computed_fields" {
type = list(string)
default = null
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. Defaults to `[\"metadata.labels\", \"metadata.annotations\", \"metadata.finalizers\"]`."
}
variable "argo_kubernetes_manifest_field_manager_name" {
type = string
default = null
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 = null
description = "Forcibly override any field manager conflicts when applying the kubernetes manifest resource. Defaults to `false`."
}
variable "argo_kubernetes_manifest_wait_fields" {
type = map(string)
default = null
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. Defaults to `{}`."
}
# ================ Helm release variables (required) ================
variable "helm_repo_key_file" {
type = string
default = null
description = "Helm repositories cert key file. Defaults to `\"\"`."
}
variable "helm_repo_cert_file" {
type = string
default = null
description = "Helm repositories cert file. Defaults to `\"\"`."
}
variable "helm_repo_ca_file" {
type = string
default = null
description = "Helm repositories CA cert file. Defaults to `\"\"`."
}
variable "helm_repo_username" {
type = string
default = null
description = "Username for HTTP basic authentication against the Helm repository. Defaults to `\"\"`."
}
variable "helm_repo_password" {
type = string
default = null
description = "Password for HTTP basic authentication against the Helm repository. Defaults to `\"\"`."
}
variable "helm_devel" {
type = bool
default = null
description = "Use Helm chart development versions, too. Equivalent to version '>0.0.0-0'. If version is set, this is ignored. Defaults to `false`."
}
variable "helm_package_verify" {
type = bool
default = null
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. Defaults to `false`."
}
variable "helm_keyring" {
type = string
default = null
description = "Location of public keys used for verification. Used only if `helm_package_verify` is `true`. Defaults to `\"~/.gnupg/pubring.gpg\"`."
}
variable "helm_timeout" {
type = number
default = null
description = "Time in seconds to wait for any individual Kubernetes operation (like Jobs for hooks). Defaults to `300`."
}
variable "helm_disable_webhooks" {
type = bool
default = null
description = "Prevent Helm chart hooks from running. Defaults to `false`."
}
variable "helm_reset_values" {
type = bool
default = null
description = "When upgrading, reset the values to the ones built into the Helm chart. Defaults to `false`."
}
variable "helm_reuse_values" {
type = bool
default = null
description = "When upgrading, reuse the last Helm release's values and merge in any overrides. If 'helm_reset_values' is specified, this is ignored. Defaults to `false`."
}
variable "helm_force_update" {
type = bool
default = null
description = "Force Helm resource update through delete/recreate if needed. Defaults to `false`."
}
variable "helm_recreate_pods" {
type = bool
default = null
description = "Perform pods restart during Helm upgrade/rollback. Defaults to `false`."
}
variable "helm_cleanup_on_fail" {
type = bool
default = null
description = "Allow deletion of new resources created in this Helm upgrade when upgrade fails. Defaults to `false`."
}
variable "helm_release_max_history" {
type = number
default = null
description = "Maximum number of release versions stored per release. Defaults to `0`."
}
variable "helm_atomic" {
type = bool
default = null
description = "If set, installation process purges chart on fail. The wait flag will be set automatically if atomic is used. Defaults to `false`."
}
variable "helm_wait" {
type = bool
default = null
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. Defaults to `false`."
}
variable "helm_wait_for_jobs" {
type = bool
default = null
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. Defaults to `false`."
}
variable "helm_skip_crds" {
type = bool
default = null
description = "If set, no CRDs will be installed before Helm release. Defaults to `false`."
}
variable "helm_render_subchart_notes" {
type = bool
default = null
description = "If set, render Helm subchart notes along with the parent. Defaults to `true`."
}
variable "helm_disable_openapi_validation" {
type = bool
default = null
description = "If set, the installation process will not validate rendered Helm templates against the Kubernetes OpenAPI Schema. Defaults to `false`."
}
variable "helm_dependency_update" {
type = bool
default = null
description = "Runs Helm dependency update before installing the chart. Defaults to `false`."
}
variable "helm_replace" {
type = bool
default = null
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. Defaults to `false`."
}
variable "helm_description" {
type = string
default = null
description = "Set Helm release description attribute (visible in the history). Defaults to `\"\"`."
}
variable "helm_lint" {
type = bool
default = null
description = "Run the Helm chart linter during the plan. Defaults to `false`."
}
variable "helm_set_sensitive" {
type = map(any)
default = null
description = "Value block with custom sensitive values to be merged with the values yaml that won't be exposed in the plan's diff. Defaults to `{}`."
}
variable "helm_postrender" {
type = map(any)
default = null
description = "Value block with a path to a binary file to run after Helm renders the manifest which can alter the manifest contents. Defaults to `{}`."
}