diff --git a/src/common/k8s-api/endpoints/ingress.api.ts b/src/common/k8s-api/endpoints/ingress.api.ts index 796243467e..b66250930d 100644 --- a/src/common/k8s-api/endpoints/ingress.api.ts +++ b/src/common/k8s-api/endpoints/ingress.api.ts @@ -154,7 +154,7 @@ export class Ingress extends KubeObject { return routes; } - getServiceNamePort(): IExtensionsBackend | undefined { + getServiceNamePort(): IExtensionsBackend { const { spec: { backend, defaultBackend } = {}} = this; const serviceName = defaultBackend?.service?.name ?? backend?.serviceName;