enable kustomize helm, add argocd domain

This commit is contained in:
2024-03-15 12:12:38 +01:00
parent 19da08cb1a
commit 170e4a9d7f
2 changed files with 19 additions and 6 deletions

View File

@@ -14,15 +14,24 @@ resource "helm_release" "argocd" {
name = "configs.params.server\\.insecure"
value = "true"
}
set {
name = "configs.cm.kustomize\\.buildOptions"
value = "--enable-helm"
}
set {
name = "global.domain"
value = "argocd.${var.my_domain}"
}
}
resource "kubectl_manifest" "dashboard-ingress" {
depends_on = [helm_release.argocd]
force_new = true
server_side_apply = true
yaml_body = templatefile("${path.module}/argocd_ingress_route.tfpl.yaml", {
namespace = var.namespace,
my_domain = var.my_domain
})
}
yaml_body = templatefile("${path.module}/argocd_ingress_route.tfpl.yaml", {
namespace = var.namespace,
my_domain = var.my_domain
})
}

View File

@@ -5,3 +5,7 @@ output "argocd_url" {
output "argo_helm_values_overrides" {
value = helm_release.argocd.metadata[0].values
}
output "argocd_ingress_route" {
value = kubectl_manifest.dashboard-ingress.yaml_body_parsed
}