Add app-of-apps Helm chart for ArgoCD
Renders ArgoCD Applications from values.yaml, including one for the valheim-gitops chart. Includes a one-time bootstrap manifest to register this chart itself as an ArgoCD Application. Co-authored-by: Copilot <[email protected]>
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
{{- range .Values.applications }}
|
||||
{{- if .enabled }}
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: {{ .name }}
|
||||
namespace: {{ $.Values.argocd.namespace }}
|
||||
finalizers:
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
spec:
|
||||
project: {{ $.Values.argocd.project }}
|
||||
source:
|
||||
repoURL: {{ .source.repoURL }}
|
||||
targetRevision: {{ .source.targetRevision }}
|
||||
path: {{ .source.path }}
|
||||
{{- if or (and .source.helm .source.helm.parameters) (and .source.helm .source.helm.valueFiles) }}
|
||||
helm:
|
||||
{{- if .source.helm.parameters }}
|
||||
parameters:
|
||||
{{- toYaml .source.helm.parameters | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- if .source.helm.valueFiles }}
|
||||
valueFiles:
|
||||
{{- toYaml .source.helm.valueFiles | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
destination:
|
||||
server: {{ .destination.server }}
|
||||
namespace: {{ .destination.namespace }}
|
||||
{{- if .syncPolicy }}
|
||||
syncPolicy:
|
||||
{{- toYaml .syncPolicy | nindent 4 }}
|
||||
{{- end }}
|
||||
---
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user