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:
|
2023-07-08 21:15:44 +00:00
|
|
|
- repoURL: 'https://git.minhas.io/Asara/k8s.git'
|
|
|
|
targetRevision: master
|
|
|
|
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
|
|
|
|
- repoURL: 'https://git.minhas.io/Asara/k8s.git'
|
|
|
|
targetRevision: master
|
|
|
|
ref: values
|
2023-07-08 18:58:17 +00:00
|
|
|
- repoURL: 'https://git.minhas.io/Asara/k8s.git'
|
|
|
|
targetRevision: master
|
|
|
|
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 }}
|