Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add YAML directly for settings to allow maps inside maps #1

Merged
merged 1 commit into from
Jun 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion _variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ variable "mod_dependency" {
}

variable "settings" {
type = map(any)
default = {}
description = "Additional settings which will be passed to the Helm chart values, see https://github.com/kubernetes-sigs/aws-efs-csi-driver."
}
10 changes: 3 additions & 7 deletions helm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,8 @@ resource "helm_release" "kubernetes_efs_csi_driver" {
value = var.service_account_name
}

dynamic "set" {
for_each = var.settings
values = [
yamlencode(var.settings)
]

content {
name = set.key
value = set.value
}
}
}