mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
Enable the ability to cordon/uncordon/drain nodes (#4723)
* feat(node): Enable the ability to cordon/uncordon/drain nodes * feat(cluster): check if there is a drain operation somewhere * feat(kubernetes): allow to cordon, uncordon, drain nodes * refacto(kubernetes): set a constant for drain label name * fix(node): Relocate the warning message next to the dropdown and change the information message
This commit is contained in:
parent
660bc2dadf
commit
32a9a2e46b
10 changed files with 182 additions and 13 deletions
|
@ -65,6 +65,21 @@ export class KubernetesPodContainer {
|
|||
}
|
||||
}
|
||||
|
||||
const _KubernetesPodEviction = Object.freeze({
|
||||
apiVersion: 'policy/v1beta1',
|
||||
kind: 'Eviction',
|
||||
metadata: {
|
||||
name: '',
|
||||
namespace: '',
|
||||
},
|
||||
});
|
||||
|
||||
export class KubernetesPodEviction {
|
||||
constructor() {
|
||||
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesPodEviction)));
|
||||
}
|
||||
}
|
||||
|
||||
export const KubernetesPodContainerTypes = {
|
||||
INIT: 1,
|
||||
APP: 2,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue