From c13e6479841d57dc31232dfd2403dde6d0e8fc9d Mon Sep 17 00:00:00 2001 From: Cronix Date: Sat, 5 Oct 2024 19:32:10 +0200 Subject: [PATCH] Enforce DEEPFENCE_FILE_SERVER_PORT to be a string (#2331) ConfigMap in version "v1" cannot be handled as a ConfigMap: json: cannot unmarshal number into Go struct field ConfigMap.data of type string due to the template not quoting the port for an external S3 instance, the configmap will not be able to be applied add quoting to the value for the port --- .../deepfence-console/templates/deepfence-console-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment-scripts/helm-charts/deepfence-console/templates/deepfence-console-config.yaml b/deployment-scripts/helm-charts/deepfence-console/templates/deepfence-console-config.yaml index 47a5d81b47..5ea656afdf 100644 --- a/deployment-scripts/helm-charts/deepfence-console/templates/deepfence-console-config.yaml +++ b/deployment-scripts/helm-charts/deepfence-console/templates/deepfence-console-config.yaml @@ -16,7 +16,7 @@ data: DEEPFENCE_FILE_SERVER_EXTERNAL: "false" {{- else }} DEEPFENCE_FILE_SERVER_HOST: {{ .Values.fileserver.fileServerHost }} - DEEPFENCE_FILE_SERVER_PORT: {{ .Values.fileserver.fileServerPort }} + DEEPFENCE_FILE_SERVER_PORT: {{ .Values.fileserver.fileServerPort | quote }} DEEPFENCE_FILE_SERVER_EXTERNAL: "true" {{- end }}