mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 22:39:41 +02:00
* feat(k8s/application): create application with placement preferences/constraints * feat(k8s/application): edit application placement preferences/constraints
25 lines
487 B
JavaScript
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)));
|
|
}
|
|
}
|