This commit is contained in:
2023-10-20 12:56:14 +02:00
parent 7b42220010
commit 0a835d7e29
2 changed files with 92 additions and 68 deletions

View File

@@ -6,37 +6,35 @@ metadata:
name: domain
description: null
options:
apps:
storage-classes:
default:
enable: false
nextcloud:
enable: true
BlockReadWriteMany: ''
BlockReadWriteOnce: ''
FilesystemReadWriteMany: ''
FilesystemReadWriteOnce: ''
examples:
- enable: false
nextcloud:
enable: true
- BlockReadWriteMany: ''
BlockReadWriteOnce: ''
FilesystemReadWriteMany: ''
FilesystemReadWriteOnce: ''
properties:
enable:
default: false
type: boolean
nextcloud:
default:
enable: true
properties:
enable:
default: true
type: boolean
type: object
type: object
ingress-class:
default: traefik
examples:
- traefik
BlockReadWriteMany:
default: ''
type: string
domain-name:
default: your_company.com
BlockReadWriteOnce:
default: ''
type: string
FilesystemReadWriteMany:
default: ''
type: string
FilesystemReadWriteOnce:
default: ''
type: string
type: object
issuer:
default: letsencrypt-prod
examples:
- your_company.com
- letsencrypt-prod
type: string
ci:
default:
@@ -60,11 +58,6 @@ options:
type: boolean
type: object
type: object
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
erp:
default:
dolibarr:
@@ -87,16 +80,53 @@ options:
default: false
type: boolean
type: object
ingress-class:
default: traefik
examples:
- traefik
type: string
auth:
default:
authentik:
enable: true
enable: true
examples:
- enable: true
- authentik:
enable: true
enable: true
properties:
authentik:
default:
enable: true
properties:
enable:
default: true
type: boolean
type: object
enable:
default: true
type: boolean
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
backups:
default:
enable: false
@@ -159,20 +189,27 @@ options:
default: false
type: boolean
type: object
distributions:
apps:
default:
core: core
domain: domain
enable: false
nextcloud:
enable: true
examples:
- core: core
domain: domain
- enable: false
nextcloud:
enable: true
properties:
core:
default: core
type: string
domain:
default: domain
type: string
enable:
default: false
type: boolean
nextcloud:
default:
enable: true
properties:
enable:
default: true
type: boolean
type: object
type: object
mail:
default:
@@ -196,31 +233,6 @@ options:
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
dependencies: []
providers:
kubernetes: null

View File

@@ -72,6 +72,15 @@ locals {
"name" = "nextcloud-nextcloud-pg-app"
"key" = "password"
}
}]:[], var.auth.enable&&lookup(lookup(merge(var.auth,local.added-auth), "authentik",{}),"enable",false)?[{
"name" = "authentik-authentik-pg"
"dbname" = "authentik"
"username" = "authentik"
"namespace" = "${var.namespace}-auth"
"secret" = {
"name" = "authentik-authentik-pg-app"
"key" = "password"
}
}]:[], var.ci.enable&&var.ci.gitea.enable?[{
"name" = "gitea-gitea-pg"
"dbname" = "gitea"
@@ -95,6 +104,9 @@ locals {
external-redis = concat(var.mail.enable&&var.mail.wildduck.enable?[{
"name" = "wildduck-wildduck-redis"
"namespace" = "${var.namespace}-mail"
}]:[], var.auth.enable&&lookup(lookup(merge(var.auth,local.added-auth), "authentik",{}),"enable",false)?[{
"name" = "authentik-authentik-redis"
"namespace" = "${var.namespace}-auth"
}]:[], var.erp.enable&&var.erp.dolibarr.enable?[{
"name" = "dolibarr-dolibarr-redis"
"namespace" = "${var.namespace}-erp"