From 16e0a21e9b8eb19c257938141309a1e2971d9d3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Wed, 18 Oct 2023 17:27:57 +0200 Subject: [PATCH] fix --- apps/dbgate/index.yaml | 138 +++++++++++++++++------------------ modules/forward/providers.tf | 20 +++++ modules/oauth2/providers.tf | 17 +++++ 3 files changed, 106 insertions(+), 69 deletions(-) create mode 100644 modules/forward/providers.tf create mode 100644 modules/oauth2/providers.tf diff --git a/apps/dbgate/index.yaml b/apps/dbgate/index.yaml index 42d40d2..1d992a0 100644 --- a/apps/dbgate/index.yaml +++ b/apps/dbgate/index.yaml @@ -6,6 +6,38 @@ metadata: name: dbgate description: null options: + issuer: + default: letsencrypt-prod + examples: + - letsencrypt-prod + type: string + 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 pg: default: [] examples: @@ -40,6 +72,11 @@ options: examples: - traefik type: string + domain: + default: your-company + examples: + - your-company + type: string images: default: dbgate: @@ -79,50 +116,16 @@ options: type: string type: object type: object - domain-name: - default: your_company.com - examples: - - your_company.com - type: string - issuer: - default: letsencrypt-prod - examples: - - letsencrypt-prod - type: string sub-domain: default: dbgate examples: - dbgate type: string - maria: - default: [] + domain-name: + default: your_company.com 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.com + type: string mongo: default: [] examples: @@ -157,43 +160,40 @@ options: examples: - dev type: string - storage: - default: - accessMode: ReadWriteOnce - size: 1Gi - type: Filesystem + maria: + 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 use-oauth: default: false examples: - false type: boolean - domain: - default: your-company - examples: - - your-company - type: string dependencies: - dist: null category: share diff --git a/modules/forward/providers.tf b/modules/forward/providers.tf new file mode 100644 index 0000000..92c0b09 --- /dev/null +++ b/modules/forward/providers.tf @@ -0,0 +1,20 @@ +terraform { + required_providers { + kubectl = { + source = "gavinbunney/kubectl" + version = "~> 1.14.0" + } + authentik = { + source = "goauthentik/authentik" + version = "~> 2023.5.0" + } + http = { + source = "hashicorp/http" + version = "~> 3.3.0" + } + restapi = { + source = "Mastercard/restapi" + version = "~> 1.18.0" + } + } +} diff --git a/modules/oauth2/providers.tf b/modules/oauth2/providers.tf new file mode 100644 index 0000000..9424f6f --- /dev/null +++ b/modules/oauth2/providers.tf @@ -0,0 +1,17 @@ + +terraform { + required_providers { + kubernetes = { + source = "hashicorp/kubernetes" + version = "~> 2.20.0" + } + kubectl = { + source = "gavinbunney/kubectl" + version = "~> 1.14.0" + } + authentik = { + source = "goauthentik/authentik" + version = "~> 2023.5.0" + } + } +}