Added support for application config to template

This commit is contained in:
2023-10-29 19:50:37 +01:00
parent 66c10b31af
commit ccf5b2bacd
3 changed files with 35 additions and 5 deletions
+20
View File
@@ -0,0 +1,20 @@
{{- define "template.application" -}}
{{- if .Values.argocd.enabled }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: {{ include "template.fullname" . }}
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: {{ .Values.argocd.project }}
source:
repoURL: {{ .Values.argocd.repoURL }}
targetRevision: {{ .Values.argocd.targetRevision }}
path: {{ .Values.argocd.pathInRepo }}
destination:
server: https://kubernetes.default.svc
namespace: {{ .Values.application.namespace }}
{{- end }}
{{- end }}