{{- if .Values.installKubeZero }} # Add KubeZero app and project apiVersion: argoproj.io/v1alpha1 kind: AppProject metadata: name: kubezero namespace: argocd labels: {{- include "kubezero-lib.labels" . | nindent 4 }} spec: description: KubeZero - ZeroDownTime Kubernetes Platform # Add the git repo used for git-sync sourceRepos: - {{ .Values.kubezero.repoURL }} {{ with .Values.kubezero.gitSync.repoURL }} - {{ . }} {{- end }} # platform namespaces in the local cluster destinations: - namespace: argocd server: https://kubernetes.default.svc - namespace: kube-system server: https://kubernetes.default.svc - namespace: cert-manager server: https://kubernetes.default.svc - namespace: istio-system server: https://kubernetes.default.svc - namespace: istio-ingress server: https://kubernetes.default.svc - namespace: monitoring server: https://kubernetes.default.svc - namespace: elastic-system server: https://kubernetes.default.svc - namespace: logging server: https://kubernetes.default.svc clusterResourceWhitelist: - group: '*' kind: '*' --- apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: kubezero-git-sync namespace: argocd labels: {{- include "kubezero-lib.labels" . | nindent 4 }} spec: 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 4 }} {{- end }} {{- end }}