1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 07:49:41 +02:00

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>
This commit is contained in:
xAt0mZ 2020-07-30 00:25:59 +02:00 committed by GitHub
parent 63bf654d8d
commit 4431d748c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 635 additions and 112 deletions

View file

@ -0,0 +1,65 @@
export const KubernetesPodNodeAffinityNodeSelectorRequirementOperators = Object.freeze({
IN: 'In',
NOT_IN: 'NotIn',
EXISTS: 'Exists',
DOES_NOT_EXIST: 'DoesNotExist',
GREATER_THAN: 'Gt',
LOWER_THAN: 'Lt',
});
/**
* KubernetesPodAffinity Model
*/
const _KubernetesPodAffinity = Object.freeze({
NodeAffinity: {},
// PodAffinity: {},
// PodAntiAffinity: {},
});
export class KubernetesPodAffinity {
constructor() {
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesPodAffinity)));
}
}
/**
* KubernetesPodNodeAffinity Model
*/
const _KubernetesPodNodeAffinity = Object.freeze({
PreferredDuringSchedulingIgnoredDuringExecution: [],
RequiredDuringSchedulingIgnoredDuringExecution: {},
});
export class KubernetesPodNodeAffinity {
constructor() {
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesPodNodeAffinity)));
}
}
/**
* KubernetesPodPodAffinity Model
*/
const _KubernetesPodPodAffinity = Object.freeze({
PreferredDuringSchedulingIgnoredDuringExecution: [],
equiredDuringSchedulingIgnoredDuringExecution: [],
});
export class KubernetesPodPodAffinity {
constructor() {
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesPodPodAffinity)));
}
}
/**
* KubernetesPodPodAntiAffinity Model
*/
const _KubernetesPodPodAntiAffinity = Object.freeze({
preferredDuringSchedulingIgnoredDuringExecution: [],
requiredDuringSchedulingIgnoredDuringExecution: [],
});
export class KubernetesPodPodAntiAffinity {
constructor() {
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesPodPodAntiAffinity)));
}
}