1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-20 13:59:40 +02:00
portainer/app/kubernetes/models/configuration/formvalues.js
Maxime Bajeux 41308d570d
feat(configurations): Review UI/UX configurations (#4691)
* feat(configurations): Review UI/UX configurations

* feat(configurations): fix binary secret value

* fix(frontend): populate data between simple and advanced modes (#4503)

* fix(configuration): parseYaml before create configuration

* fix(configurations): change c to C in ConfigurationOwner

* fix(application): change configuration index to configuration key in the view

* fix(configuration): resolve problem in application create with configuration not overriden.

* fix(configuration): fix bad import in helper

Co-authored-by: Simon Meng <simon.meng@portainer.io>
2021-01-25 14:14:35 +13:00

33 lines
782 B
JavaScript

import { KubernetesConfigurationTypes } from './models';
/**
* KubernetesConfigurationFormValues Model
*/
const _KubernetesConfigurationFormValues = Object.freeze({
Id: '',
ResourcePool: '',
Name: '',
ConfigurationOwner: '',
Type: KubernetesConfigurationTypes.CONFIGMAP,
Data: [],
DataYaml: '',
IsSimple: true,
});
export class KubernetesConfigurationFormValues {
constructor() {
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesConfigurationFormValues)));
}
}
const _KubernetesConfigurationFormValuesEntry = Object.freeze({
Key: '',
Value: '',
IsBinary: false,
});
export class KubernetesConfigurationFormValuesEntry {
constructor() {
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesConfigurationFormValuesEntry)));
}
}