Fix k8s traefikingresslist detection (#2030)

This commit is contained in:
shamoon 2023-09-19 15:00:22 -07:00 committed by GitHub
parent 7d2bfa2d84
commit d4a39299c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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