diff --git a/multi-repo/argo-app-of-apps/dev/templates/ecsdemo-crystal.yaml b/multi-repo/argo-app-of-apps/dev/templates/ecsdemo-crystal.yaml index 054a4ab5f..ea0191d69 100644 --- a/multi-repo/argo-app-of-apps/dev/templates/ecsdemo-crystal.yaml +++ b/multi-repo/argo-app-of-apps/dev/templates/ecsdemo-crystal.yaml @@ -13,6 +13,10 @@ spec: server: {{ .Values.destinationServer | default .Values.spec.destination.server }} sourceRepos: - {{ .Values.spec.apps.ecsdemoCrystal.repoURL }} + {{- with .Values.sourceNamespaces }} + sourceNamespaces: + {{- toYaml .| nindent 4 }} + {{- end }} --- {{- end }} apiVersion: argoproj.io/v1alpha1 diff --git a/multi-repo/argo-app-of-apps/dev/templates/ecsdemo-frontend.yaml b/multi-repo/argo-app-of-apps/dev/templates/ecsdemo-frontend.yaml index f37357eea..773dd85b3 100644 --- a/multi-repo/argo-app-of-apps/dev/templates/ecsdemo-frontend.yaml +++ b/multi-repo/argo-app-of-apps/dev/templates/ecsdemo-frontend.yaml @@ -13,8 +13,12 @@ spec: server: {{ .Values.destinationServer | default .Values.spec.destination.server }} sourceRepos: - {{ .Values.spec.apps.ecsdemoFrontend.repoURL }} -{{- end }} + {{- with .Values.sourceNamespaces }} + sourceNamespaces: + {{- toYaml .| nindent 4 }} + {{- end }} --- +{{- end }} apiVersion: argoproj.io/v1alpha1 kind: Application metadata: diff --git a/multi-repo/argo-app-of-apps/dev/templates/ecsdemo-nodejs.yaml b/multi-repo/argo-app-of-apps/dev/templates/ecsdemo-nodejs.yaml index a718814e3..1c67b624c 100644 --- a/multi-repo/argo-app-of-apps/dev/templates/ecsdemo-nodejs.yaml +++ b/multi-repo/argo-app-of-apps/dev/templates/ecsdemo-nodejs.yaml @@ -13,6 +13,10 @@ spec: server: {{ .Values.destinationServer | default .Values.spec.destination.server }} sourceRepos: - {{ .Values.spec.apps.ecsdemoNodejs.repoURL }} + {{- with .Values.sourceNamespaces }} + sourceNamespaces: + {{- toYaml .| nindent 4 }} + {{- end }} --- {{- end }} apiVersion: argoproj.io/v1alpha1