k8s/argo/apps/templates/helm-apps.yaml

48 lines
1.1 KiB
YAML
Raw Normal View History

2023-07-08 17:51:02 +00:00
{{ range .Values.helmApps }}
2023-07-08 18:58:17 +00:00
---
2023-07-08 17:51:02 +00:00
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: {{ .app }}
namespace: argocd
spec:
project: default
destination:
server: https://kubernetes.default.svc
namespace: {{ .namespace }}
sources:
2024-01-27 18:53:00 +00:00
- repoURL: 'https://git.devvul.com/Asara/k8s.git'
2023-07-10 17:59:46 +00:00
targetRevision: main
2023-07-08 21:15:44 +00:00
path: argo/secrets
helm:
valueFiles:
- $values/argo/{{ .app }}/values.yaml
2023-07-08 17:51:02 +00:00
- repoURL: {{ .repoURL }}
chart: {{ .chart }}
targetRevision: {{ .revision }}
helm:
valueFiles:
- $values/argo/{{ .app }}/values.yaml
2024-01-27 18:53:00 +00:00
- repoURL: 'https://git.devvul.com/Asara/k8s.git'
2023-07-10 17:59:46 +00:00
targetRevision: main
2023-07-08 17:51:02 +00:00
ref: values
2024-01-27 18:53:00 +00:00
- repoURL: 'https://git.devvul.com/Asara/k8s.git'
2023-07-10 17:59:46 +00:00
targetRevision: main
2023-07-08 18:58:17 +00:00
path: argo/istio-ingress
2023-07-08 19:08:25 +00:00
helm:
valueFiles:
- $values/argo/{{ .app }}/values.yaml
2023-07-08 17:51:02 +00:00
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
revisionHistoryLimit: 2
{{- if .ignoreDifferences }}
ignoreDifferences: {{- .ignoreDifferences | toYaml | trim | nindent 4 }}
{{- end }}
2023-07-08 18:58:17 +00:00
...
2023-07-08 17:51:02 +00:00
{{ end }}