From 9d035af606dbef5b3dd468609f6409846391382d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Sun, 15 Oct 2023 18:57:30 +0200 Subject: [PATCH] fix --- apps/dbgate/deploy.tf | 7 +- apps/dbgate/index.yaml | 148 ++++++++++++++++++++--------------------- 2 files changed, 76 insertions(+), 79 deletions(-) diff --git a/apps/dbgate/deploy.tf b/apps/dbgate/deploy.tf index 47438c9..ee5d388 100644 --- a/apps/dbgate/deploy.tf +++ b/apps/dbgate/deploy.tf @@ -17,11 +17,13 @@ resource "kubectl_manifest" "deploy" { securityContext: fsGroup: 1000 runAsGroup: 1000 + runAsUser: 0 containers: - name: dbgate securityContext: fsGroup: 1000 runAsGroup: 1000 + runAsNonRoot: false runAsUser: 0 envFrom: - secretRef: @@ -77,11 +79,6 @@ resource "kubectl_manifest" "deploy" { mountPath: "/start.sh" subPath: "start.sh" restartPolicy: Always - securityContext: - fsGroup: 1000 - runAsGroup: 1000 - runAsNonRoot: true - runAsUser: 1000 volumes: - name: certs secret: diff --git a/apps/dbgate/index.yaml b/apps/dbgate/index.yaml index 73fad76..0935b42 100644 --- a/apps/dbgate/index.yaml +++ b/apps/dbgate/index.yaml @@ -6,6 +6,35 @@ 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 maria: default: [] examples: @@ -35,10 +64,49 @@ options: type: string type: object type: array - app-group: - default: dev + mongo: + default: [] examples: - - dev + - [] + 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-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 domain: default: your-company @@ -84,84 +152,16 @@ options: type: string type: object type: object - pg: - default: [] + app-group: + default: dev 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 - sub-domain: - default: dbgate - examples: - - dbgate + - dev type: string - issuer: - default: letsencrypt-prod - examples: - - letsencrypt-prod - 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 ingress-class: default: traefik examples: - traefik type: string - domain-name: - default: your_company.com - examples: - - your_company.com - type: string storage: default: accessMode: ReadWriteOnce