fix
This commit is contained in:
@@ -8,7 +8,7 @@ locals {
|
|||||||
join("_",["USER_pg", pg.namespace, pg.name, pg.dbname]) = pg.username
|
join("_",["USER_pg", pg.namespace, pg.name, pg.dbname]) = pg.username
|
||||||
}]...)
|
}]...)
|
||||||
pg_secrets = merge([for index, pg in var.pg: {
|
pg_secrets = merge([for index, pg in var.pg: {
|
||||||
join("_",["PASSWORD_pg", pg.namespace, pg.name, pg.dbname]) = lookup(data.kubernetes_secret_v1.pgs[index].data, lookup(pg.secret,"key", "password"), "not-found")
|
join("_",["PASSWORD_pg", pg.namespace, pg.name, pg.dbname]) = lookup(lookup(lookup(data.kubernetes_secret_v1.pgs,index,{"data"={}}),"data", {}), lookup(pg.secret,"key", "password"), "not-found")
|
||||||
}]...)
|
}]...)
|
||||||
pg_conns = [for pg in var.pg: join("_",["pg", pg.namespace, pg.name, pg.dbname])]
|
pg_conns = [for pg in var.pg: join("_",["pg", pg.namespace, pg.name, pg.dbname])]
|
||||||
|
|
||||||
|
|||||||
@@ -6,45 +6,60 @@ metadata:
|
|||||||
name: dbgate
|
name: dbgate
|
||||||
description: null
|
description: null
|
||||||
options:
|
options:
|
||||||
images:
|
pg:
|
||||||
default:
|
default: []
|
||||||
dbgate:
|
|
||||||
pullPolicy: IfNotPresent
|
|
||||||
registry: docker.io
|
|
||||||
repository: dbgate/dbgate
|
|
||||||
tag: 5.2.7-alpine
|
|
||||||
examples:
|
examples:
|
||||||
- dbgate:
|
- []
|
||||||
pullPolicy: IfNotPresent
|
items:
|
||||||
registry: docker.io
|
properties:
|
||||||
repository: dbgate/dbgate
|
dbname:
|
||||||
tag: 5.2.7-alpine
|
default: ''
|
||||||
properties:
|
type: string
|
||||||
dbgate:
|
name:
|
||||||
default:
|
default: ''
|
||||||
pullPolicy: IfNotPresent
|
type: string
|
||||||
registry: docker.io
|
namespace:
|
||||||
repository: dbgate/dbgate
|
default: ''
|
||||||
tag: 5.2.7-alpine
|
type: string
|
||||||
properties:
|
secret:
|
||||||
pullPolicy:
|
properties:
|
||||||
default: IfNotPresent
|
key:
|
||||||
enum:
|
default: ''
|
||||||
- Always
|
type: string
|
||||||
- Never
|
name:
|
||||||
- IfNotPresent
|
default: ''
|
||||||
type: string
|
type: string
|
||||||
registry:
|
type: object
|
||||||
default: docker.io
|
username:
|
||||||
type: string
|
default: ''
|
||||||
repository:
|
type: string
|
||||||
default: dbgate/dbgate
|
type: object
|
||||||
type: string
|
type: array
|
||||||
tag:
|
sub-domain:
|
||||||
default: 5.2.7-alpine
|
default: dbgate
|
||||||
type: string
|
examples:
|
||||||
type: object
|
- dbgate
|
||||||
type: object
|
type: string
|
||||||
|
app-group:
|
||||||
|
default: dev
|
||||||
|
examples:
|
||||||
|
- dev
|
||||||
|
type: string
|
||||||
|
issuer:
|
||||||
|
default: letsencrypt-prod
|
||||||
|
examples:
|
||||||
|
- letsencrypt-prod
|
||||||
|
type: string
|
||||||
|
domain:
|
||||||
|
default: your-company
|
||||||
|
examples:
|
||||||
|
- your-company
|
||||||
|
type: string
|
||||||
|
domain-name:
|
||||||
|
default: your_company.com
|
||||||
|
examples:
|
||||||
|
- your_company.com
|
||||||
|
type: string
|
||||||
redis:
|
redis:
|
||||||
default: []
|
default: []
|
||||||
examples:
|
examples:
|
||||||
@@ -59,63 +74,6 @@ options:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: array
|
type: array
|
||||||
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
|
|
||||||
domain-name:
|
|
||||||
default: your_company.com
|
|
||||||
examples:
|
|
||||||
- your_company.com
|
|
||||||
type: string
|
|
||||||
app-group:
|
|
||||||
default: dev
|
|
||||||
examples:
|
|
||||||
- dev
|
|
||||||
type: string
|
|
||||||
domain:
|
|
||||||
default: your-company
|
|
||||||
examples:
|
|
||||||
- your-company
|
|
||||||
type: string
|
|
||||||
sub-domain:
|
|
||||||
default: dbgate
|
|
||||||
examples:
|
|
||||||
- dbgate
|
|
||||||
type: string
|
|
||||||
issuer:
|
|
||||||
default: letsencrypt-prod
|
|
||||||
examples:
|
|
||||||
- letsencrypt-prod
|
|
||||||
type: string
|
|
||||||
maria:
|
maria:
|
||||||
default: []
|
default: []
|
||||||
examples:
|
examples:
|
||||||
@@ -174,35 +132,77 @@ options:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: array
|
type: array
|
||||||
pg:
|
images:
|
||||||
default: []
|
default:
|
||||||
|
dbgate:
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
registry: docker.io
|
||||||
|
repository: dbgate/dbgate
|
||||||
|
tag: 5.2.7-alpine
|
||||||
examples:
|
examples:
|
||||||
- []
|
- dbgate:
|
||||||
items:
|
pullPolicy: IfNotPresent
|
||||||
properties:
|
registry: docker.io
|
||||||
dbname:
|
repository: dbgate/dbgate
|
||||||
default: ''
|
tag: 5.2.7-alpine
|
||||||
type: string
|
properties:
|
||||||
name:
|
dbgate:
|
||||||
default: ''
|
default:
|
||||||
type: string
|
pullPolicy: IfNotPresent
|
||||||
namespace:
|
registry: docker.io
|
||||||
default: ''
|
repository: dbgate/dbgate
|
||||||
type: string
|
tag: 5.2.7-alpine
|
||||||
secret:
|
properties:
|
||||||
properties:
|
pullPolicy:
|
||||||
key:
|
default: IfNotPresent
|
||||||
default: ''
|
enum:
|
||||||
type: string
|
- Always
|
||||||
name:
|
- Never
|
||||||
default: ''
|
- IfNotPresent
|
||||||
type: string
|
type: string
|
||||||
type: object
|
registry:
|
||||||
username:
|
default: docker.io
|
||||||
default: ''
|
type: string
|
||||||
type: string
|
repository:
|
||||||
type: object
|
default: dbgate/dbgate
|
||||||
type: array
|
type: string
|
||||||
|
tag:
|
||||||
|
default: 5.2.7-alpine
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
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
|
||||||
|
ingress-class:
|
||||||
|
default: traefik
|
||||||
|
examples:
|
||||||
|
- traefik
|
||||||
|
type: string
|
||||||
dependencies:
|
dependencies:
|
||||||
- dist: null
|
- dist: null
|
||||||
category: share
|
category: share
|
||||||
|
|||||||
Reference in New Issue
Block a user