1
0
Fork 0
k8s-cluster-aegir/apps-root-config/applications/templates/argo-approject.yaml

32 lines
896 B
YAML
Raw Permalink Normal View History

2025-01-11 20:58:54 +00:00
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: {{ .Release.Name }}
2025-01-11 22:11:40 +00:00
namespace: {{ default "argocd" .Values.argocdNamespace}}
2025-01-11 20:58:54 +00:00
spec:
sourceRepos:
- "{{ .Values.repository }}"
- "https://charts.truecharts.org/"
{{- if eq (len .Values.applications ) 0 }}
destinations: []
{{- else }}
destinations:
{{- if .Values.allowAllNamespaces }}
- namespace: '*'
server: "https://kubernetes.default.svc"
{{- else }}
{{- range $key, $value := .Values.applications }}
- namespace: {{ $key }}
server: "https://kubernetes.default.svc"
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.clusterResourceWhitelist }}
clusterResourceWhitelist:
{{- toYaml .Values.clusterResourceWhitelist | nindent 4 }}
{{- end }}
{{- if .Values.namespaceResourceBlacklist }}
namespaceResourceBlacklist:
{{- toYaml .Values.namespaceResourceBlacklist | nindent 4 -}}
{{- end }}