From a38906d4cc7f55eb518a6dc7411820f4d41057f9 Mon Sep 17 00:00:00 2001 From: alexlebens Date: Wed, 22 May 2024 15:51:22 -0500 Subject: [PATCH] chnage tempalate generation --- .../cl01tl/deployment/stack/templates/application-set.yaml | 5 ++++- clusters/cl01tl/deployment/stack/values.yaml | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/clusters/cl01tl/deployment/stack/templates/application-set.yaml b/clusters/cl01tl/deployment/stack/templates/application-set.yaml index 4825d078b..91761c380 100644 --- a/clusters/cl01tl/deployment/stack/templates/application-set.yaml +++ b/clusters/cl01tl/deployment/stack/templates/application-set.yaml @@ -20,9 +20,10 @@ spec: repoURL: {{ $.Values.git.repo }} revision: {{ $.Values.git.revision }} directories: - - path: "{{ $.Values.git.path }}/{{ $stack.name }}/*" + - path: "clusters/{{ $.Values.cluster.name }}/{{ $stack.name }}/*" template: metadata: + name: '{{ `{{path.basename}}` }}' spec: destination: name: in-cluster @@ -33,6 +34,8 @@ spec: repoURL: {{ $.Values.git.repo }} targetRevision: {{ $.Values.git.revision }} path: '{{ `{{path}}` }}' + helm: + releaseName: "{{ `{{path.basename}}` }}" ignoreDifferences: {{- toYaml $stack.ignoreDifferences | nindent 8 }} syncPolicy: diff --git a/clusters/cl01tl/deployment/stack/values.yaml b/clusters/cl01tl/deployment/stack/values.yaml index f2aad0f8f..9942bd968 100644 --- a/clusters/cl01tl/deployment/stack/values.yaml +++ b/clusters/cl01tl/deployment/stack/values.yaml @@ -1,7 +1,8 @@ +cluster: + name: cl01tl git: repo: git@github.com:alexlebens/infrastructure.git revision: HEAD - path: clusters/cl01tl applicationSet: - name: applications syncPolicy: