From 2908bfcb7caedd2190dac5262a113e36ef1e0164 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 16 Sep 2023 08:59:36 -0700 Subject: [PATCH] Update service-helpers.js --- src/utils/config/service-helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/config/service-helpers.js b/src/utils/config/service-helpers.js index 6ad686c4f..de47cfdf6 100644 --- a/src/utils/config/service-helpers.js +++ b/src/utils/config/service-helpers.js @@ -168,7 +168,7 @@ export async function servicesFromKubernetes() { .listClusterCustomObject("traefik.containo.us", "v1alpha1", "ingressroutes") .then((response) => response.body) .catch(async (error) => { - if (error.statusCode !== 403) { + if (![403, 404].includes(error.statusCode)) { logger.error( "Error getting traefik ingresses from traefik.containo.us: %d %s %s", error.statusCode, @@ -184,7 +184,7 @@ export async function servicesFromKubernetes() { .listClusterCustomObject("traefik.io", "v1alpha1", "ingressroutes") .then((response) => response.body) .catch(async (error) => { - if (error.statusCode !== 403) { + if (![403, 404].includes(error.statusCode)) { logger.error( "Error getting traefik ingresses from traefik.io: %d %s %s", error.statusCode,