1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-21 22:39:41 +02:00
portainer/app/kubernetes/pod/models/index.js
xAt0mZ 4431d748c2
feat(k8s/application): expose tolerations and affinities (#4063)
* feat(k8s/application): expose placement conditions

* feat(k8s/applications): minor UI update

* feat(k8s/application): update message for admin and non admin users

* feat(kubernetes/applications): minor UI update

Co-authored-by: Anthony Lapenna <lapenna.anthony@gmail.com>
2020-07-30 10:25:59 +12:00

42 lines
779 B
JavaScript

export * from './affinities';
/**
* KubernetesPod Model
*/
const _KubernetesPod = Object.freeze({
Id: '',
Name: '',
Namespace: '',
Images: [],
Status: '',
Restarts: 0,
Node: '',
CreationDate: '',
Containers: [],
Labels: [],
Affinity: {}, // KubernetesPodAffinity
Tolerations: [], // KubernetesPodToleration[]
});
export class KubernetesPod {
constructor() {
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesPod)));
}
}
/**
* KubernetesPodToleration Model
*/
const _KubernetesPodToleration = Object.freeze({
Key: '',
Operator: '',
Value: '',
TolerationSeconds: 0,
Effect: '',
});
export class KubernetesPodToleration {
constructor() {
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesPodToleration)));
}
}