style: reformat with prettier to resolve eslint/prettier conflict
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -350,8 +350,8 @@ export function parseIPPools(data: Record<string, string> | undefined): IPPool[]
|
|||||||
const type = poolName.startsWith('range-')
|
const type = poolName.startsWith('range-')
|
||||||
? 'range'
|
? 'range'
|
||||||
: poolName.startsWith('cidr-')
|
: poolName.startsWith('cidr-')
|
||||||
? 'cidr'
|
? 'cidr'
|
||||||
: 'unknown';
|
: 'unknown';
|
||||||
pools.push({
|
pools.push({
|
||||||
name: poolName,
|
name: poolName,
|
||||||
type,
|
type,
|
||||||
|
|||||||
@@ -122,15 +122,15 @@ export default function ConfigPage() {
|
|||||||
{ name: 'Updated', value: String(daemonSetStatus.updatedNumberScheduled ?? 0) },
|
{ name: 'Updated', value: String(daemonSetStatus.updatedNumberScheduled ?? 0) },
|
||||||
...(daemonSetStatus.numberMisscheduled
|
...(daemonSetStatus.numberMisscheduled
|
||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
name: 'Misscheduled',
|
name: 'Misscheduled',
|
||||||
value: (
|
value: (
|
||||||
<StatusLabel status="warning">
|
<StatusLabel status="warning">
|
||||||
{daemonSetStatus.numberMisscheduled}
|
{daemonSetStatus.numberMisscheduled}
|
||||||
</StatusLabel>
|
</StatusLabel>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -55,10 +55,10 @@ export default function OverviewPage() {
|
|||||||
kubeVipConfig['bgp_enable'] === 'true'
|
kubeVipConfig['bgp_enable'] === 'true'
|
||||||
? 'BGP'
|
? 'BGP'
|
||||||
: kubeVipConfig['vip_arp'] === 'true'
|
: kubeVipConfig['vip_arp'] === 'true'
|
||||||
? 'ARP'
|
? 'ARP'
|
||||||
: kubeVipPods.length > 0
|
: kubeVipPods.length > 0
|
||||||
? 'Unknown'
|
? 'Unknown'
|
||||||
: '—';
|
: '—';
|
||||||
|
|
||||||
const cpEnabled = kubeVipConfig['cp_enable'] === 'true';
|
const cpEnabled = kubeVipConfig['cp_enable'] === 'true';
|
||||||
const svcEnabled = kubeVipConfig['svc_enable'] === 'true';
|
const svcEnabled = kubeVipConfig['svc_enable'] === 'true';
|
||||||
@@ -149,27 +149,27 @@ export default function OverviewPage() {
|
|||||||
},
|
},
|
||||||
...(daemonSetStatus
|
...(daemonSetStatus
|
||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
name: 'DaemonSet',
|
name: 'DaemonSet',
|
||||||
value: `${daemonSetStatus.numberReady ?? 0}/${
|
value: `${daemonSetStatus.numberReady ?? 0}/${
|
||||||
daemonSetStatus.desiredNumberScheduled ?? 0
|
daemonSetStatus.desiredNumberScheduled ?? 0
|
||||||
} ready`,
|
} ready`,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
...(cloudProviderPods.length > 0
|
...(cloudProviderPods.length > 0
|
||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
name: 'Cloud Provider',
|
name: 'Cloud Provider',
|
||||||
value: (
|
value: (
|
||||||
<StatusLabel
|
<StatusLabel
|
||||||
status={cloudProviderPods.some(isPodReady) ? 'success' : 'warning'}
|
status={cloudProviderPods.some(isPodReady) ? 'success' : 'warning'}
|
||||||
>
|
>
|
||||||
{cloudProviderPods.length} pod(s)
|
{cloudProviderPods.length} pod(s)
|
||||||
</StatusLabel>
|
</StatusLabel>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
@@ -184,11 +184,11 @@ export default function OverviewPage() {
|
|||||||
{ name: 'kube-vip Managed', value: String(kubeVipManaged.length) },
|
{ name: 'kube-vip Managed', value: String(kubeVipManaged.length) },
|
||||||
...(egressEnabled.length > 0
|
...(egressEnabled.length > 0
|
||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
name: 'Egress Enabled',
|
name: 'Egress Enabled',
|
||||||
value: String(egressEnabled.length),
|
value: String(egressEnabled.length),
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
{ name: 'IP Pools', value: String(ipPools.length) },
|
{ name: 'IP Pools', value: String(ipPools.length) },
|
||||||
{ name: 'Leader Election Leases', value: String(leases.length) },
|
{ name: 'Leader Election Leases', value: String(leases.length) },
|
||||||
|
|||||||
@@ -68,21 +68,21 @@ export default function ServiceDetailSection({ resource }: ServiceDetailSectionP
|
|||||||
...(vipHost ? [{ name: 'VIP Host Node', value: vipHost }] : []),
|
...(vipHost ? [{ name: 'VIP Host Node', value: vipHost }] : []),
|
||||||
...(isEgressEnabled(svc)
|
...(isEgressEnabled(svc)
|
||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
name: 'Egress',
|
name: 'Egress',
|
||||||
value: <StatusLabel status="success">Enabled</StatusLabel>,
|
value: <StatusLabel status="success">Enabled</StatusLabel>,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
...(isServiceIgnored(svc)
|
...(isServiceIgnored(svc)
|
||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
name: 'Ignored',
|
name: 'Ignored',
|
||||||
value: (
|
value: (
|
||||||
<StatusLabel status="warning">kube-vip is ignoring this service</StatusLabel>
|
<StatusLabel status="warning">kube-vip is ignoring this service</StatusLabel>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
...kubeVipAnnotations
|
...kubeVipAnnotations
|
||||||
.filter(([key]) => key !== ANNOTATION_LOADBALANCER_IPS)
|
.filter(([key]) => key !== ANNOTATION_LOADBALANCER_IPS)
|
||||||
|
|||||||
@@ -228,11 +228,11 @@ function ServiceDetailPanel({
|
|||||||
{ label: 'Protocol', getter: p => p.protocol ?? 'TCP' },
|
{ label: 'Protocol', getter: p => p.protocol ?? 'TCP' },
|
||||||
...(service.spec.ports?.some((p: { nodePort?: number }) => p.nodePort)
|
...(service.spec.ports?.some((p: { nodePort?: number }) => p.nodePort)
|
||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
label: 'NodePort',
|
label: 'NodePort',
|
||||||
getter: (p: { nodePort?: number }) => String(p.nodePort ?? '—'),
|
getter: (p: { nodePort?: number }) => String(p.nodePort ?? '—'),
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
]}
|
]}
|
||||||
data={service.spec.ports}
|
data={service.spec.ports}
|
||||||
|
|||||||
Reference in New Issue
Block a user