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

59 lines
1.5 KiB
YAML
Raw Normal View History

2019-11-04 16:17:25 -08:00
{{- if .Values.server.additionalProjects }}
apiVersion: v1
kind: List
items:
{{- range .Values.server.additionalProjects }}
2019-11-04 16:17:25 -08:00
- apiVersion: argoproj.io/v1alpha1
kind: AppProject
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: {{ . }}
{{- end }}
{{- with .finalizers }}
finalizers:
{{- toYaml . | nindent 8 }}
2019-11-04 16:17:25 -08:00
{{- end }}
spec:
description: {{ .description }}
sourceRepos:
{{- toYaml .sourceRepos | nindent 8 }}
2019-11-04 16:17:25 -08:00
destinations:
{{- toYaml .destinations | nindent 8 }}
{{- with .clusterResourceWhitelist }}
2019-11-04 16:17:25 -08:00
clusterResourceWhitelist:
{{- toYaml . | nindent 8 }}
2019-11-04 16:17:25 -08:00
{{- end }}
{{- with .namespaceResourceBlacklist }}
2019-11-04 16:17:25 -08:00
namespaceResourceBlacklist:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .namespaceResourceWhitelist }}
namespaceResourceWhitelist:
{{- toYaml . | nindent 8 }}
2019-11-04 16:17:25 -08:00
{{- end }}
{{- with .orphanedResources }}
2019-11-04 16:17:25 -08:00
orphanedResources:
{{- toYaml . | nindent 8 }}
2019-11-04 16:17:25 -08:00
{{- end }}
{{- with .roles }}
2019-11-04 16:17:25 -08:00
roles:
{{- toYaml . | nindent 8 }}
2019-11-04 16:17:25 -08:00
{{- end }}
{{- with .syncWindows }}
syncWindows:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- end }}