add with statements around project templates for source/destinations (#1678)

Signed-off-by: lukepatrick <lukephilips@gmail.com>

Signed-off-by: lukepatrick <lukephilips@gmail.com>
Co-authored-by: Petr Drastil <petr.drastil@gmail.com>
This commit is contained in:
Luke 2022-12-02 06:26:17 -07:00 committed by GitHub
parent 48e16abc42
commit 462fde1f29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 5 deletions

View file

@ -23,10 +23,14 @@ metadata:
{{- end }}
spec:
description: {{ .description }}
{{- with .sourceRepos }}
sourceRepos:
{{- toYaml .sourceRepos | nindent 4 }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .destinations }}
destinations:
{{- toYaml .destinations | nindent 4 }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .clusterResourceWhitelist }}
clusterResourceWhitelist:
{{- toYaml . | nindent 4 }}