mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 23:09:41 +02:00
fix(app): edit app with configmap [r8s-95] (#341)
This commit is contained in:
parent
20fa7e508d
commit
4971f5510c
2 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,7 @@ class KubernetesConfigurationConverter {
|
||||||
static secretToConfiguration(secret) {
|
static secretToConfiguration(secret) {
|
||||||
const res = new KubernetesConfiguration();
|
const res = new KubernetesConfiguration();
|
||||||
res.Kind = KubernetesConfigurationKinds.SECRET;
|
res.Kind = KubernetesConfigurationKinds.SECRET;
|
||||||
|
res.kind = 'Secret';
|
||||||
res.Id = secret.Id;
|
res.Id = secret.Id;
|
||||||
res.Name = secret.Name;
|
res.Name = secret.Name;
|
||||||
res.Type = secret.Type;
|
res.Type = secret.Type;
|
||||||
|
@ -36,6 +37,7 @@ class KubernetesConfigurationConverter {
|
||||||
static configMapToConfiguration(configMap) {
|
static configMapToConfiguration(configMap) {
|
||||||
const res = new KubernetesConfiguration();
|
const res = new KubernetesConfiguration();
|
||||||
res.Kind = KubernetesConfigurationKinds.CONFIGMAP;
|
res.Kind = KubernetesConfigurationKinds.CONFIGMAP;
|
||||||
|
res.kind = 'ConfigMap';
|
||||||
res.Id = configMap.Id;
|
res.Id = configMap.Id;
|
||||||
res.Name = configMap.Name;
|
res.Name = configMap.Name;
|
||||||
res.Namespace = configMap.Namespace;
|
res.Namespace = configMap.Namespace;
|
||||||
|
|
|
@ -9,6 +9,7 @@ const _KubernetesConfigurationFormValues = Object.freeze({
|
||||||
Name: '',
|
Name: '',
|
||||||
ConfigurationOwner: '',
|
ConfigurationOwner: '',
|
||||||
Kind: KubernetesConfigurationKinds.CONFIGMAP,
|
Kind: KubernetesConfigurationKinds.CONFIGMAP,
|
||||||
|
kind: 'ConfigMap',
|
||||||
Data: [],
|
Data: [],
|
||||||
DataYaml: '',
|
DataYaml: '',
|
||||||
IsSimple: true,
|
IsSimple: true,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue