iupdated apps

This commit is contained in:
ari committed 2025-05-11 16:13:40 -04:00
1 parent fcf9452089
commit fd7ccbcb11
10 files changed
+21 -51

No files matched your search

+2 -16
View File
@@ -1,26 +1,12 @@
resource "helm_release" "plugins" {
for_each = var.plugins
name = each.key
chart = each.key
chart = each.value.chart == "" ? each.key : each.value.chart
repository = each.value.repository
version = each.value.version
atomic = true
namespace = "plugin-${each.key}"
namespace = each.value.namespace == "" ? "plugin-${each.key}" : each.value.namespace
create_namespace = true
values = each.value.values
}
resource "helm_release" "infra" {
for_each = var.infra
name = each.key
chart = each.key
repository = each.value.repository
version = each.value.version
atomic = true
namespace = "infra-${each.key}"
create_namespace = true
}
-4
View File
@@ -4,9 +4,5 @@ output "namespaces" {
for k, v in helm_release.plugins :
k => v.namespace
}
infra = {
for k, v in helm_release.infra :
k => v.namespace
}
}
}
+3 -11
View File
@@ -1,18 +1,10 @@
variable "plugins" {
type = map(object({
repository = string
version = string
values = optional(list(string), [])
}))
default = {}
}
variable "infra" {
type = map(object({
repository = string
version = string
version = optional(string)
values = optional(list(string), [])
chart = optional(string, "")
namespace = optional(string, "")
}))
default = {}
}