chnage tempalate generation

This commit is contained in:
2024-05-22 15:51:22 -05:00
parent b9b8883d01
commit a38906d4cc
2 changed files with 6 additions and 2 deletions

View File

@@ -20,9 +20,10 @@ spec:
repoURL: {{ $.Values.git.repo }} repoURL: {{ $.Values.git.repo }}
revision: {{ $.Values.git.revision }} revision: {{ $.Values.git.revision }}
directories: directories:
- path: "{{ $.Values.git.path }}/{{ $stack.name }}/*" - path: "clusters/{{ $.Values.cluster.name }}/{{ $stack.name }}/*"
template: template:
metadata: metadata:
name: '{{ `{{path.basename}}` }}'
spec: spec:
destination: destination:
name: in-cluster name: in-cluster
@@ -33,6 +34,8 @@ spec:
repoURL: {{ $.Values.git.repo }} repoURL: {{ $.Values.git.repo }}
targetRevision: {{ $.Values.git.revision }} targetRevision: {{ $.Values.git.revision }}
path: '{{ `{{path}}` }}' path: '{{ `{{path}}` }}'
helm:
releaseName: "{{ `{{path.basename}}` }}"
ignoreDifferences: ignoreDifferences:
{{- toYaml $stack.ignoreDifferences | nindent 8 }} {{- toYaml $stack.ignoreDifferences | nindent 8 }}
syncPolicy: syncPolicy:

View File

@@ -1,7 +1,8 @@
cluster:
name: cl01tl
git: git:
repo: git@github.com:alexlebens/infrastructure.git repo: git@github.com:alexlebens/infrastructure.git
revision: HEAD revision: HEAD
path: clusters/cl01tl
applicationSet: applicationSet:
- name: applications - name: applications
syncPolicy: syncPolicy: