fix
This commit is contained in:
@@ -7,12 +7,12 @@ locals {
|
|||||||
join("_",["DATABASE_pg", pg.namespace, pg.name, pg.dbname]) = pg.dbname
|
join("_",["DATABASE_pg", pg.namespace, pg.name, pg.dbname]) = pg.dbname
|
||||||
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 pg in var.pg: {
|
pg_secrets = merge([for index, pg in var.pg: {
|
||||||
join("_",["PASSWORD_pg", pg.namespace, pg.name, pg.dbname]) = data.kubernetes_secret_v1.pgs[index].data[pg.secret.key]
|
join("_",["PASSWORD_pg", pg.namespace, pg.name, pg.dbname]) = data.kubernetes_secret_v1.pgs[index].data[pg.secret.key]
|
||||||
}]...)
|
}]...)
|
||||||
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])]
|
||||||
|
|
||||||
maria_vars = merge([for m in var.maria: {
|
maria_vars = merge([for index, m in var.maria: {
|
||||||
join("_",["LABEL_maria", m.namespace, m.name]) = join(" | ",["maria", m.namespace, m.name])
|
join("_",["LABEL_maria", m.namespace, m.name]) = join(" | ",["maria", m.namespace, m.name])
|
||||||
join("_",["ENGINE_maria", m.namespace, m.name]) = "mysql@dbgate-plugin-mysql"
|
join("_",["ENGINE_maria", m.namespace, m.name]) = "mysql@dbgate-plugin-mysql"
|
||||||
join("_",["SERVER_maria", m.namespace, m.name]) = join(".",["${m.name}-svc", m.namespace, "svc"])
|
join("_",["SERVER_maria", m.namespace, m.name]) = join(".",["${m.name}-svc", m.namespace, "svc"])
|
||||||
@@ -25,7 +25,7 @@ locals {
|
|||||||
}]...)
|
}]...)
|
||||||
maria_conns = [for m in var.maria: join("_",["maria", m.namespace, m.name])]
|
maria_conns = [for m in var.maria: join("_",["maria", m.namespace, m.name])]
|
||||||
|
|
||||||
mongo_vars = merge([for m in var.mongo: {
|
mongo_vars = merge([for index, m in var.mongo: {
|
||||||
join("_",["LABEL_mongo", m.namespace, m.name]) = join(" | ",["mongo", m.namespace, m.name])
|
join("_",["LABEL_mongo", m.namespace, m.name]) = join(" | ",["mongo", m.namespace, m.name])
|
||||||
join("_",["ENGINE_mongo", m.namespace, m.name]) = "mongo@dbgate-plugin-mongo"
|
join("_",["ENGINE_mongo", m.namespace, m.name]) = "mongo@dbgate-plugin-mongo"
|
||||||
join("_",["SERVER_mongo", m.namespace, m.name]) = join(".",["${m.name}-svc", m.namespace, "svc"])
|
join("_",["SERVER_mongo", m.namespace, m.name]) = join(".",["${m.name}-svc", m.namespace, "svc"])
|
||||||
|
|||||||
@@ -6,35 +6,6 @@ metadata:
|
|||||||
name: dbgate
|
name: dbgate
|
||||||
description: null
|
description: null
|
||||||
options:
|
options:
|
||||||
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
|
|
||||||
images:
|
images:
|
||||||
default:
|
default:
|
||||||
dbgate:
|
dbgate:
|
||||||
@@ -74,10 +45,20 @@ options:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
ingress-class:
|
domain:
|
||||||
default: traefik
|
default: your-company
|
||||||
examples:
|
examples:
|
||||||
- traefik
|
- your-company
|
||||||
|
type: string
|
||||||
|
domain-name:
|
||||||
|
default: your_company.com
|
||||||
|
examples:
|
||||||
|
- your_company.com
|
||||||
|
type: string
|
||||||
|
app-group:
|
||||||
|
default: dev
|
||||||
|
examples:
|
||||||
|
- dev
|
||||||
type: string
|
type: string
|
||||||
storage:
|
storage:
|
||||||
default:
|
default:
|
||||||
@@ -106,21 +87,6 @@ options:
|
|||||||
- Block
|
- Block
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
sub-domain:
|
|
||||||
default: dbgate
|
|
||||||
examples:
|
|
||||||
- dbgate
|
|
||||||
type: string
|
|
||||||
domain-name:
|
|
||||||
default: your_company.com
|
|
||||||
examples:
|
|
||||||
- your_company.com
|
|
||||||
type: string
|
|
||||||
issuer:
|
|
||||||
default: letsencrypt-prod
|
|
||||||
examples:
|
|
||||||
- letsencrypt-prod
|
|
||||||
type: string
|
|
||||||
pg:
|
pg:
|
||||||
default: []
|
default: []
|
||||||
examples:
|
examples:
|
||||||
@@ -150,6 +116,55 @@ options:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: array
|
type: array
|
||||||
|
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
|
||||||
|
sub-domain:
|
||||||
|
default: dbgate
|
||||||
|
examples:
|
||||||
|
- dbgate
|
||||||
|
type: string
|
||||||
|
use-oauth:
|
||||||
|
default: false
|
||||||
|
examples:
|
||||||
|
- false
|
||||||
|
type: boolean
|
||||||
maria:
|
maria:
|
||||||
default: []
|
default: []
|
||||||
examples:
|
examples:
|
||||||
@@ -179,21 +194,6 @@ options:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: array
|
type: array
|
||||||
domain:
|
|
||||||
default: your-company
|
|
||||||
examples:
|
|
||||||
- your-company
|
|
||||||
type: string
|
|
||||||
app-group:
|
|
||||||
default: dev
|
|
||||||
examples:
|
|
||||||
- dev
|
|
||||||
type: string
|
|
||||||
use-oauth:
|
|
||||||
default: false
|
|
||||||
examples:
|
|
||||||
- false
|
|
||||||
type: boolean
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- dist: null
|
- dist: null
|
||||||
category: share
|
category: share
|
||||||
|
|||||||
@@ -6,140 +6,16 @@ metadata:
|
|||||||
name: domain
|
name: domain
|
||||||
description: null
|
description: null
|
||||||
options:
|
options:
|
||||||
backups:
|
auth:
|
||||||
default:
|
default:
|
||||||
enable: false
|
enable: true
|
||||||
endpoint: ''
|
|
||||||
key-id-key: s3-id
|
|
||||||
secret-key: s3-secret
|
|
||||||
secret-name: backup-settings
|
|
||||||
examples:
|
examples:
|
||||||
- enable: false
|
- enable: true
|
||||||
endpoint: ''
|
|
||||||
key-id-key: s3-id
|
|
||||||
secret-key: s3-secret
|
|
||||||
secret-name: backup-settings
|
|
||||||
properties:
|
properties:
|
||||||
enable:
|
enable:
|
||||||
default: false
|
default: true
|
||||||
type: boolean
|
|
||||||
endpoint:
|
|
||||||
default: ''
|
|
||||||
type: string
|
|
||||||
key-id-key:
|
|
||||||
default: s3-id
|
|
||||||
type: string
|
|
||||||
secret-key:
|
|
||||||
default: s3-secret
|
|
||||||
type: string
|
|
||||||
secret-name:
|
|
||||||
default: backup-settings
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
devspaces:
|
|
||||||
default:
|
|
||||||
enable: false
|
|
||||||
examples:
|
|
||||||
- enable: false
|
|
||||||
properties:
|
|
||||||
enable:
|
|
||||||
default: false
|
|
||||||
type: boolean
|
type: boolean
|
||||||
type: object
|
type: object
|
||||||
apps:
|
|
||||||
default:
|
|
||||||
enable: false
|
|
||||||
nextcloud:
|
|
||||||
enable: true
|
|
||||||
examples:
|
|
||||||
- enable: false
|
|
||||||
nextcloud:
|
|
||||||
enable: true
|
|
||||||
properties:
|
|
||||||
enable:
|
|
||||||
default: false
|
|
||||||
type: boolean
|
|
||||||
nextcloud:
|
|
||||||
default:
|
|
||||||
enable: true
|
|
||||||
properties:
|
|
||||||
enable:
|
|
||||||
default: true
|
|
||||||
type: boolean
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
domain-name:
|
|
||||||
default: your_company.com
|
|
||||||
examples:
|
|
||||||
- your_company.com
|
|
||||||
type: string
|
|
||||||
distributions:
|
|
||||||
default:
|
|
||||||
core: core
|
|
||||||
domain: domain
|
|
||||||
examples:
|
|
||||||
- core: core
|
|
||||||
domain: domain
|
|
||||||
properties:
|
|
||||||
core:
|
|
||||||
default: core
|
|
||||||
type: string
|
|
||||||
domain:
|
|
||||||
default: domain
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
ci:
|
|
||||||
default:
|
|
||||||
enable: false
|
|
||||||
gitea:
|
|
||||||
enable: true
|
|
||||||
examples:
|
|
||||||
- enable: false
|
|
||||||
gitea:
|
|
||||||
enable: true
|
|
||||||
properties:
|
|
||||||
enable:
|
|
||||||
default: false
|
|
||||||
type: boolean
|
|
||||||
gitea:
|
|
||||||
default:
|
|
||||||
enable: true
|
|
||||||
properties:
|
|
||||||
enable:
|
|
||||||
default: true
|
|
||||||
type: boolean
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
storage-classes:
|
|
||||||
default:
|
|
||||||
BlockReadWriteMany: ''
|
|
||||||
BlockReadWriteOnce: ''
|
|
||||||
FilesystemReadWriteMany: ''
|
|
||||||
FilesystemReadWriteOnce: ''
|
|
||||||
examples:
|
|
||||||
- BlockReadWriteMany: ''
|
|
||||||
BlockReadWriteOnce: ''
|
|
||||||
FilesystemReadWriteMany: ''
|
|
||||||
FilesystemReadWriteOnce: ''
|
|
||||||
properties:
|
|
||||||
BlockReadWriteMany:
|
|
||||||
default: ''
|
|
||||||
type: string
|
|
||||||
BlockReadWriteOnce:
|
|
||||||
default: ''
|
|
||||||
type: string
|
|
||||||
FilesystemReadWriteMany:
|
|
||||||
default: ''
|
|
||||||
type: string
|
|
||||||
FilesystemReadWriteOnce:
|
|
||||||
default: ''
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
issuer:
|
|
||||||
default: letsencrypt-prod
|
|
||||||
examples:
|
|
||||||
- letsencrypt-prod
|
|
||||||
type: string
|
|
||||||
ingress-class:
|
ingress-class:
|
||||||
default: traefik
|
default: traefik
|
||||||
examples:
|
examples:
|
||||||
@@ -189,16 +65,118 @@ options:
|
|||||||
default: false
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
type: object
|
type: object
|
||||||
auth:
|
distributions:
|
||||||
default:
|
default:
|
||||||
enable: true
|
core: core
|
||||||
|
domain: domain
|
||||||
examples:
|
examples:
|
||||||
- enable: true
|
- core: core
|
||||||
|
domain: domain
|
||||||
|
properties:
|
||||||
|
core:
|
||||||
|
default: core
|
||||||
|
type: string
|
||||||
|
domain:
|
||||||
|
default: domain
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
devspaces:
|
||||||
|
default:
|
||||||
|
enable: false
|
||||||
|
examples:
|
||||||
|
- enable: false
|
||||||
properties:
|
properties:
|
||||||
enable:
|
enable:
|
||||||
default: true
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
type: object
|
type: object
|
||||||
|
domain-name:
|
||||||
|
default: your_company.com
|
||||||
|
examples:
|
||||||
|
- your_company.com
|
||||||
|
type: string
|
||||||
|
backups:
|
||||||
|
default:
|
||||||
|
enable: false
|
||||||
|
endpoint: ''
|
||||||
|
key-id-key: s3-id
|
||||||
|
secret-key: s3-secret
|
||||||
|
secret-name: backup-settings
|
||||||
|
examples:
|
||||||
|
- enable: false
|
||||||
|
endpoint: ''
|
||||||
|
key-id-key: s3-id
|
||||||
|
secret-key: s3-secret
|
||||||
|
secret-name: backup-settings
|
||||||
|
properties:
|
||||||
|
enable:
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
endpoint:
|
||||||
|
default: ''
|
||||||
|
type: string
|
||||||
|
key-id-key:
|
||||||
|
default: s3-id
|
||||||
|
type: string
|
||||||
|
secret-key:
|
||||||
|
default: s3-secret
|
||||||
|
type: string
|
||||||
|
secret-name:
|
||||||
|
default: backup-settings
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
storage-classes:
|
||||||
|
default:
|
||||||
|
BlockReadWriteMany: ''
|
||||||
|
BlockReadWriteOnce: ''
|
||||||
|
FilesystemReadWriteMany: ''
|
||||||
|
FilesystemReadWriteOnce: ''
|
||||||
|
examples:
|
||||||
|
- BlockReadWriteMany: ''
|
||||||
|
BlockReadWriteOnce: ''
|
||||||
|
FilesystemReadWriteMany: ''
|
||||||
|
FilesystemReadWriteOnce: ''
|
||||||
|
properties:
|
||||||
|
BlockReadWriteMany:
|
||||||
|
default: ''
|
||||||
|
type: string
|
||||||
|
BlockReadWriteOnce:
|
||||||
|
default: ''
|
||||||
|
type: string
|
||||||
|
FilesystemReadWriteMany:
|
||||||
|
default: ''
|
||||||
|
type: string
|
||||||
|
FilesystemReadWriteOnce:
|
||||||
|
default: ''
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
issuer:
|
||||||
|
default: letsencrypt-prod
|
||||||
|
examples:
|
||||||
|
- letsencrypt-prod
|
||||||
|
type: string
|
||||||
|
apps:
|
||||||
|
default:
|
||||||
|
enable: false
|
||||||
|
nextcloud:
|
||||||
|
enable: true
|
||||||
|
examples:
|
||||||
|
- enable: false
|
||||||
|
nextcloud:
|
||||||
|
enable: true
|
||||||
|
properties:
|
||||||
|
enable:
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
nextcloud:
|
||||||
|
default:
|
||||||
|
enable: true
|
||||||
|
properties:
|
||||||
|
enable:
|
||||||
|
default: true
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
mail:
|
mail:
|
||||||
default:
|
default:
|
||||||
enable: false
|
enable: false
|
||||||
@@ -221,6 +199,28 @@ options:
|
|||||||
type: boolean
|
type: boolean
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
|
ci:
|
||||||
|
default:
|
||||||
|
enable: false
|
||||||
|
gitea:
|
||||||
|
enable: true
|
||||||
|
examples:
|
||||||
|
- enable: false
|
||||||
|
gitea:
|
||||||
|
enable: true
|
||||||
|
properties:
|
||||||
|
enable:
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
gitea:
|
||||||
|
default:
|
||||||
|
enable: true
|
||||||
|
properties:
|
||||||
|
enable:
|
||||||
|
default: true
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
dependencies: []
|
dependencies: []
|
||||||
providers:
|
providers:
|
||||||
kubernetes: null
|
kubernetes: null
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ locals {
|
|||||||
"name" = "dolibarr-dolibarr-pg"
|
"name" = "dolibarr-dolibarr-pg"
|
||||||
"dbname" = "dolibarr"
|
"dbname" = "dolibarr"
|
||||||
"username" = "dolibarr"
|
"username" = "dolibarr"
|
||||||
"namespace" = "${var.domain}-erp"
|
"namespace" = "${var.namespace}-erp"
|
||||||
"secret" = {
|
"secret" = {
|
||||||
"name" = "dolibarr-dolibarr-pg-app"
|
"name" = "dolibarr-dolibarr-pg-app"
|
||||||
"key" = "password"
|
"key" = "password"
|
||||||
@@ -67,7 +67,7 @@ locals {
|
|||||||
"name" = "nextcloud-nextcloud-pg"
|
"name" = "nextcloud-nextcloud-pg"
|
||||||
"dbname" = "nextcloud"
|
"dbname" = "nextcloud"
|
||||||
"username" = "nextcloud"
|
"username" = "nextcloud"
|
||||||
"namespace" = "${var.domain}-files"
|
"namespace" = "${var.namespace}-files"
|
||||||
"secret" = {
|
"secret" = {
|
||||||
"name" = "nextcloud-nextcloud-pg-app"
|
"name" = "nextcloud-nextcloud-pg-app"
|
||||||
"key" = "password"
|
"key" = "password"
|
||||||
@@ -76,7 +76,7 @@ locals {
|
|||||||
"name" = "gitea-gitea-pg"
|
"name" = "gitea-gitea-pg"
|
||||||
"dbname" = "gitea"
|
"dbname" = "gitea"
|
||||||
"username" = "gitea"
|
"username" = "gitea"
|
||||||
"namespace" = "${var.domain}-ci"
|
"namespace" = "${var.namespace}-ci"
|
||||||
"secret" = {
|
"secret" = {
|
||||||
"name" = "gitea-gitea-pg-app"
|
"name" = "gitea-gitea-pg-app"
|
||||||
"key" = "password"
|
"key" = "password"
|
||||||
|
|||||||
Reference in New Issue
Block a user