Skip to content

Commit 630248d

Browse files
committed
Add YAML directly for settings to allow maps inside maps
Signed-off-by: Arthur Diniz <[email protected]>
1 parent d82ba82 commit 630248d

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

_variables.tf

-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ variable "mod_dependency" {
8989
}
9090

9191
variable "settings" {
92-
type = map(any)
9392
default = {}
9493
description = "Additional settings which will be passed to the Helm chart values."
9594
}

helm.tf

+3-8
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,8 @@ resource "helm_release" "velero" {
7272
value = "plugins"
7373
}
7474

75-
dynamic "set" {
76-
for_each = var.settings
77-
78-
content {
79-
name = set.key
80-
value = set.value
81-
}
82-
}
75+
values = [
76+
yamlencode(var.settings)
77+
]
8378

8479
}

0 commit comments

Comments
 (0)