KubeZero/charts/kubezero/templates/argocd.yaml

70 lines
1.7 KiB
YAML
Raw Normal View History

2020-11-30 17:30:06 +00:00
{{- define "argocd-values" }}
2020-11-26 13:21:10 +00:00
argo-cd:
controller:
metrics:
enabled: {{ .Values.metrics.enabled }}
repoServer:
metrics:
enabled: {{ .Values.metrics.enabled }}
server:
metrics:
enabled: {{ .Values.metrics.enabled }}
2020-11-30 17:30:06 +00:00
{{- with index .Values "argocd" "server" }}
2020-11-26 13:21:10 +00:00
{{- toYaml . | nindent 4 }}
{{- end }}
2021-11-11 13:53:23 +00:00
additionalProjects:
- name: kubezero
namespace: argocd
description: KubeZero - ZeroDownTime Kubernetes Platform
sourceRepos:
- {{ .Values.kubezero.repoURL }}
{{- with .Values.kubezero.gitSync.repoURL }}
- {{ . }}
{{- end }}
destinations:
- namespace: '*'
server: https://kubernetes.default.svc
clusterResourceWhitelist:
- group: '*'
kind: '*'
additionalApplications:
- name: kubezero-git-sync
namespace: argocd
project: kubezero
source:
repoURL: {{ .Values.kubezero.gitSync.repoURL }}
targetRevision: {{ .Values.kubezero.gitSync.targetRevision }}
path: {{ .Values.kubezero.gitSync.path }}
directory:
recurse: true
destination:
server: https://kubernetes.default.svc
namespace: argocd
{{- with .Values.kubezero.syncPolicy }}
syncPolicy:
{{- toYaml . | nindent 8 }}
{{- end }}
2020-11-30 17:30:06 +00:00
{{- with index .Values "argocd" "configs" }}
2020-11-26 13:21:10 +00:00
configs:
{{- toYaml . | nindent 4 }}
{{- end }}
2021-11-11 13:53:23 +00:00
2020-11-30 17:30:06 +00:00
{{- if and ( index .Values "argocd" "istio" "enabled" ) .Values.istio.enabled }}
2020-11-26 13:21:10 +00:00
istio:
2020-11-30 17:30:06 +00:00
{{- with index .Values "argocd" "istio" }}
2020-11-26 13:21:10 +00:00
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end }}
{{- end }}
{{- define "argocd-argo" }}
2020-11-26 13:21:10 +00:00
{{- end }}
{{ include "kubezero-app.app" . }}