From 91756269052b1a359e640ac59fa2fea7c20bc426 Mon Sep 17 00:00:00 2001 From: Carlos Santana Date: Tue, 21 Mar 2023 11:45:11 -0400 Subject: [PATCH] add project sourceNamespaces Signed-off-by: Carlos Santana --- .../argo-app-of-apps/dev/templates/ecsdemo-crystal.yaml | 4 ++++ .../argo-app-of-apps/dev/templates/ecsdemo-frontend.yaml | 6 +++++- .../argo-app-of-apps/dev/templates/ecsdemo-nodejs.yaml | 4 ++++ 3 files changed, 13 insertions(+), 1 deletion(-) 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