Maybe handle no traefik ingress routes

See #1998
pull/2004/head
shamoon 1 year ago
parent 816a2a5106
commit 3cd441a45e

@ -198,7 +198,7 @@ export async function servicesFromKubernetes() {
const traefikIngressList = [...traefikIngressListContaino, ...traefikIngressListIo]; const traefikIngressList = [...traefikIngressListContaino, ...traefikIngressListIo];
if (traefikIngressList && traefikIngressList.items.length > 0) { if (traefikIngressList?.items?.length > 0) {
const traefikServices = traefikIngressList.items.filter( const traefikServices = traefikIngressList.items.filter(
(ingress) => ingress.metadata.annotations && ingress.metadata.annotations[`${ANNOTATION_BASE}/href`] (ingress) => ingress.metadata.annotations && ingress.metadata.annotations[`${ANNOTATION_BASE}/href`]
); );

Loading…
Cancel
Save