Fix
This commit is contained in:
@@ -37,7 +37,7 @@ resource "kubectl_manifest" "authentik" {
|
||||
namespace: "${var.namespace}-auth"
|
||||
labels: ${jsonencode(local.common-labels)}
|
||||
spec:
|
||||
distrib: "core"
|
||||
distrib: "${var.distributions.domain}"
|
||||
category: "share"
|
||||
component: "authentik"
|
||||
options: ${jsonencode(merge(local.global, local.authentik))}
|
||||
@@ -55,7 +55,7 @@ resource "kubectl_manifest" "authentik-ldap" {
|
||||
namespace: "${var.namespace}-auth"
|
||||
labels: ${jsonencode(local.common-labels)}
|
||||
spec:
|
||||
distrib: "core"
|
||||
distrib: "${var.distributions.domain}"
|
||||
category: "share"
|
||||
component: "authentik-ldap"
|
||||
options: ${jsonencode(merge(local.global, local.authentik-ldap))}
|
||||
@@ -73,7 +73,7 @@ resource "kubectl_manifest" "authentik-forward" {
|
||||
namespace: "${var.namespace}-auth"
|
||||
labels: ${jsonencode(local.common-labels)}
|
||||
spec:
|
||||
distrib: "core"
|
||||
distrib: "${var.distributions.domain}"
|
||||
category: "share"
|
||||
component: "authentik-forward"
|
||||
options: ${jsonencode(merge(local.global, local.authentik-forward))}
|
||||
|
||||
@@ -6,31 +6,26 @@ metadata:
|
||||
name: domain-auth
|
||||
description: null
|
||||
options:
|
||||
authentik-ldap:
|
||||
default:
|
||||
enable: false
|
||||
examples:
|
||||
- enable: false
|
||||
properties:
|
||||
enable:
|
||||
default: false
|
||||
type: boolean
|
||||
type: object
|
||||
issuer:
|
||||
default: letsencrypt-prod
|
||||
examples:
|
||||
- letsencrypt-prod
|
||||
type: string
|
||||
domain-name:
|
||||
default: your_company.com
|
||||
distributions:
|
||||
default:
|
||||
core: core
|
||||
domain: domain
|
||||
examples:
|
||||
- your_company.com
|
||||
type: string
|
||||
ingress-class:
|
||||
default: traefik
|
||||
examples:
|
||||
- traefik
|
||||
type: string
|
||||
- core: core
|
||||
domain: domain
|
||||
properties:
|
||||
core:
|
||||
default: core
|
||||
type: string
|
||||
domain:
|
||||
default: domain
|
||||
type: string
|
||||
type: object
|
||||
authentik:
|
||||
default:
|
||||
enable: true
|
||||
@@ -41,6 +36,21 @@ options:
|
||||
default: true
|
||||
type: boolean
|
||||
type: object
|
||||
authentik-ldap:
|
||||
default:
|
||||
enable: false
|
||||
examples:
|
||||
- enable: false
|
||||
properties:
|
||||
enable:
|
||||
default: false
|
||||
type: boolean
|
||||
type: object
|
||||
domain-name:
|
||||
default: your_company.com
|
||||
examples:
|
||||
- your_company.com
|
||||
type: string
|
||||
authentik-forward:
|
||||
default:
|
||||
enable: false
|
||||
@@ -51,6 +61,11 @@ options:
|
||||
default: false
|
||||
type: boolean
|
||||
type: object
|
||||
ingress-class:
|
||||
default: traefik
|
||||
examples:
|
||||
- traefik
|
||||
type: string
|
||||
domain:
|
||||
default: your-company
|
||||
examples:
|
||||
|
||||
@@ -35,7 +35,7 @@ resource "kubectl_manifest" "gitea" {
|
||||
namespace: "${var.namespace}-ci"
|
||||
labels: ${jsonencode(local.common-labels)}
|
||||
spec:
|
||||
distrib: "core"
|
||||
distrib: "${var.distributions.domain}"
|
||||
category: "apps"
|
||||
component: "gitea"
|
||||
options: ${jsonencode(merge(local.global, local.gitea))}
|
||||
|
||||
@@ -6,16 +6,6 @@ metadata:
|
||||
name: domain-ci
|
||||
description: null
|
||||
options:
|
||||
gitea:
|
||||
default:
|
||||
enable: true
|
||||
examples:
|
||||
- enable: true
|
||||
properties:
|
||||
enable:
|
||||
default: true
|
||||
type: boolean
|
||||
type: object
|
||||
domain-name:
|
||||
default: your_company.com
|
||||
examples:
|
||||
@@ -36,6 +26,31 @@ options:
|
||||
examples:
|
||||
- traefik
|
||||
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
|
||||
gitea:
|
||||
default:
|
||||
enable: true
|
||||
examples:
|
||||
- enable: true
|
||||
properties:
|
||||
enable:
|
||||
default: true
|
||||
type: boolean
|
||||
type: object
|
||||
dependencies: []
|
||||
providers:
|
||||
kubernetes: true
|
||||
|
||||
@@ -35,7 +35,7 @@ resource "kubectl_manifest" "dolibarr" {
|
||||
namespace: "${kubernetes_namespace_v1.erp-ns[0].metadata[0].name}"
|
||||
labels: ${jsonencode(local.common-labels)}
|
||||
spec:
|
||||
distrib: "core"
|
||||
distrib: "${var.distributions.domain}"
|
||||
category: "apps"
|
||||
component: "dolibarr"
|
||||
options: ${jsonencode(merge(local.global, local.dolibarr))}
|
||||
|
||||
@@ -6,21 +6,6 @@ metadata:
|
||||
name: domain-erp
|
||||
description: null
|
||||
options:
|
||||
domain-name:
|
||||
default: your_company.com
|
||||
examples:
|
||||
- your_company.com
|
||||
type: string
|
||||
dolibarr:
|
||||
default:
|
||||
enable: true
|
||||
examples:
|
||||
- enable: true
|
||||
properties:
|
||||
enable:
|
||||
default: true
|
||||
type: boolean
|
||||
type: object
|
||||
ingress-class:
|
||||
default: traefik
|
||||
examples:
|
||||
@@ -31,11 +16,41 @@ options:
|
||||
examples:
|
||||
- your-company
|
||||
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
|
||||
dolibarr:
|
||||
default:
|
||||
enable: true
|
||||
examples:
|
||||
- enable: true
|
||||
properties:
|
||||
enable:
|
||||
default: true
|
||||
type: boolean
|
||||
type: object
|
||||
issuer:
|
||||
default: letsencrypt-prod
|
||||
examples:
|
||||
- letsencrypt-prod
|
||||
type: string
|
||||
domain-name:
|
||||
default: your_company.com
|
||||
examples:
|
||||
- your_company.com
|
||||
type: string
|
||||
dependencies: []
|
||||
providers:
|
||||
kubernetes: true
|
||||
|
||||
@@ -37,7 +37,7 @@ resource "kubectl_manifest" "dns" {
|
||||
namespace: "${kubernetes_namespace_v1.infra-ns.name}"
|
||||
labels: ${jsonencode(local.common-labels)}
|
||||
spec:
|
||||
distrib: "core"
|
||||
distrib: "${var.distributions.domain}"
|
||||
category: "share"
|
||||
component: "dns"
|
||||
options: ${jsonencode(merge(local.global, local.dns))}
|
||||
@@ -55,7 +55,7 @@ resource "kubectl_manifest" "traefik" {
|
||||
namespace: "${var.traefik.namespace}"
|
||||
labels: ${jsonencode(local.common-labels)}
|
||||
spec:
|
||||
distrib: "core"
|
||||
distrib: "${var.distributions.domain}"
|
||||
category: "apps"
|
||||
component: "traefik-ui"
|
||||
options: ${jsonencode(merge(local.global, local.traefik))}
|
||||
@@ -72,9 +72,9 @@ resource "kubectl_manifest" "traefik" {
|
||||
namespace: "default"
|
||||
labels: ${jsonencode(local.common-labels)}
|
||||
spec:
|
||||
distrib: "core"
|
||||
distrib: "${var.distributions.domain}"
|
||||
category: "apps"
|
||||
component: "k8s-ui"
|
||||
component: "k8s-api"
|
||||
options: ${jsonencode(merge(local.global, local.api))}
|
||||
EOF
|
||||
}
|
||||
|
||||
@@ -6,16 +6,61 @@ metadata:
|
||||
name: domain-infra
|
||||
description: null
|
||||
options:
|
||||
ingress-class:
|
||||
default: traefik
|
||||
distributions:
|
||||
default:
|
||||
core: core
|
||||
domain: domain
|
||||
examples:
|
||||
- traefik
|
||||
- core: core
|
||||
domain: domain
|
||||
properties:
|
||||
core:
|
||||
default: core
|
||||
type: string
|
||||
domain:
|
||||
default: domain
|
||||
type: string
|
||||
type: object
|
||||
api:
|
||||
default:
|
||||
enable: false
|
||||
examples:
|
||||
- enable: false
|
||||
properties:
|
||||
enable:
|
||||
default: false
|
||||
type: boolean
|
||||
type: object
|
||||
domain:
|
||||
default: your-company
|
||||
examples:
|
||||
- your-company
|
||||
type: string
|
||||
issuer:
|
||||
default: letsencrypt-prod
|
||||
examples:
|
||||
- letsencrypt-prod
|
||||
type: string
|
||||
domain-name:
|
||||
default: your_company.com
|
||||
examples:
|
||||
- your_company.com
|
||||
type: string
|
||||
dns:
|
||||
default:
|
||||
enable: false
|
||||
examples:
|
||||
- enable: false
|
||||
properties:
|
||||
enable:
|
||||
default: false
|
||||
type: boolean
|
||||
type: object
|
||||
ingress-class:
|
||||
default: traefik
|
||||
examples:
|
||||
- traefik
|
||||
type: string
|
||||
traefik:
|
||||
default:
|
||||
enable: false
|
||||
@@ -31,36 +76,6 @@ options:
|
||||
default: traefik
|
||||
type: string
|
||||
type: object
|
||||
domain:
|
||||
default: your-company
|
||||
examples:
|
||||
- your-company
|
||||
type: string
|
||||
api:
|
||||
default:
|
||||
enable: false
|
||||
examples:
|
||||
- enable: false
|
||||
properties:
|
||||
enable:
|
||||
default: false
|
||||
type: boolean
|
||||
type: object
|
||||
issuer:
|
||||
default: letsencrypt-prod
|
||||
examples:
|
||||
- letsencrypt-prod
|
||||
type: string
|
||||
dns:
|
||||
default:
|
||||
enable: false
|
||||
examples:
|
||||
- enable: false
|
||||
properties:
|
||||
enable:
|
||||
default: false
|
||||
type: boolean
|
||||
type: object
|
||||
dependencies: []
|
||||
providers:
|
||||
kubernetes: true
|
||||
|
||||
@@ -16,27 +16,30 @@ options:
|
||||
default: true
|
||||
type: boolean
|
||||
type: object
|
||||
ci:
|
||||
default:
|
||||
enable: false
|
||||
gitea:
|
||||
enable: true
|
||||
ingress-class:
|
||||
default: traefik
|
||||
examples:
|
||||
- enable: false
|
||||
gitea:
|
||||
enable: true
|
||||
- traefik
|
||||
type: string
|
||||
domain-name:
|
||||
default: your_company.com
|
||||
examples:
|
||||
- your_company.com
|
||||
type: string
|
||||
distributions:
|
||||
default:
|
||||
core: core
|
||||
domain: domain
|
||||
examples:
|
||||
- core: core
|
||||
domain: domain
|
||||
properties:
|
||||
enable:
|
||||
default: false
|
||||
type: boolean
|
||||
gitea:
|
||||
default:
|
||||
enable: true
|
||||
properties:
|
||||
enable:
|
||||
default: true
|
||||
type: boolean
|
||||
type: object
|
||||
core:
|
||||
default: core
|
||||
type: string
|
||||
domain:
|
||||
default: domain
|
||||
type: string
|
||||
type: object
|
||||
erp:
|
||||
default:
|
||||
@@ -60,11 +63,33 @@ options:
|
||||
default: false
|
||||
type: boolean
|
||||
type: object
|
||||
domain-name:
|
||||
default: your_company.com
|
||||
issuer:
|
||||
default: letsencrypt-prod
|
||||
examples:
|
||||
- your_company.com
|
||||
- letsencrypt-prod
|
||||
type: string
|
||||
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
|
||||
infra:
|
||||
default:
|
||||
enable: false
|
||||
@@ -87,16 +112,6 @@ options:
|
||||
type: boolean
|
||||
type: object
|
||||
type: object
|
||||
issuer:
|
||||
default: letsencrypt-prod
|
||||
examples:
|
||||
- letsencrypt-prod
|
||||
type: string
|
||||
ingress-class:
|
||||
default: traefik
|
||||
examples:
|
||||
- traefik
|
||||
type: string
|
||||
dependencies: []
|
||||
providers:
|
||||
kubernetes: null
|
||||
|
||||
@@ -4,6 +4,7 @@ locals {
|
||||
"domain-name" = var.domain-name
|
||||
"issuer" = var.issuer
|
||||
"ingress-class" = var.ingress-class
|
||||
"distributions" = var.distributions
|
||||
}
|
||||
annotations = {
|
||||
"vynil.solidite.fr/meta" = "domain"
|
||||
@@ -42,7 +43,7 @@ resource "kubectl_manifest" "auth" {
|
||||
namespace: "${var.namespace}"
|
||||
labels: ${jsonencode(local.common-labels)}
|
||||
spec:
|
||||
distrib: "core"
|
||||
distrib: "${var.distributions.domain}"
|
||||
category: "meta"
|
||||
component: "domain-auth"
|
||||
options: ${jsonencode(merge(merge(local.global, local.auth), local.added-auth))}
|
||||
@@ -58,7 +59,7 @@ resource "kubectl_manifest" "infra" {
|
||||
namespace: "${var.namespace}"
|
||||
labels: ${jsonencode(local.common-labels)}
|
||||
spec:
|
||||
distrib: "core"
|
||||
distrib: "${var.distributions.domain}"
|
||||
category: "meta"
|
||||
component: "domain-infra"
|
||||
options: ${jsonencode(merge(local.global, local.infra))}
|
||||
@@ -74,7 +75,7 @@ resource "kubectl_manifest" "ci" {
|
||||
namespace: "${var.namespace}"
|
||||
labels: ${jsonencode(local.common-labels)}
|
||||
spec:
|
||||
distrib: "core"
|
||||
distrib: "${var.distributions.domain}"
|
||||
category: "meta"
|
||||
component: "domain-ci"
|
||||
options: ${jsonencode(merge(local.global, local.ci))}
|
||||
@@ -90,7 +91,7 @@ resource "kubectl_manifest" "erp" {
|
||||
namespace: "${var.namespace}"
|
||||
labels: ${jsonencode(local.common-labels)}
|
||||
spec:
|
||||
distrib: "core"
|
||||
distrib: "${var.distributions.domain}"
|
||||
category: "meta"
|
||||
component: "domain-erp"
|
||||
options: ${jsonencode(merge(local.global, local.erp))}
|
||||
|
||||
Reference in New Issue
Block a user