argocd-helm/charts/argo-cd/templates/argocd-configs/applications.yaml

46 lines
1.2 KiB
YAML
Raw Normal View History

2019-11-04 16:17:25 -08:00
{{- if .Values.server.additionalApplications }}
apiVersion: v1
kind: List
items:
{{- range .Values.server.additionalApplications }}
2019-11-04 16:17:25 -08:00
- apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
{{- with .additionalAnnotations }}
2019-11-04 16:17:25 -08:00
annotations:
{{- range $key, $value := . }}
2019-11-04 16:17:25 -08:00
{{ $key }}: {{ $value | quote }}
{{- end }}
2019-11-04 16:17:25 -08:00
{{- end }}
{{- with .additionalLabels }}
2019-11-04 16:17:25 -08:00
labels:
{{- toYaml . | nindent 8 }}
2019-11-04 16:17:25 -08:00
{{- end }}
name: {{ .name }}
{{- with .namespace }}
namespace: {{ . }}
2019-11-04 16:17:25 -08:00
{{- end }}
{{- with .finalizers }}
2019-11-04 16:17:25 -08:00
finalizers:
{{- toYaml . | nindent 8 }}
2019-11-04 16:17:25 -08:00
{{- end }}
spec:
project: {{ tpl .project $ }}
source:
{{- toYaml .source | nindent 8 }}
2019-11-04 16:17:25 -08:00
destination:
{{- toYaml .destination | nindent 8 }}
{{- with .syncPolicy }}
2019-11-04 16:17:25 -08:00
syncPolicy:
{{- toYaml . | nindent 8 }}
2019-11-04 16:17:25 -08:00
{{- end }}
{{- with .ignoreDifferences }}
2019-11-04 16:17:25 -08:00
ignoreDifferences:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .info }}
info:
{{- toYaml . | nindent 8 }}
2019-11-04 16:17:25 -08:00
{{- end }}
{{- end }}
2019-11-04 16:17:25 -08:00
{{- end }}