From 7132711c740faa0bc7889cf7b6ec2d8f636e3e1d Mon Sep 17 00:00:00 2001 From: Joaquim Rocha Date: Thu, 27 Jun 2024 14:14:06 +0100 Subject: [PATCH] frontend k8s/service: Make spec.ports optional to reflect the K8s API Signed-off-by: Joaquim Rocha --- frontend/src/components/service/List.tsx | 2 +- frontend/src/lib/k8s/service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/service/List.tsx b/frontend/src/components/service/List.tsx index 0c3ef8246a..9e49f72a97 100644 --- a/frontend/src/components/service/List.tsx +++ b/frontend/src/components/service/List.tsx @@ -32,7 +32,7 @@ export default function ServiceList() { id: 'ports', label: t('Ports'), getValue: service => service.getPorts()?.join(', '), - render: service => , + render: service => , }, { id: 'selector', diff --git a/frontend/src/lib/k8s/service.ts b/frontend/src/lib/k8s/service.ts index 735be88f9e..89d474cfa0 100644 --- a/frontend/src/lib/k8s/service.ts +++ b/frontend/src/lib/k8s/service.ts @@ -17,7 +17,7 @@ export interface KubeLoadBalancerIngress { export interface KubeService extends KubeObjectInterface { spec: { clusterIP: string; - ports: { + ports?: { name: string; nodePort: number; port: number;