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
26 lines
510 B
JavaScript
26 lines
510 B
JavaScript
/**
|
|
* KubernetesDeployment Model
|
|
*/
|
|
const _KubernetesDeployment = Object.freeze({
|
|
Namespace: '',
|
|
Name: '',
|
|
StackName: '',
|
|
ReplicaCount: 0,
|
|
Image: '',
|
|
Env: [],
|
|
CpuLimit: 0,
|
|
MemoryLimit: 0,
|
|
VolumeMounts: [],
|
|
Volumes: [],
|
|
Secret: undefined,
|
|
ApplicationName: '',
|
|
ApplicationOwner: '',
|
|
Note: '',
|
|
Affinity: undefined, // KubernetesPodAffinity
|
|
});
|
|
|
|
export class KubernetesDeployment {
|
|
constructor() {
|
|
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesDeployment)));
|
|
}
|
|
}
|