This commit is contained in:
2024-01-24 15:08:13 +01:00
parent 92e9be6fa6
commit 1662fca251
3 changed files with 45 additions and 40 deletions

View File

@@ -2,7 +2,7 @@ locals {
dns-name = "${var.sub-domain}.${var.domain-name}"
dns-names = [local.dns-name]
app-name = var.component == var.instance ? var.instance : format("%s-%s", var.component, var.instance)
icon = "logo192.png"
icon = "public/img/grafana_icon.svg"
request_headers = {
"Content-Type" = "application/json"
Authorization = "Bearer ${data.kubernetes_secret_v1.authentik.data["AUTHENTIK_BOOTSTRAP_TOKEN"]}"
@@ -16,27 +16,27 @@ locals {
}
module "ingress" {
source = "/dist/modules/ingress"
source = "git::https://git.solidite.fr/vynil/kydah-modules.git//ingress"
component = ""
instance = var.instance
namespace = var.namespace
issuer = var.issuer
ingress-class = var.ingress-class
ingress_class = var.ingress-class
labels = local.common-labels
dns-names = local.dns-names
dns_names = local.dns-names
middlewares = []
service = local.service
services = [local.service]
providers = {
kubectl = kubectl
}
}
/* module "application" {
source = "/dist/modules/application"
module "application" {
source = "git::https://git.solidite.fr/vynil/kydah-modules.git//application"
component = var.component
instance = var.instance
app-group = var.app-group
dns-name = local.dns-name
app_group = var.app-group
dns_name = local.dns-name
icon = local.icon
protocol_provider = module.oauth2.provider-id
providers = {
@@ -45,13 +45,13 @@ module "ingress" {
}
module "oauth2" {
source = "/dist/modules/oauth2"
source = "git::https://git.solidite.fr/vynil/kydah-modules.git//oauth2"
component = var.component
instance = var.instance
namespace = var.namespace
labels = local.common-labels
dns-name = local.dns-name
redirect-path = ""
dns_name = local.dns-name
redirect_path = "login/generic_oauth"
providers = {
kubernetes = kubernetes
kubectl = kubectl
@@ -67,5 +67,4 @@ provider "restapi" {
destroy_method = "PATCH"
write_returns_object = true
id_attribute = "name"
}
*/
}