Skip to content

Commit

Permalink
add project sourceNamespaces
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Santana <[email protected]>
  • Loading branch information
csantanapr committed Mar 21, 2023
1 parent 8d74e50 commit 9175626
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions multi-repo/argo-app-of-apps/dev/templates/ecsdemo-nodejs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9175626

Please sign in to comment.