38 lines
1011 B
YAML
38 lines
1011 B
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: ApplicationSet
|
|
metadata:
|
|
name: helm-releases
|
|
namespace: argo-system
|
|
spec:
|
|
syncPolicy:
|
|
preserveResourcesOnDeletion: true
|
|
generators:
|
|
- git:
|
|
repoURL: https://git.badhouseplants.net/allanger/helmfile-vs-argo.git
|
|
revision: argo-applicationset-main
|
|
files:
|
|
- path: "cluster1/*"
|
|
- git:
|
|
repoURL: https://git.badhouseplants.net/allanger/helmfile-vs-argo.git
|
|
revision: argo-applicationset-main
|
|
files:
|
|
- path: "common/*"
|
|
template:
|
|
metadata:
|
|
name: "{{ argo.application }}"
|
|
namespace: argo-system
|
|
spec:
|
|
project: "{{ argo.project }}"
|
|
source:
|
|
helm:
|
|
valueFiles:
|
|
- values.yaml
|
|
values: |-
|
|
{{ values }}
|
|
repoURL: "{{ chart.repo }}"
|
|
targetRevision: "{{ chart.version }}"
|
|
chart: "{{ chart.name }}"
|
|
destination:
|
|
server: "{{ argo.cluster }}"
|
|
namespace: "{{ argo.namespace }}"
|