fix
This commit is contained in:
@@ -6,43 +6,65 @@ metadata:
|
||||
name: domain
|
||||
description: null
|
||||
options:
|
||||
auth:
|
||||
apps:
|
||||
default:
|
||||
enable: true
|
||||
enable: false
|
||||
nextcloud:
|
||||
enable: true
|
||||
examples:
|
||||
- enable: true
|
||||
- enable: false
|
||||
nextcloud:
|
||||
enable: true
|
||||
properties:
|
||||
enable:
|
||||
default: true
|
||||
default: false
|
||||
type: boolean
|
||||
nextcloud:
|
||||
default:
|
||||
enable: true
|
||||
properties:
|
||||
enable:
|
||||
default: true
|
||||
type: boolean
|
||||
type: object
|
||||
type: object
|
||||
ingress-class:
|
||||
default: traefik
|
||||
examples:
|
||||
- traefik
|
||||
type: string
|
||||
infra:
|
||||
domain-name:
|
||||
default: your_company.com
|
||||
examples:
|
||||
- your_company.com
|
||||
type: string
|
||||
ci:
|
||||
default:
|
||||
enable: false
|
||||
traefik:
|
||||
enable: false
|
||||
gitea:
|
||||
enable: true
|
||||
examples:
|
||||
- enable: false
|
||||
traefik:
|
||||
enable: false
|
||||
gitea:
|
||||
enable: true
|
||||
properties:
|
||||
enable:
|
||||
default: false
|
||||
type: boolean
|
||||
traefik:
|
||||
gitea:
|
||||
default:
|
||||
enable: false
|
||||
enable: true
|
||||
properties:
|
||||
enable:
|
||||
default: false
|
||||
default: true
|
||||
type: boolean
|
||||
type: object
|
||||
type: object
|
||||
issuer:
|
||||
default: letsencrypt-prod
|
||||
examples:
|
||||
- letsencrypt-prod
|
||||
type: string
|
||||
erp:
|
||||
default:
|
||||
dolibarr:
|
||||
@@ -65,36 +87,16 @@ options:
|
||||
default: false
|
||||
type: boolean
|
||||
type: object
|
||||
distributions:
|
||||
auth:
|
||||
default:
|
||||
core: core
|
||||
domain: domain
|
||||
enable: true
|
||||
examples:
|
||||
- core: core
|
||||
domain: domain
|
||||
properties:
|
||||
core:
|
||||
default: core
|
||||
type: string
|
||||
domain:
|
||||
default: domain
|
||||
type: string
|
||||
type: object
|
||||
devspaces:
|
||||
default:
|
||||
enable: false
|
||||
examples:
|
||||
- enable: false
|
||||
- enable: true
|
||||
properties:
|
||||
enable:
|
||||
default: false
|
||||
default: true
|
||||
type: boolean
|
||||
type: object
|
||||
domain-name:
|
||||
default: your_company.com
|
||||
examples:
|
||||
- your_company.com
|
||||
type: string
|
||||
backups:
|
||||
default:
|
||||
enable: false
|
||||
@@ -125,6 +127,75 @@ options:
|
||||
default: backup-settings
|
||||
type: string
|
||||
type: object
|
||||
infra:
|
||||
default:
|
||||
enable: false
|
||||
traefik:
|
||||
enable: false
|
||||
examples:
|
||||
- enable: false
|
||||
traefik:
|
||||
enable: false
|
||||
properties:
|
||||
enable:
|
||||
default: false
|
||||
type: boolean
|
||||
traefik:
|
||||
default:
|
||||
enable: false
|
||||
properties:
|
||||
enable:
|
||||
default: false
|
||||
type: boolean
|
||||
type: object
|
||||
type: object
|
||||
devspaces:
|
||||
default:
|
||||
enable: false
|
||||
examples:
|
||||
- enable: false
|
||||
properties:
|
||||
enable:
|
||||
default: false
|
||||
type: boolean
|
||||
type: object
|
||||
distributions:
|
||||
default:
|
||||
core: core
|
||||
domain: domain
|
||||
examples:
|
||||
- core: core
|
||||
domain: domain
|
||||
properties:
|
||||
core:
|
||||
default: core
|
||||
type: string
|
||||
domain:
|
||||
default: domain
|
||||
type: string
|
||||
type: object
|
||||
mail:
|
||||
default:
|
||||
enable: false
|
||||
wildduck:
|
||||
enable: true
|
||||
examples:
|
||||
- enable: false
|
||||
wildduck:
|
||||
enable: true
|
||||
properties:
|
||||
enable:
|
||||
default: false
|
||||
type: boolean
|
||||
wildduck:
|
||||
default:
|
||||
enable: true
|
||||
properties:
|
||||
enable:
|
||||
default: true
|
||||
type: boolean
|
||||
type: object
|
||||
type: object
|
||||
storage-classes:
|
||||
default:
|
||||
BlockReadWriteMany: ''
|
||||
@@ -150,77 +221,6 @@ options:
|
||||
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:
|
||||
default:
|
||||
enable: false
|
||||
wildduck:
|
||||
enable: true
|
||||
examples:
|
||||
- enable: false
|
||||
wildduck:
|
||||
enable: true
|
||||
properties:
|
||||
enable:
|
||||
default: false
|
||||
type: boolean
|
||||
wildduck:
|
||||
default:
|
||||
enable: true
|
||||
properties:
|
||||
enable:
|
||||
default: true
|
||||
type: boolean
|
||||
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: []
|
||||
providers:
|
||||
kubernetes: null
|
||||
|
||||
@@ -81,7 +81,27 @@ locals {
|
||||
"name" = "gitea-gitea-pg-app"
|
||||
"key" = "password"
|
||||
}
|
||||
}]:[])
|
||||
}]:[], lookup(var.devspaces, "external-pgs", []))
|
||||
external-mongos = concat(var.mail.enable&&var.mail.wildduck.enable?[{
|
||||
"name" = "wildduck-wildduck-mongo"
|
||||
"dbname" = "wildduck"
|
||||
"username" = "wildduck"
|
||||
"namespace" = "${var.namespace}-mail"
|
||||
"secret" = {
|
||||
"name" = "wildduck-wildduck-mongo"
|
||||
"key" = "password"
|
||||
}
|
||||
}]:[], lookup(var.devspaces, "external-mongos", []))
|
||||
external-redis = concat(var.mail.enable&&var.mail.wildduck.enable?[{
|
||||
"name" = "wildduck-wildduck-redis"
|
||||
"namespace" = "${var.namespace}-mail"
|
||||
}]:[], var.erp.enable&&var.erp.dolibarr.enable?[{
|
||||
"name" = "dolibarr-dolibarr-redis"
|
||||
"namespace" = "${var.namespace}-erp"
|
||||
}]:[], var.apps.enable&&var.apps.nextcloud.enable?[{
|
||||
"name" = "nextcloud-nextcloud-redis"
|
||||
"namespace" = "${var.namespace}-files"
|
||||
}]:[], lookup(var.devspaces, "external-redis", []))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -194,6 +214,6 @@ resource "kubectl_manifest" "devspaces" {
|
||||
distrib: "${var.distributions.domain}"
|
||||
category: "meta"
|
||||
component: "domain-devspaces"
|
||||
options: ${jsonencode(merge(local.global, local.devspaces-custom, local.devspaces))}
|
||||
options: ${jsonencode(merge(local.global, local.devspaces, local.devspaces-custom))}
|
||||
EOF
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user