35 lines
811 B
YAML
35 lines
811 B
YAML
|
{{ range .Values.helmApps }}
|
||
|
apiVersion: argoproj.io/v1alpha1
|
||
|
kind: Application
|
||
|
metadata:
|
||
|
name: {{ .app }}
|
||
|
namespace: argocd
|
||
|
spec:
|
||
|
project: default
|
||
|
destination:
|
||
|
server: https://kubernetes.default.svc
|
||
|
namespace: {{ .namespace }}
|
||
|
sources:
|
||
|
- repoURL: {{ .repoURL }}
|
||
|
chart: {{ .chart }}
|
||
|
targetRevision: {{ .revision }}
|
||
|
helm:
|
||
|
valueFiles:
|
||
|
- $values/argo/{{ .app }}/values.yaml
|
||
|
- repoURL: 'https://git.minhas.io/Asara/k8s.git'
|
||
|
targetRevision: master
|
||
|
ref: values
|
||
|
syncPolicy:
|
||
|
automated:
|
||
|
prune: true
|
||
|
selfHeal: true
|
||
|
syncOptions:
|
||
|
- CreateNamespace=true
|
||
|
- ServerSideApply=true
|
||
|
revisionHistoryLimit: 2
|
||
|
{{- if .ignoreDifferences }}
|
||
|
ignoreDifferences: {{- .ignoreDifferences | toYaml | trim | nindent 4 }}
|
||
|
{{- end }}
|
||
|
---
|
||
|
{{ end }}
|