You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
heqet/charts/heqet/templates/heqet-apps.yaml

51 lines
1.5 KiB

{{- range .Values.heqet.apps }}
---
apiVersion: v1
kind: Namespace
metadata:
name: {{ .namespace | default .name | quote }}
annotations:
argocd.argoproj.io/sync-wave: "-1"
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: {{ .name | quote }}
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: {{ .project | default "default" }}
destination:
namespace: {{ .namespace | default .name | quote }}
server: {{ .server | default $.Values.heqet.defaults.server }}
source:
path: {{ .path | default "." | quote }}
repoURL: {{ .repoURL | default $.Values.heqet.defaults.repoURL | quote }}
targetRevision: {{ .targetRevision | default "HEAD" | quote }}
{{- if or .parameters .domain }}
helm:
{{- if .parameters }}
parameters:
{{- range .parameters }}
- name: {{ .name | quote }}
value: {{ .value | quote }}
{{- end }}
{{- end }}
{{- if and $.Values.ingress.enabled .domain }}
values: |-
{{- $shift := empty .ingress_prefix -}}
{{- $indent := ternary 8 10 $shift -}}
{{- if .ingress_prefix }}
{{ .ingress_prefix | indent 8 }}:
{{- end }}
{{- include "heqet.ingress" . | indent $indent -}}
{{- end }}
{{- end }}
syncPolicy:
automated:
# FIXME: Open Issue: https://github.com/helm/helm/issues/8026
prune: {{ $.Values.heqet.defaults.automated.prune | default false }}
selfHeal: {{ $.Values.heqet.defaults.automated.selfHeal | default false }}
{{- end }}