mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 14:29:40 +02:00
fix(edge groups): make large edge groups editable [BE-11720] (#558)
This commit is contained in:
parent
7c01f84a5c
commit
1d12011eb5
14 changed files with 373 additions and 46 deletions
|
@ -9,13 +9,10 @@ export function getInternalNodeIpAddress(node?: Node) {
|
|||
const controlPlaneLabels = [
|
||||
'node-role.kubernetes.io/control-plane',
|
||||
'node-role.kubernetes.io/master',
|
||||
'node.kubernetes.io/microk8s-controlplane'
|
||||
'node.kubernetes.io/microk8s-controlplane',
|
||||
];
|
||||
|
||||
const roleLabels = [
|
||||
'kubernetes.io/role',
|
||||
'node.kubernetes.io/role'
|
||||
];
|
||||
const roleLabels = ['kubernetes.io/role', 'node.kubernetes.io/role'];
|
||||
|
||||
export function getRole(node: Node): 'Control plane' | 'Worker' {
|
||||
const hasControlPlaneLabel = controlPlaneLabels.some(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue