diff --git a/frontend/packages/console-app/locales/en/console-app.json b/frontend/packages/console-app/locales/en/console-app.json index 2c2078241b09..d9874848df53 100644 --- a/frontend/packages/console-app/locales/en/console-app.json +++ b/frontend/packages/console-app/locales/en/console-app.json @@ -171,7 +171,7 @@ "Loaded plugins": "Loaded plugins", "{{enabledCount}}/{{totalCount}} enabled": "{{enabledCount}}/{{totalCount}} enabled", "View all": "View all", - "Single master": "Single master", + "Single control plane node": "Single control plane node", "Incompatible file type": "Incompatible file type", "{{fileName}} cannot be uploaded. Only {{fileExtensions}} files are supported currently. Try another file.": "{{fileName}} cannot be uploaded. Only {{fileExtensions}} files are supported currently. Try another file.", "Clone": "Clone", @@ -341,7 +341,7 @@ "{{formattedCores}} cores / {{totalCores}} cores": "{{formattedCores}} cores / {{totalCores}} cores", "Ready": "Ready", "Not Ready": "Not Ready", - "Master": "Master", + "Control plane": "Control plane", "Worker": "Worker", "This node's {{conditionDescription}}. Performance may be degraded.": "This node's {{conditionDescription}}. Performance may be degraded.", "<0>To use host binaries, run <1>chroot /host": "<0>To use host binaries, run <1>chroot /host", diff --git a/frontend/packages/console-app/src/components/dashboards-page/status.ts b/frontend/packages/console-app/src/components/dashboards-page/status.ts index 4dc77f6c84c3..c3e747df7b15 100644 --- a/frontend/packages/console-app/src/components/dashboards-page/status.ts +++ b/frontend/packages/console-app/src/components/dashboards-page/status.ts @@ -106,7 +106,7 @@ export const getControlPlaneHealth: PrometheusHealthHandler = ( const singleMasterMsg = worstStatus.state === HealthState.OK && isSingleNode(infrastructure) - ? t('console-app~Single master') + ? t('console-app~Single control plane node') : undefined; return { diff --git a/frontend/packages/console-app/src/components/nodes/NodesPage.tsx b/frontend/packages/console-app/src/components/nodes/NodesPage.tsx index 6819eea9142b..75d188758bf7 100644 --- a/frontend/packages/console-app/src/components/nodes/NodesPage.tsx +++ b/frontend/packages/console-app/src/components/nodes/NodesPage.tsx @@ -511,8 +511,8 @@ const NodesPage = connect<{}, MapDispatchToProps>( isMatch: getNodeRoleMatch, items: [ { - id: 'master', - title: t('console-app~Master'), + id: 'control plane', + title: t('console-app~Control plane'), }, { id: 'worker', diff --git a/frontend/packages/console-shared/src/selectors/node.ts b/frontend/packages/console-shared/src/selectors/node.ts index 29b1c1e07351..c4870fb0ca9a 100644 --- a/frontend/packages/console-shared/src/selectors/node.ts +++ b/frontend/packages/console-shared/src/selectors/node.ts @@ -7,7 +7,7 @@ const NODE_ROLE_PREFIX = 'node-role.kubernetes.io/'; export const getNodeRoles = (node: NodeKind): string[] => { const labels = _.get(node, 'metadata.labels'); - return _.reduce( + const rolesList = _.reduce( labels, (acc: string[], v: string, k: string) => { if (k.startsWith(NODE_ROLE_PREFIX)) { @@ -17,10 +17,14 @@ export const getNodeRoles = (node: NodeKind): string[] => { }, [], ); + return rolesList.map((e) => { + if (e === 'master') return 'control plane'; + return e; + }); }; export const getNodeRole = (node: NodeKind): string => - getNodeRoles(node).includes('master') ? 'master' : 'worker'; + getNodeRoles(node).includes('control plane') ? 'control plane' : 'worker'; export const getNodeRoleMatch = (node: NodeKind, role: string): boolean => { const roles = getNodeRoles(node); diff --git a/frontend/packages/local-storage-operator-plugin/src/components/disks-list/disks-list-page.tsx b/frontend/packages/local-storage-operator-plugin/src/components/disks-list/disks-list-page.tsx index 4f96fc5dae41..14b3521e2606 100644 --- a/frontend/packages/local-storage-operator-plugin/src/components/disks-list/disks-list-page.tsx +++ b/frontend/packages/local-storage-operator-plugin/src/components/disks-list/disks-list-page.tsx @@ -159,7 +159,7 @@ export const NodesDisksListPage: React.FC = ({ const EmptyMsg = () => (

{t('lso-plugin~Disks Not Found')}

- {csvName && operatorNs && nodeRole !== 'master' && ( + {csvName && operatorNs && nodeRole !== 'control plane' && (