From 076d24dd33f8b3664f6c82f9e85ec00c4822766e Mon Sep 17 00:00:00 2001 From: Cronix Date: Sat, 5 Oct 2024 13:23:38 +0200 Subject: [PATCH] Enforce DEEPFENCE_FILE_SERVER_PORT to be a string 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 }}