portainer/app/kubernetes/models/configuration/formvalues.js

36 lines
821 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)));
}
}
/**
* KubernetesConfigurationEntry Model
*/
const _KubernetesConfigurationFormValuesDataEntry = Object.freeze({
Key: '',
Value: '',
});
export class KubernetesConfigurationFormValuesDataEntry {
constructor() {
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesConfigurationFormValuesDataEntry)));
}
}