mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
* feat(application): Support multi-container pods applications * feat(application): Support multi-container pods applications * fix(application): use only one pod in app details and fix logs and console links * fix(application): show all containers in containers datatable * fix(application): fix order by pod name * feat(k8s/application): minor UI update * feat(k8s/application): minor UI update * feat(k8s/application): minor UI update * feat(k8s/application): minor UI update * feat(k8s/application): minor UI update * fix(application): fix persisted folders in application details Co-authored-by: Anthony Lapenna <lapenna.anthony@gmail.com>
69 lines
1.2 KiB
JavaScript
69 lines
1.2 KiB
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)));
|
|
}
|
|
}
|
|
|
|
const _KubernetesPodContainer = Object.freeze({
|
|
Type: 0,
|
|
PodName: '',
|
|
Name: '',
|
|
Image: '',
|
|
Node: '',
|
|
CreationDate: '',
|
|
Status: '',
|
|
Limits: {},
|
|
Requests: {},
|
|
VolumeMounts: {},
|
|
ConfigurationVolumes: [],
|
|
PersistedFolders: [],
|
|
Env: [],
|
|
});
|
|
|
|
export class KubernetesPodContainer {
|
|
constructor() {
|
|
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesPodContainer)));
|
|
}
|
|
}
|
|
|
|
export const KubernetesPodContainerTypes = {
|
|
INIT: 1,
|
|
APP: 2,
|
|
};
|