This commit is contained in:
2023-10-14 13:05:17 +02:00
parent 6ed6f28ee3
commit 32efa4b0ab
2 changed files with 99 additions and 99 deletions

View File

@@ -24,8 +24,8 @@ locals {
maria_conns = [for m in var.maria: join("_",["maria", m.namespace, m.name])]
connections = join(",",concat(local.pg_conns, local.maria_conns))
connection_vars = merge(local.pg_vars, local.)
connection_secrets = merge(local.pg_secrets)
connection_vars = merge(local.pg_vars, local.maria_vars)
connection_secrets = merge(local.pg_secrets,local.maria_secrets)
}
resource "kubectl_manifest" "dbgate-config" {

View File

@@ -6,42 +6,54 @@ metadata:
name: dbgate
description: null
options:
domain-name:
default: your_company.com
examples:
- your_company.com
type: string
ingress-class:
default: traefik
examples:
- traefik
type: string
app-group:
default: dev
examples:
- dev
type: string
storage:
images:
default:
size: 1Gi
accessMode: ReadWriteOnce
type: Filesystem
dbgate:
registry: docker.io
repository: dbgate/dbgate
tag: 5.2.6-alpine
pullPolicy: IfNotPresent
properties:
type:
enum:
- Filesystem
- Block
type: string
default: Filesystem
accessMode:
enum:
- ReadWriteOnce
- ReadOnlyMany
- ReadWriteMany
type: string
default: ReadWriteOnce
size:
type: string
default: 1Gi
dbgate:
properties:
pullPolicy:
enum:
- Always
- Never
- IfNotPresent
type: string
default: IfNotPresent
registry:
type: string
default: docker.io
repository:
type: string
default: dbgate/dbgate
tag:
type: string
default: 5.2.6-alpine
type: object
default:
registry: docker.io
repository: dbgate/dbgate
tag: 5.2.6-alpine
pullPolicy: IfNotPresent
examples:
- size: 1Gi
accessMode: ReadWriteOnce
type: Filesystem
- dbgate:
registry: docker.io
repository: dbgate/dbgate
tag: 5.2.6-alpine
pullPolicy: IfNotPresent
type: object
mongo:
default: []
@@ -72,34 +84,6 @@ options:
examples:
- []
type: array
domain-name:
default: your_company.com
examples:
- your_company.com
type: string
redis:
default: []
items:
type: object
properties:
namespace:
type: string
default: ''
name:
type: string
default: ''
secret:
type: object
properties:
name:
type: string
default: ''
key:
type: string
default: ''
examples:
- []
type: array
pg:
default: []
items:
@@ -129,55 +113,21 @@ options:
examples:
- []
type: array
sub-domain:
default: dbgate
app-group:
default: dev
examples:
- dbgate
- dev
type: string
domain:
default: your-company
examples:
- your-company
type: string
images:
default:
dbgate:
registry: docker.io
repository: dbgate/dbgate
tag: 5.2.6-alpine
pullPolicy: IfNotPresent
properties:
dbgate:
properties:
pullPolicy:
enum:
- Always
- Never
- IfNotPresent
type: string
default: IfNotPresent
registry:
type: string
default: docker.io
repository:
type: string
default: dbgate/dbgate
tag:
type: string
default: 5.2.6-alpine
type: object
default:
registry: docker.io
repository: dbgate/dbgate
tag: 5.2.6-alpine
pullPolicy: IfNotPresent
sub-domain:
default: dbgate
examples:
- dbgate:
registry: docker.io
repository: dbgate/dbgate
tag: 5.2.6-alpine
pullPolicy: IfNotPresent
type: object
- dbgate
type: string
maria:
default: []
items:
@@ -204,6 +154,56 @@ options:
examples:
- []
type: array
redis:
default: []
items:
type: object
properties:
namespace:
type: string
default: ''
name:
type: string
default: ''
secret:
type: object
properties:
name:
type: string
default: ''
key:
type: string
default: ''
examples:
- []
type: array
storage:
default:
size: 1Gi
accessMode: ReadWriteOnce
type: Filesystem
properties:
type:
enum:
- Filesystem
- Block
type: string
default: Filesystem
accessMode:
enum:
- ReadWriteOnce
- ReadOnlyMany
- ReadWriteMany
type: string
default: ReadWriteOnce
size:
type: string
default: 1Gi
examples:
- size: 1Gi
accessMode: ReadWriteOnce
type: Filesystem
type: object
issuer:
default: letsencrypt-prod
examples: