mirror of https://github.com/portainer/portainer
fix(app): edit app with configmap [r8s-95] (#341)
parent
20fa7e508d
commit
4971f5510c
|
@ -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;
|
||||
|
|
|
@ -9,6 +9,7 @@ const _KubernetesConfigurationFormValues = Object.freeze({
|
|||
Name: '',
|
||||
ConfigurationOwner: '',
|
||||
Kind: KubernetesConfigurationKinds.CONFIGMAP,
|
||||
kind: 'ConfigMap',
|
||||
Data: [],
|
||||
DataYaml: '',
|
||||
IsSimple: true,
|
||||
|
|
Loading…
Reference in New Issue