From e929bdba6a8bf22eebe72316e0d5e8ea80d5686d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Sun, 15 Oct 2023 18:06:44 +0200 Subject: [PATCH] fix --- apps/dbgate/configs.tf | 18 ----- apps/dbgate/index.yaml | 162 ++++++++++++++++++++--------------------- 2 files changed, 81 insertions(+), 99 deletions(-) diff --git a/apps/dbgate/configs.tf b/apps/dbgate/configs.tf index 4fbea0d..b32ca4a 100644 --- a/apps/dbgate/configs.tf +++ b/apps/dbgate/configs.tf @@ -87,21 +87,3 @@ data "kubernetes_secret_v1" "mongos" { namespace = "${var.mongo[count.index].namespace}" } } - - -locals { - authentik-token = data.kubernetes_secret_v1.authentik.data["AUTHENTIK_BOOTSTRAP_TOKEN"] - request_headers = { - "Content-Type" = "application/json" - Authorization = "Bearer ${local.authentik-token}" - } -} -provider "restapi" { - uri = "http://authentik.${var.domain}-auth.svc/api/v3/" - headers = local.request_headers - create_method = "PATCH" - update_method = "PATCH" - destroy_method = "PATCH" - write_returns_object = true - id_attribute = "name" -} diff --git a/apps/dbgate/index.yaml b/apps/dbgate/index.yaml index 44d5eb2..bd08e9b 100644 --- a/apps/dbgate/index.yaml +++ b/apps/dbgate/index.yaml @@ -6,33 +6,55 @@ metadata: name: dbgate description: null options: - storage: - default: - accessMode: ReadWriteOnce - size: 1Gi - type: Filesystem + mongo: + default: [] examples: - - accessMode: ReadWriteOnce - size: 1Gi - type: Filesystem - properties: - accessMode: - default: ReadWriteOnce - enum: - - ReadWriteOnce - - ReadOnlyMany - - ReadWriteMany - type: string - size: - default: 1Gi - type: string - type: - default: Filesystem - enum: - - Filesystem - - Block - type: string - type: object + - [] + items: + properties: + dbname: + default: '' + type: string + name: + default: '' + type: string + namespace: + default: '' + type: string + secret: + properties: + key: + default: '' + type: string + name: + default: '' + type: string + type: object + username: + default: '' + type: string + type: object + type: array + domain: + default: your-company + examples: + - your-company + type: string + app-group: + default: dev + examples: + - dev + type: string + ingress-class: + default: traefik + examples: + - traefik + type: string + domain-name: + default: your_company.com + examples: + - your_company.com + type: string maria: default: [] examples: @@ -62,55 +84,6 @@ options: type: string type: object type: array - app-group: - default: dev - examples: - - dev - type: string - ingress-class: - default: traefik - examples: - - traefik - type: string - domain: - default: your-company - examples: - - your-company - type: string - pg: - default: [] - examples: - - [] - items: - properties: - dbname: - default: '' - type: string - name: - default: '' - type: string - namespace: - default: '' - type: string - secret: - properties: - key: - default: '' - type: string - name: - default: '' - type: string - type: object - username: - default: '' - type: string - type: object - type: array - issuer: - default: letsencrypt-prod - examples: - - letsencrypt-prod - type: string images: default: dbgate: @@ -150,17 +123,44 @@ options: type: string type: object type: object + storage: + default: + accessMode: ReadWriteOnce + size: 1Gi + type: Filesystem + examples: + - accessMode: ReadWriteOnce + size: 1Gi + type: Filesystem + properties: + accessMode: + default: ReadWriteOnce + enum: + - ReadWriteOnce + - ReadOnlyMany + - ReadWriteMany + type: string + size: + default: 1Gi + type: string + type: + default: Filesystem + enum: + - Filesystem + - Block + type: string + type: object sub-domain: default: dbgate examples: - dbgate type: string - domain-name: - default: your_company.com + issuer: + default: letsencrypt-prod examples: - - your_company.com + - letsencrypt-prod type: string - mongo: + pg: default: [] examples: - [] @@ -201,7 +201,7 @@ providers: authentik: true kubectl: true postgresql: null - restapi: true - http: true + restapi: null + http: null gitea: null tfaddtype: null