mirror of
https://github.com/portainer/portainer.git
synced 2025-07-20 13:59:40 +02:00
* 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>
29 lines
753 B
JavaScript
29 lines
753 B
JavaScript
import { KubernetesCommonMetadataPayload } from 'Kubernetes/models/common/payloads';
|
|
|
|
/**
|
|
* Payload for CREATE
|
|
*/
|
|
const _KubernetesConfigMapCreatePayload = Object.freeze({
|
|
metadata: new KubernetesCommonMetadataPayload(),
|
|
data: {},
|
|
binaryData: {},
|
|
});
|
|
export class KubernetesConfigMapCreatePayload {
|
|
constructor() {
|
|
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesConfigMapCreatePayload)));
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Payload for UPDATE
|
|
*/
|
|
const _KubernetesConfigMapUpdatePayload = Object.freeze({
|
|
metadata: new KubernetesCommonMetadataPayload(),
|
|
data: {},
|
|
binaryData: {},
|
|
});
|
|
export class KubernetesConfigMapUpdatePayload {
|
|
constructor() {
|
|
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesConfigMapUpdatePayload)));
|
|
}
|
|
}
|