feat(kubernetes): rename node value Manager to Master

pull/4050/head
Anthony Lapenna 2020-07-15 13:48:16 +12:00
parent 3c34fbd8f2
commit b7e1abf89f
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ class KubernetesNodeConverter {
res.Id = data.metadata.uid;
const hostName = _.find(data.status.addresses, { type: 'Hostname' });
res.Name = hostName ? hostName.address : data.metadata.Name;
res.Role = _.has(data.metadata.labels, 'node-role.kubernetes.io/master') ? 'Manager' : 'Worker';
res.Role = _.has(data.metadata.labels, 'node-role.kubernetes.io/master') ? 'Master' : 'Worker';
const ready = _.find(data.status.conditions, { type: KubernetesNodeConditionTypes.READY });
const memoryPressure = _.find(data.status.conditions, { type: KubernetesNodeConditionTypes.MEMORY_PRESSURE });