From fed94d1167233a82d65517115c66c3fd7a4b41dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Mon, 17 Jul 2023 12:05:32 +0200 Subject: [PATCH] fix --- meta/domain-infra/apps.tf | 2 +- meta/domain-infra/index.yaml | 80 ++++++++++++++++++------------------ 2 files changed, 41 insertions(+), 41 deletions(-) diff --git a/meta/domain-infra/apps.tf b/meta/domain-infra/apps.tf index 21ac901..6e3f6ee 100644 --- a/meta/domain-infra/apps.tf +++ b/meta/domain-infra/apps.tf @@ -61,7 +61,7 @@ resource "kubectl_manifest" "traefik" { options: ${jsonencode(merge(local.global, local.traefik))} EOF } -resource "kubectl_manifest" "traefik" { +resource "kubectl_manifest" "k8s_api" { count = var.traefik.enable ? 1 : 0 depends_on = [kubernetes_namespace_v1.infra-ns] yaml_body = <<-EOF diff --git a/meta/domain-infra/index.yaml b/meta/domain-infra/index.yaml index e247b52..1e0cd53 100644 --- a/meta/domain-infra/index.yaml +++ b/meta/domain-infra/index.yaml @@ -6,6 +6,11 @@ metadata: name: domain-infra description: null options: + ingress-class: + default: traefik + examples: + - traefik + type: string distributions: default: core: core @@ -21,46 +26,6 @@ options: default: domain type: string type: object - api: - default: - enable: false - examples: - - enable: false - properties: - enable: - default: false - type: boolean - type: object - domain: - default: your-company - examples: - - your-company - type: string - issuer: - default: letsencrypt-prod - examples: - - letsencrypt-prod - type: string - domain-name: - default: your_company.com - examples: - - your_company.com - type: string - dns: - default: - enable: false - examples: - - enable: false - properties: - enable: - default: false - type: boolean - type: object - ingress-class: - default: traefik - examples: - - traefik - type: string traefik: default: enable: false @@ -76,6 +41,41 @@ 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 + examples: + - enable: false + properties: + enable: + 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