mirror of https://github.com/rancher/dashboard.git
* Add IP address to RKE2 cluster machine pools list.
This commit is contained in:
parent
da72a9c4b5
commit
cfd6f6cf82
|
|
@ -251,6 +251,7 @@ export default {
|
|||
formatter: 'LinkDetail',
|
||||
formatterOpts: { reference: 'kubeNodeDetailLocation' }
|
||||
},
|
||||
IP_ADDRESS,
|
||||
MACHINE_NODE_OS,
|
||||
ROLES,
|
||||
AGE,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { CAPI, NODE } from '@shell/config/types';
|
||||
import { ADDRESSES, CAPI, NODE } from '@shell/config/types';
|
||||
import { CAPI as CAPI_LABELS, MACHINE_ROLES } from '@shell/config/labels-annotations';
|
||||
import { NAME as EXPLORER } from '@shell/config/product/explorer';
|
||||
import { listNodeRoles } from '@shell/models/cluster/node';
|
||||
|
|
@ -241,4 +241,8 @@ export default class CapiMachine extends SteveModel {
|
|||
get isRunning() {
|
||||
return this.status.phase === 'Running';
|
||||
}
|
||||
|
||||
get ipaddress() {
|
||||
return this.status?.addresses?.find(({ type }) => type === ADDRESSES.INTERNAL_IP)?.address || '-';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue