From b62eda9cf05cab5265e8ad6fe97540e87289befe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Mon, 17 Jul 2023 12:07:29 +0200 Subject: [PATCH] fix --- meta/domain-infra/apps.tf | 2 +- meta/domain-infra/index.yaml | 50 ++++++++++++++++++------------------ 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/meta/domain-infra/apps.tf b/meta/domain-infra/apps.tf index 6e3f6ee..ee9a564 100644 --- a/meta/domain-infra/apps.tf +++ b/meta/domain-infra/apps.tf @@ -34,7 +34,7 @@ resource "kubectl_manifest" "dns" { kind: "Install" metadata: name: "dns" - namespace: "${kubernetes_namespace_v1.infra-ns.name}" + namespace: "${kubernetes_namespace_v1.infra-ns[0].name}" labels: ${jsonencode(local.common-labels)} spec: distrib: "${var.distributions.domain}" diff --git a/meta/domain-infra/index.yaml b/meta/domain-infra/index.yaml index 1e0cd53..a48816c 100644 --- a/meta/domain-infra/index.yaml +++ b/meta/domain-infra/index.yaml @@ -11,6 +11,11 @@ options: examples: - traefik type: string + issuer: + default: letsencrypt-prod + examples: + - letsencrypt-prod + type: string distributions: default: core: core @@ -26,6 +31,26 @@ options: default: domain type: string type: object + dns: + default: + enable: false + examples: + - enable: false + properties: + enable: + default: false + type: boolean + type: object + domain-name: + default: your_company.com + examples: + - your_company.com + type: string + domain: + default: your-company + examples: + - your-company + type: string traefik: default: enable: false @@ -41,21 +66,6 @@ options: default: traefik type: string type: object - issuer: - default: letsencrypt-prod - examples: - - letsencrypt-prod - type: string - domain-name: - default: your_company.com - examples: - - your_company.com - type: string - domain: - default: your-company - examples: - - your-company - type: string api: default: enable: false @@ -66,16 +76,6 @@ options: default: false type: boolean type: object - dns: - default: - enable: false - examples: - - enable: false - properties: - enable: - default: false - type: boolean - type: object dependencies: [] providers: kubernetes: true