diff --git a/apps/dbgate/configs.tf b/apps/dbgate/configs.tf index b74a62e..dc79848 100644 --- a/apps/dbgate/configs.tf +++ b/apps/dbgate/configs.tf @@ -30,7 +30,7 @@ locals { join("_",["ENGINE_mongo", m.namespace, m.name]) = "mongo@dbgate-plugin-mongo" }]...) mongo_secrets = merge([for index, m in var.mongo: { - join("_",["URL_mongo", m.namespace, m.name]) = "mongodb://${m.username}:${urlencode(data.kubernetes_secret_v1.mongos[index].data[m.secret.key])}@${join(".",["${m.name}-svc", m.namespace, "svc"])}:27017/?replicaSet=${m.dbname}" + join("_",["URL_mongo", m.namespace, m.name]) = "mongodb://${m.username}:${urlencode(data.kubernetes_secret_v1.mongos[index].data[m.secret.key])}@${join(".",["${m.name}-svc", m.namespace, "svc"])}:27017/${m.dbname}" }]...) mongo_conns = [for m in var.mongo: join("_",["mongo", m.namespace, m.name])] oauth_config = { diff --git a/apps/dbgate/index.yaml b/apps/dbgate/index.yaml index bef96cd..9158940 100644 --- a/apps/dbgate/index.yaml +++ b/apps/dbgate/index.yaml @@ -6,97 +6,11 @@ metadata: name: dbgate description: null options: - sub-domain: - default: dbgate - examples: - - dbgate - type: string use-oauth: default: false examples: - false type: boolean - ingress-class: - default: traefik - examples: - - traefik - type: string - app-group: - default: dev - examples: - - dev - type: string - domain-name: - default: your_company.com - examples: - - your_company.com - type: string - domain: - default: your-company - examples: - - your-company - type: string - 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: - - [] - 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: @@ -126,7 +40,12 @@ options: type: string type: object type: array - mongo: + domain-name: + default: your_company.com + examples: + - your_company.com + type: string + pg: default: [] examples: - [] @@ -194,6 +113,87 @@ options: type: string type: object type: object + domain: + default: your-company + examples: + - your-company + 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 + issuer: + default: letsencrypt-prod + examples: + - letsencrypt-prod + type: string + sub-domain: + default: dbgate + examples: + - dbgate + type: string + ingress-class: + default: traefik + examples: + - traefik + 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