Load domain substitutions from ConfigMap

This commit is contained in:
Dreaded_X 2025-02-15 04:28:42 +01:00
parent 8775cbde8d
commit cd97b968a9
Signed by: Dreaded_X
GPG Key ID: FA5F485356B0D2D4
3 changed files with 16 additions and 10 deletions

View File

@ -16,11 +16,9 @@ spec:
kind: GitRepository
name: flux-system
postBuild:
substitute:
domain: staging.huizinga.dev
# Specifically for authelia
subdomain: .staging
topdomain: huizinga.dev
substituteFrom:
- kind: ConfigMap
name: domain-vars
path: ./apps
prune: true
wait: true

View File

@ -0,0 +1,10 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: domain-vars
namespace: flux-system
data:
domain: staging.huizinga.dev
# Specifically for authelia
subdomain: .staging
topdomain: huizinga.dev

View File

@ -17,11 +17,9 @@ spec:
kind: GitRepository
name: flux-system
postBuild:
substitute:
domain: staging.huizinga.dev
# Specifically for authelia
subdomain: .staging
topdomain: huizinga.dev
substituteFrom:
- kind: ConfigMap
name: domain-vars
path: ./infrastructure/controllers
prune: true
wait: true