Skip to content

Commit

Permalink
Update service-helpers.js
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon committed Sep 16, 2023
1 parent 34589f0 commit 2908bfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/config/service-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 2908bfc

Please sign in to comment.