From c42091a48385ff0f6330b37a2ce8c7e501b5672c Mon Sep 17 00:00:00 2001 From: Clemens Wolff Date: Mon, 25 Mar 2019 14:00:32 -0400 Subject: [PATCH] Make helm template structure more explicit --- .../agogosml/templates/input-reader-deployment.yaml | 6 ++++-- .../agogosml/templates/instance-app-deployment-slot1.yaml | 8 +++++--- .../agogosml/templates/instance-app-deployment-slot2.yaml | 8 +++++--- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/agogosml_cli/cli/templates/{{cookiecutter.PROJECT_NAME_SLUG}}/deployment/helm_chart/agogosml/templates/input-reader-deployment.yaml b/agogosml_cli/cli/templates/{{cookiecutter.PROJECT_NAME_SLUG}}/deployment/helm_chart/agogosml/templates/input-reader-deployment.yaml index b4ea115d..576d28e1 100644 --- a/agogosml_cli/cli/templates/{{cookiecutter.PROJECT_NAME_SLUG}}/deployment/helm_chart/agogosml/templates/input-reader-deployment.yaml +++ b/agogosml_cli/cli/templates/{{cookiecutter.PROJECT_NAME_SLUG}}/deployment/helm_chart/agogosml/templates/input-reader-deployment.yaml @@ -25,5 +25,7 @@ spec: envFrom: - configMapRef: name: {{ .Release.Name }}-input-reader-config - {{ if .Values.registry }}imagePullSecrets: - - name: {{ .Values.imagePullSecret}}{{ end }} \ No newline at end of file + {{ if .Values.registry }} + imagePullSecrets: + - name: {{ .Values.imagePullSecret}} + {{ end }} diff --git a/agogosml_cli/cli/templates/{{cookiecutter.PROJECT_NAME_SLUG}}/deployment/helm_chart/agogosml/templates/instance-app-deployment-slot1.yaml b/agogosml_cli/cli/templates/{{cookiecutter.PROJECT_NAME_SLUG}}/deployment/helm_chart/agogosml/templates/instance-app-deployment-slot1.yaml index 94725995..84e0ee58 100644 --- a/agogosml_cli/cli/templates/{{cookiecutter.PROJECT_NAME_SLUG}}/deployment/helm_chart/agogosml/templates/instance-app-deployment-slot1.yaml +++ b/agogosml_cli/cli/templates/{{cookiecutter.PROJECT_NAME_SLUG}}/deployment/helm_chart/agogosml/templates/instance-app-deployment-slot1.yaml @@ -37,8 +37,10 @@ spec: envFrom: - configMapRef: name: {{ $configName }} - {{ if $root.Values.registry }}imagePullSecrets: - - name: {{ $root.Values.imagePullSecret}}{{ end }} + {{ if $root.Values.registry }} + imagePullSecrets: + - name: {{ $root.Values.imagePullSecret}} + {{ end }} --- {{- end }} -{{ end }} \ No newline at end of file +{{ end }} diff --git a/agogosml_cli/cli/templates/{{cookiecutter.PROJECT_NAME_SLUG}}/deployment/helm_chart/agogosml/templates/instance-app-deployment-slot2.yaml b/agogosml_cli/cli/templates/{{cookiecutter.PROJECT_NAME_SLUG}}/deployment/helm_chart/agogosml/templates/instance-app-deployment-slot2.yaml index f9daec74..5a99dc57 100644 --- a/agogosml_cli/cli/templates/{{cookiecutter.PROJECT_NAME_SLUG}}/deployment/helm_chart/agogosml/templates/instance-app-deployment-slot2.yaml +++ b/agogosml_cli/cli/templates/{{cookiecutter.PROJECT_NAME_SLUG}}/deployment/helm_chart/agogosml/templates/instance-app-deployment-slot2.yaml @@ -37,8 +37,10 @@ spec: envFrom: - configMapRef: name: {{ $configName }} - {{ if $root.Values.registry }}imagePullSecrets: - - name: {{ $root.Values.imagePullSecret}}{{ end }} + {{ if $root.Values.registry }} + imagePullSecrets: + - name: {{ $root.Values.imagePullSecret}} + {{ end }} --- {{- end }} -{{ end }} \ No newline at end of file +{{ end }}