fix: remove ExternalIP column from Service table

This commit is contained in:
loveuer
2025-11-13 15:19:00 +08:00
parent b7a5f85da2
commit e82dfec1ba

View File

@@ -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>