From 7cc48d439bf076b85630b771de89171f03308049 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Sun, 15 Oct 2023 17:54:14 +0200 Subject: [PATCH] fix --- apps/dbgate/configs.tf | 7 +++ apps/dbgate/index.yaml | 96 +++++++++++++++++++++--------------------- 2 files changed, 55 insertions(+), 48 deletions(-) diff --git a/apps/dbgate/configs.tf b/apps/dbgate/configs.tf index fc9eba1..164e4d1 100644 --- a/apps/dbgate/configs.tf +++ b/apps/dbgate/configs.tf @@ -88,6 +88,13 @@ data "kubernetes_secret_v1" "mongos" { } } + +locals { + 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 diff --git a/apps/dbgate/index.yaml b/apps/dbgate/index.yaml index d226a59..3fb2e1f 100644 --- a/apps/dbgate/index.yaml +++ b/apps/dbgate/index.yaml @@ -6,35 +6,11 @@ metadata: name: dbgate description: null options: - pg: - default: [] + domain: + default: your-company 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 + - your-company + type: string images: default: dbgate: @@ -74,6 +50,35 @@ options: type: string type: object type: object + 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 storage: default: accessMode: ReadWriteOnce @@ -106,11 +111,6 @@ options: examples: - traefik type: string - domain: - default: your-company - examples: - - your-company - type: string domain-name: default: your_company.com examples: @@ -145,6 +145,21 @@ options: type: string type: object type: array + issuer: + default: letsencrypt-prod + examples: + - letsencrypt-prod + type: string + sub-domain: + default: dbgate + examples: + - dbgate + type: string + app-group: + default: dev + examples: + - dev + type: string mongo: default: [] examples: @@ -174,21 +189,6 @@ options: type: string type: object type: array - sub-domain: - default: dbgate - examples: - - dbgate - type: string - issuer: - default: letsencrypt-prod - examples: - - letsencrypt-prod - type: string - app-group: - default: dev - examples: - - dev - type: string dependencies: - dist: null category: share