From 4971f5510cd8d5be76c572d236e176b5516563c5 Mon Sep 17 00:00:00 2001 From: Ali <83188384+testA113@users.noreply.github.com> Date: Fri, 24 Jan 2025 11:35:47 +1300 Subject: [PATCH] fix(app): edit app with configmap [r8s-95] (#341) --- app/kubernetes/converters/configuration.js | 2 ++ app/kubernetes/models/configuration/formvalues.js | 1 + 2 files changed, 3 insertions(+) diff --git a/app/kubernetes/converters/configuration.js b/app/kubernetes/converters/configuration.js index 281fb07c4..43ef2c60d 100644 --- a/app/kubernetes/converters/configuration.js +++ b/app/kubernetes/converters/configuration.js @@ -5,6 +5,7 @@ class KubernetesConfigurationConverter { static secretToConfiguration(secret) { const res = new KubernetesConfiguration(); res.Kind = KubernetesConfigurationKinds.SECRET; + res.kind = 'Secret'; res.Id = secret.Id; res.Name = secret.Name; res.Type = secret.Type; @@ -36,6 +37,7 @@ class KubernetesConfigurationConverter { static configMapToConfiguration(configMap) { const res = new KubernetesConfiguration(); res.Kind = KubernetesConfigurationKinds.CONFIGMAP; + res.kind = 'ConfigMap'; res.Id = configMap.Id; res.Name = configMap.Name; res.Namespace = configMap.Namespace; diff --git a/app/kubernetes/models/configuration/formvalues.js b/app/kubernetes/models/configuration/formvalues.js index 4dd455874..667949102 100644 --- a/app/kubernetes/models/configuration/formvalues.js +++ b/app/kubernetes/models/configuration/formvalues.js @@ -9,6 +9,7 @@ const _KubernetesConfigurationFormValues = Object.freeze({ Name: '', ConfigurationOwner: '', Kind: KubernetesConfigurationKinds.CONFIGMAP, + kind: 'ConfigMap', Data: [], DataYaml: '', IsSimple: true,