1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-21 22:39:41 +02:00
portainer/app/kubernetes/models/daemon-set/models.js
xAt0mZ 52bdcf2e2b
feat(k8s/application): add/edit placement preferences/constraints (#4210)
* feat(k8s/application): create application with placement preferences/constraints

* feat(k8s/application): edit application placement preferences/constraints
2020-08-14 11:56:53 +12:00

25 lines
487 B
JavaScript

/**
* KubernetesDaemonSet Model
*/
const _KubernetesDaemonSet = Object.freeze({
Namespace: '',
Name: '',
StackName: '',
Image: '',
Env: [],
CpuLimit: 0,
MemoryLimit: 0,
VoluemMounts: [],
Volumes: [],
Secret: undefined,
ApplicationName: '',
ApplicationOwner: '',
Note: '',
Affinity: undefined, // KubernetesPodAffinity
});
export class KubernetesDaemonSet {
constructor() {
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesDaemonSet)));
}
}