orchestration-tests/k8s-test/services/authentik/main.tf

24 lines
558 B
Terraform
Raw Normal View History

2022-03-12 18:06:06 +00:00
locals {
authentik_chart_values = {
2022-04-13 21:01:14 +00:00
"ingress.enabled" = true,
"ingress.hosts[0].host" = "authentik.dev.homelab"
"ingress.hosts[0].paths[0].path" = "/"
2022-03-12 18:06:06 +00:00
"ingress.hosts[0].paths[0].pathType" = "Prefix"
}
}
resource "helm_release" "authentik" {
2022-04-13 21:01:14 +00:00
name = "authentik"
2022-03-12 18:06:06 +00:00
repository = "https://charts.goauthentik.io/"
2022-04-13 21:01:14 +00:00
chart = "authentik"
version = "5.2.2"
2022-03-12 18:06:06 +00:00
dynamic "set" {
for_each = local.authentik_chart_values
content {
2022-04-13 21:01:14 +00:00
name = set.key
2022-03-12 18:06:06 +00:00
value = set.value
}
}
}