fix: remove ExternalIP column from Service table
This commit is contained in:
@@ -318,7 +318,7 @@ export default function K8sResourceList() {
|
|||||||
case 'statefulset':
|
case 'statefulset':
|
||||||
return ['Name', 'Namespace', 'Replicas', 'Age', 'Actions']
|
return ['Name', 'Namespace', 'Replicas', 'Age', 'Actions']
|
||||||
case 'service':
|
case 'service':
|
||||||
return ['Name', 'Namespace', 'Type', 'Cluster IP', 'External IP', 'Ports', 'NodePort', 'Age', 'Actions']
|
return ['Name', 'Namespace', 'Type', 'Cluster IP', 'Ports', 'NodePort', 'Age', 'Actions']
|
||||||
case 'configmap':
|
case 'configmap':
|
||||||
return ['Name', 'Namespace', 'Data Keys', 'Age', 'Actions']
|
return ['Name', 'Namespace', 'Data Keys', 'Age', 'Actions']
|
||||||
case 'pod':
|
case 'pod':
|
||||||
@@ -402,7 +402,6 @@ export default function K8sResourceList() {
|
|||||||
<TableCell>{metadata.namespace || '-'}</TableCell>
|
<TableCell>{metadata.namespace || '-'}</TableCell>
|
||||||
<TableCell>{spec.type || '-'}</TableCell>
|
<TableCell>{spec.type || '-'}</TableCell>
|
||||||
<TableCell>{spec.clusterIP || '-'}</TableCell>
|
<TableCell>{spec.clusterIP || '-'}</TableCell>
|
||||||
<TableCell>{spec.externalIPs?.join(', ') || status.loadBalancer?.ingress?.map((i: any) => i.ip || i.hostname).join(', ') || '-'}</TableCell>
|
|
||||||
<TableCell>{portsDisplay}</TableCell>
|
<TableCell>{portsDisplay}</TableCell>
|
||||||
<TableCell>{nodePortsDisplay}</TableCell>
|
<TableCell>{nodePortsDisplay}</TableCell>
|
||||||
<TableCell>{getAge(metadata.creationTimestamp)}</TableCell>
|
<TableCell>{getAge(metadata.creationTimestamp)}</TableCell>
|
||||||
|
|||||||
Reference in New Issue
Block a user