From 2a0a2a3b22a1edc3efc527d7cb352b728814dd28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Mon, 23 Oct 2023 19:56:09 +0200 Subject: [PATCH] fix --- apps/dbgate/index.yaml | 156 ++++++++++++++++++------------------ apps/dbgate/presentation.tf | 10 +++ 2 files changed, 88 insertions(+), 78 deletions(-) diff --git a/apps/dbgate/index.yaml b/apps/dbgate/index.yaml index b16e5c7..0f9bdf8 100644 --- a/apps/dbgate/index.yaml +++ b/apps/dbgate/index.yaml @@ -6,6 +6,74 @@ metadata: name: dbgate description: null options: + 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 + images: + default: + dbgate: + pullPolicy: IfNotPresent + registry: docker.io + repository: dbgate/dbgate + tag: 5.2.7-alpine + examples: + - dbgate: + pullPolicy: IfNotPresent + registry: docker.io + repository: dbgate/dbgate + tag: 5.2.7-alpine + properties: + dbgate: + default: + pullPolicy: IfNotPresent + registry: docker.io + repository: dbgate/dbgate + tag: 5.2.7-alpine + properties: + pullPolicy: + default: IfNotPresent + enum: + - Always + - Never + - IfNotPresent + type: string + registry: + default: docker.io + type: string + repository: + default: dbgate/dbgate + type: string + tag: + default: 5.2.7-alpine + type: string + type: object + type: object issuer: default: letsencrypt-prod examples: @@ -67,51 +135,12 @@ options: type: string type: object type: array - sub-domain: - default: dbgate - examples: - - dbgate - type: string - ingress-class: - default: traefik - examples: - - traefik - type: string - mongo: - 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 domain: default: your-company examples: - your-company type: string - pg: + mongo: default: [] examples: - [] @@ -150,6 +179,11 @@ options: examples: - dev type: string + ingress-class: + default: traefik + examples: + - traefik + type: string redis: default: [] examples: @@ -164,45 +198,11 @@ options: type: string type: object type: array - images: - default: - dbgate: - pullPolicy: IfNotPresent - registry: docker.io - repository: dbgate/dbgate - tag: 5.2.7-alpine + sub-domain: + default: dbgate examples: - - dbgate: - pullPolicy: IfNotPresent - registry: docker.io - repository: dbgate/dbgate - tag: 5.2.7-alpine - properties: - dbgate: - default: - pullPolicy: IfNotPresent - registry: docker.io - repository: dbgate/dbgate - tag: 5.2.7-alpine - properties: - pullPolicy: - default: IfNotPresent - enum: - - Always - - Never - - IfNotPresent - type: string - registry: - default: docker.io - type: string - repository: - default: dbgate/dbgate - type: string - tag: - default: 5.2.7-alpine - type: string - type: object - type: object + - dbgate + type: string dependencies: - dist: null category: share diff --git a/apps/dbgate/presentation.tf b/apps/dbgate/presentation.tf index 6916fb1..11c0c54 100644 --- a/apps/dbgate/presentation.tf +++ b/apps/dbgate/presentation.tf @@ -71,3 +71,13 @@ module "oauth2" { authentik = authentik } } + +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" +}