Files
portainer/app/kubernetes/models/configuration/formvalues.js
T
Maxime Bajeux 914476618d feat(configurations): Review UI/UX configurations (#184)
* feat(configurations): Review UI/UX configurations

* fix(configurations): remove duplicate lines

* fix(configurations): fix merge errors

* fix(configuration): parse empty configuration as empty string yaml instead of {}
2021-03-23 20:01:25 +01:00

34 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)));
}
}