diff --git a/.argocd/templates/app.yaml b/.argocd/templates/app.yaml index 8b6c6cd..baec64b 100644 --- a/.argocd/templates/app.yaml +++ b/.argocd/templates/app.yaml @@ -1,7 +1,7 @@ apiVersion: argoproj.io/v1alpha1 kind: Application metadata: - name: {{ .Values.destination.name }}-app + name: {{ .Values.service }} namespace: {{ .Release.Namespace }} finalizers: - resources-finalizer.argocd.argoproj.io @@ -9,10 +9,10 @@ spec: project: {{ .Values.project }} destination: namespace: {{ .Values.destination.namespace }} - name: {{ .Values.destination.name }}-svc + name: {{ .Values.destination.name }} source: repoURL: {{ .Values.source.repoURL }} - path: {{ .Values.source.path }} + path: services/{{ .Values.service }} targetRevision: {{ .Values.source.targetRevision }} helm: version: v3 diff --git a/.argocd/values.yaml b/.argocd/values.yaml index 2cf3965..9cfa5b3 100644 --- a/.argocd/values.yaml +++ b/.argocd/values.yaml @@ -9,11 +9,11 @@ # parameters that pass in files from the config folder in each service. project: "" +service: "" destination: name: "" namespace: "" source: repoURL: "" targetRevision: "" - path: ""