From 06af4037156ada66dee4d1944d42f2dedc2c96b4 Mon Sep 17 00:00:00 2001 From: Tom Kerkhove Date: Wed, 17 Aug 2022 14:27:44 +0200 Subject: [PATCH] fix(helm): Helm charts generates invalid Deployment spec due to missing quotes (#135) * fix(helm): Helm charts generates invalid Deployment spec due to missing quotes * Remove empty line Signed-off-by: Tom Kerkhove * fix(helm): Helm charts generates invalid Deployment spec due to missing quotes * Remove empty line Signed-off-by: Tom Kerkhove * Dump Deployment spec for troubleshooting Signed-off-by: Tom Kerkhove * fetch-depth Signed-off-by: Tom Kerkhove * Specify ref Signed-off-by: Tom Kerkhove Signed-off-by: Tom Kerkhove --- .../templates/deployment.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/helm-charts/azure-api-management-gateway/templates/deployment.yaml b/helm-charts/azure-api-management-gateway/templates/deployment.yaml index 23dffb7..a406377 100644 --- a/helm-charts/azure-api-management-gateway/templates/deployment.yaml +++ b/helm-charts/azure-api-management-gateway/templates/deployment.yaml @@ -39,21 +39,21 @@ spec: - name: runtime.deployment.mechanism value: "Helm" - name: runtime.deployment.artifact.version - value: {{ .Chart.Version }} + value: {{ .Chart.Version | quote }} - name: runtime.deployment.orchestrator.type value: "Kubernetes" - name: runtime.deployment.highAvailability.enabled - value: {{ .Values.highAvailability.enabled }} + value: {{ .Values.highAvailability.enabled | quote }} - name: runtime.deployment.dapr.enabled - value: {{ .Values.dapr.enabled }} + value: {{ .Values.dapr.enabled | quote }} - name: config.service.auth valueFrom: secretKeyRef: - {{ if .Values.secret.createSecret -}} + {{- if .Values.secret.createSecret }} name: {{ include "azure-api-management-gateway.fullname" . }} - {{ else }} + {{- else }} name: {{ .Values.secret.existingSecretName }} - {{ end }} + {{- end }} key: gateway-key envFrom: - configMapRef: @@ -131,4 +131,4 @@ spec: {{ else -}} claimName: {{ .Values.gateway.configuration.backup.persistentVolumeClaim.existingName }} {{- end }} - {{- end }} \ No newline at end of file + {{- end }}