You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/kubernetes/node/payload.js

32 lines
653 B

/**
* 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)));
}
}