From 88cc31392a29761f5b278c0be6af355ee564a3ec Mon Sep 17 00:00:00 2001 From: LordMathis Date: Tue, 24 Dec 2024 17:31:01 +0100 Subject: [PATCH] Use configmap name referrence --- apps/prod/authelia/kustomization.yaml | 5 +++-- apps/prod/authelia/kustomizeconfig.yaml | 7 +++++++ apps/prod/gitea/kustomization.yaml | 5 +++-- apps/prod/gitea/kustomizeconfig.yaml | 7 +++++++ infrastructure/controllers/traefik/kustomization.yaml | 5 +++-- infrastructure/controllers/traefik/kustomizeconfig.yaml | 7 +++++++ 6 files changed, 30 insertions(+), 6 deletions(-) create mode 100644 apps/prod/authelia/kustomizeconfig.yaml create mode 100644 apps/prod/gitea/kustomizeconfig.yaml create mode 100644 infrastructure/controllers/traefik/kustomizeconfig.yaml diff --git a/apps/prod/authelia/kustomization.yaml b/apps/prod/authelia/kustomization.yaml index f713b90..8ada8c5 100644 --- a/apps/prod/authelia/kustomization.yaml +++ b/apps/prod/authelia/kustomization.yaml @@ -13,7 +13,8 @@ resources: configMapGenerator: - name: authelia-prod-values namespace: auth - options: - disableNameSuffixHash: true files: - values.yaml + +configurations: + - kustomizeconfig.yaml \ No newline at end of file diff --git a/apps/prod/authelia/kustomizeconfig.yaml b/apps/prod/authelia/kustomizeconfig.yaml new file mode 100644 index 0000000..a3b8f4c --- /dev/null +++ b/apps/prod/authelia/kustomizeconfig.yaml @@ -0,0 +1,7 @@ +# /apps/prod/authelia/kustomizeconfig.yaml +nameReference: +- kind: ConfigMap + version: v1 + fieldSpecs: + - path: spec/valuesFrom/name + kind: HelmRelease diff --git a/apps/prod/gitea/kustomization.yaml b/apps/prod/gitea/kustomization.yaml index f89312a..9a759e6 100644 --- a/apps/prod/gitea/kustomization.yaml +++ b/apps/prod/gitea/kustomization.yaml @@ -12,7 +12,8 @@ resources: configMapGenerator: - name: gitea-prod-values namespace: gitea - options: - disableNameSuffixHash: true files: - values.yaml + +configurations: + - kustomizeconfig.yaml \ No newline at end of file diff --git a/apps/prod/gitea/kustomizeconfig.yaml b/apps/prod/gitea/kustomizeconfig.yaml new file mode 100644 index 0000000..a3b8f4c --- /dev/null +++ b/apps/prod/gitea/kustomizeconfig.yaml @@ -0,0 +1,7 @@ +# /apps/prod/authelia/kustomizeconfig.yaml +nameReference: +- kind: ConfigMap + version: v1 + fieldSpecs: + - path: spec/valuesFrom/name + kind: HelmRelease diff --git a/infrastructure/controllers/traefik/kustomization.yaml b/infrastructure/controllers/traefik/kustomization.yaml index a3e3475..a631973 100644 --- a/infrastructure/controllers/traefik/kustomization.yaml +++ b/infrastructure/controllers/traefik/kustomization.yaml @@ -10,7 +10,8 @@ resources: configMapGenerator: - name: traefik-prod-values namespace: traefik - options: - disableNameSuffixHash: true files: - values.yaml + +configurations: + - kustomizeconfig.yaml \ No newline at end of file diff --git a/infrastructure/controllers/traefik/kustomizeconfig.yaml b/infrastructure/controllers/traefik/kustomizeconfig.yaml new file mode 100644 index 0000000..a3b8f4c --- /dev/null +++ b/infrastructure/controllers/traefik/kustomizeconfig.yaml @@ -0,0 +1,7 @@ +# /apps/prod/authelia/kustomizeconfig.yaml +nameReference: +- kind: ConfigMap + version: v1 + fieldSpecs: + - path: spec/valuesFrom/name + kind: HelmRelease