k8s/argo/apps/templates/helm-apps.yaml
2024-01-27 18:53:00 +00:00

47 lines
1.1 KiB
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: 'https://git.devvul.com/Asara/k8s.git'
targetRevision: main
path: argo/secrets
helm:
valueFiles:
- $values/argo/{{ .app }}/values.yaml
- repoURL: {{ .repoURL }}
chart: {{ .chart }}
targetRevision: {{ .revision }}
helm:
valueFiles:
- $values/argo/{{ .app }}/values.yaml
- repoURL: 'https://git.devvul.com/Asara/k8s.git'
targetRevision: main
ref: values
- repoURL: 'https://git.devvul.com/Asara/k8s.git'
targetRevision: main
path: argo/istio-ingress
helm:
valueFiles:
- $values/argo/{{ .app }}/values.yaml
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
revisionHistoryLimit: 2
{{- if .ignoreDifferences }}
ignoreDifferences: {{- .ignoreDifferences | toYaml | trim | nindent 4 }}
{{- end }}
...
{{ end }}