argocd-helm/charts/argo-cd/templates/argocd-configs/projects.yaml
Marco Kilchhofer 694f8b4fe9
feat(argo-cd): Add ability to pass finalizers to AppProject (#982)
* feat(argo-cd): Add ability to pass finalizers to AppProject

Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>

* chore: Use 'with' instead of 'if' and beautify indent style

Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>

* docs: Add finalizers to example in values.yaml

Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
2021-10-19 17:59:08 +01:00

58 lines
1.5 KiB
YAML

{{- if .Values.server.additionalProjects }}
apiVersion: v1
kind: List
items:
{{- range .Values.server.additionalProjects }}
- apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
{{- with .additionalAnnotations }}
annotations:
{{- range $key, $value := . }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
{{- with .additionalLabels }}
labels:
{{- toYaml . | nindent 8 }}
{{- end }}
name: {{ .name }}
{{- with .namespace }}
namespace: {{ . }}
{{- end }}
{{- with .finalizers }}
finalizers:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
description: {{ .description }}
sourceRepos:
{{- toYaml .sourceRepos | nindent 8 }}
destinations:
{{- toYaml .destinations | nindent 8 }}
{{- with .clusterResourceWhitelist }}
clusterResourceWhitelist:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .namespaceResourceBlacklist }}
namespaceResourceBlacklist:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .namespaceResourceWhitelist }}
namespaceResourceWhitelist:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .orphanedResources }}
orphanedResources:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .roles }}
roles:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .syncWindows }}
syncWindows:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- end }}