From 374ca1a647fa92de85b2ebd71a8558bb491a34f2 Mon Sep 17 00:00:00 2001 From: Brandon Schmitt Date: Mon, 8 Jul 2019 17:38:50 +0200 Subject: [PATCH] Removed empty line after imagePullSecrets if it is set. `toYaml` currently and unintentionally creates a new line at the end of its output. This is going to be fixed in Helm 3 but not in Helm 2 since it would break existing charts (see https://github.com/helm/helm/issues/3470). Signed-off-by: Brandon Schmitt --- charts/hawkbit-update-server/templates/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/hawkbit-update-server/templates/deployment.yaml b/charts/hawkbit-update-server/templates/deployment.yaml index 19997443..cc0c05a6 100644 --- a/charts/hawkbit-update-server/templates/deployment.yaml +++ b/charts/hawkbit-update-server/templates/deployment.yaml @@ -23,7 +23,7 @@ spec: spec: {{- with .Values.image.pullSecrets }} imagePullSecrets: - {{- toYaml . | nindent 8 }} + {{- toYaml . | trimSuffix "\n" | nindent 8 }} {{- end }} containers: - name: {{ .Chart.Name }}