mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29: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) {
|
||||
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…
Add table
Add a link
Reference in a new issue