mirror of https://github.com/portainer/portainer
27 lines
517 B
JavaScript
27 lines
517 B
JavaScript
/**
|
|
* KubernetesDeployment Model
|
|
*/
|
|
const _KubernetesDeployment = Object.freeze({
|
|
Namespace: '',
|
|
Name: '',
|
|
StackName: '',
|
|
ReplicaCount: 0,
|
|
ImageModel: null,
|
|
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)));
|
|
}
|
|
}
|