Compare commits

...

1 Commits

Author SHA1 Message Date
shamoon
2908bfcb7c Update service-helpers.js 2023-09-16 08:59:36 -07:00

View File

@@ -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,