Skip to content

feat!: helm provider 3.0.1 #117

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
20 changes: 2 additions & 18 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,7 @@ resource "helm_release" "this" {
timeout = lookup(var.app, "timeout", 300)
values = var.values

dynamic "set" {
iterator = item
for_each = var.set == null ? [] : var.set
set = [for item in coalesce(var.set, []): { "name": item.name, "value": item.value}]
set_sensitive = [for item in coalesce(var.set_sensitive, []): { "name": item.name, "value": item.value}]

content {
name = item.value.name
value = item.value.value
}
}

dynamic "set_sensitive" {
iterator = item
for_each = var.set_sensitive == null ? [] : var.set_sensitive

content {
name = item.value.path
value = item.value.value
}
}
}
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
output "deployment" {
value = var.app["deploy"] ? helm_release.this[0].metadata : []
value = var.app["deploy"] ? [ helm_release.this[0].metadata ] : []
description = "The state of the helm deployment"
}
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ terraform {
required_version = ">= 0.13"

required_providers {
helm = ">= 2.0"
helm = ">= 3.0"
}
}
Loading