Skip to content

Commit bab4fe5

Browse files
committed
port naming fix for service
1 parent 24ebbab commit bab4fe5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/v2/appDetails/k8Resource/nodeType/Node.component.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,11 @@ function NodeComponent({ handleFocusTabs, externalLinks, monitoringTools, isDevt
213213
return (
214214
<div className="flex left cn-9 m-0 dc__no-decore">
215215
<div className="" key={node.name}>
216-
{node.name}:{node.namespace}:{val}
216+
{node.name}.{node.namespace}:{val}
217217
<Clipboard
218218
className="ml-0 resource-action-tabs__clipboard fs-13 dc__truncate-text cursor pt-8"
219219
onClick={(event) => {
220-
toggleClipBoardPort(event, `${node.name}:${node.namespace}:${val}`)
220+
toggleClipBoardPort(event, `${node.name}.${node.namespace}:${val}`)
221221
}}
222222
/>
223223
</div>
@@ -241,7 +241,7 @@ function NodeComponent({ handleFocusTabs, externalLinks, monitoringTools, isDevt
241241
<Clipboard
242242
className="resource-action-tabs__clipboard icon-dim-12 pointer ml-8 mr-8"
243243
onClick={(event) => {
244-
toggleClipBoardPort(event, `${node.name}:${node.namespace}:${node.port[0]}`)
244+
toggleClipBoardPort(event, `${node.name}.${node.namespace}:${node.port[0]}`)
245245
}}
246246
/>
247247
</span>
@@ -300,7 +300,7 @@ function NodeComponent({ handleFocusTabs, externalLinks, monitoringTools, isDevt
300300
}
301301

302302
return nodes.map((node, index) => {
303-
const nodeName = `${node.name}.${node.namespace} : ${node.port}`
303+
const nodeName = `${node.name}.${node.namespace} . ${node.port}`
304304
const _isSelected = markedNodes.current.get(node.name)
305305
// Only render node kind header when it's the first node or it's a different kind header
306306
_currentNodeHeader = index === 0 || _currentNodeHeader !== node.kind ? node.kind : ''
@@ -442,7 +442,7 @@ function NodeComponent({ handleFocusTabs, externalLinks, monitoringTools, isDevt
442442
</div>
443443
</div>
444444
{params.nodeType === NodeType.Service.toLowerCase() && node.kind !== "Endpoints" && node.kind !== "EndpointSlice" && (
445-
<div className={'col-5 pt-9 pb-9 flex left cn-9 dc__hover-icon'}>
445+
<div className="col-5 pt-9 pb-9 flex left cn-9 dc__hover-icon">
446446
{portNumberPlaceHolder(node)}
447447
{node.port > 1 ? renderClipboardInteraction(nodeName) : null}
448448
</div>

0 commit comments

Comments
 (0)