diff --git a/apps/dbgate/configs.tf b/apps/dbgate/configs.tf index a8f7e60..a5e4fc4 100644 --- a/apps/dbgate/configs.tf +++ b/apps/dbgate/configs.tf @@ -62,9 +62,10 @@ resource "kubectl_manifest" "dbgate-init" { labels: ${jsonencode(local.common-labels)} data: start.sh: |- + mkdir -p /usr/local/share/ca-certificates/ cp /etc/local-ca/ca.crt /usr/local/share/ca-certificates/ /usr/sbin/update-ca-certificates - /bin/su - node -c /entrypoint.sh "$@" + /bin/su - node -c /home/dbgate/entrypoint.sh "$@" sleep infinity EOF } diff --git a/apps/dbgate/index.yaml b/apps/dbgate/index.yaml index 46fcc66..a28cd93 100644 --- a/apps/dbgate/index.yaml +++ b/apps/dbgate/index.yaml @@ -6,42 +6,10 @@ metadata: name: dbgate description: null options: - app-group: - default: dev + domain-name: + default: your_company.com examples: - - dev - 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 - domain: - default: your-company - examples: - - your-company + - your_company.com type: string pg: default: [] @@ -72,84 +40,11 @@ options: type: string type: object type: array - 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 sub-domain: default: dbgate examples: - dbgate type: string - issuer: - default: letsencrypt-prod - examples: - - letsencrypt-prod - 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: - - [] - 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: @@ -189,6 +84,111 @@ options: type: string type: object type: object + maria: + 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 + 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 + app-group: + default: dev + examples: + - dev + type: string + domain: + default: your-company + examples: + - your-company + 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 dependencies: - dist: null category: share