1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 21:39:40 +02:00
portainer/app/kubernetes/node/payload.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
653 B
JavaScript
Raw Permalink Normal View History

/**
* KubernetesNode Create Payload Model
* Note: The current payload is here just to create patch payload.
*/
const _KubernetesNodeCreatePayload = Object.freeze({
metadata: {
name: '',
labels: {},
},
spec: {
taints: undefined,
},
});
export class KubernetesNodeCreatePayload {
constructor() {
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesNodeCreatePayload)));
}
}
const _KubernetesNodeTaintPayload = Object.freeze({
key: '',
value: '',
effect: '',
});
export class KubernetesNodeTaintPayload {
constructor() {
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesNodeTaintPayload)));
}
}