From 95894e80477a2f6fb105b9f4f6b4dbdc8613ae51 Mon Sep 17 00:00:00 2001 From: cong meng Date: Tue, 2 Feb 2021 15:03:11 +1300 Subject: [PATCH] fix(k8s) parse empty configuration as empty string yaml instead of {} (ce#395) (#4805) Co-authored-by: Simon Meng --- app/kubernetes/helpers/configurationHelper.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/kubernetes/helpers/configurationHelper.js b/app/kubernetes/helpers/configurationHelper.js index e15929195..3946484ce 100644 --- a/app/kubernetes/helpers/configurationHelper.js +++ b/app/kubernetes/helpers/configurationHelper.js @@ -52,6 +52,8 @@ class KubernetesConfigurationHelper { } static parseData(formValues) { + if (!formValues.Data.length) return ''; + const data = _.reduce( formValues.Data, (acc, entry) => {