* 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>
58 lines
1.5 KiB
YAML
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 }}
|