Skip to content

Commit 2908bfc

Browse files
committed
Update service-helpers.js
1 parent 34589f0 commit 2908bfc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/config/service-helpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export async function servicesFromKubernetes() {
168168
.listClusterCustomObject("traefik.containo.us", "v1alpha1", "ingressroutes")
169169
.then((response) => response.body)
170170
.catch(async (error) => {
171-
if (error.statusCode !== 403) {
171+
if (![403, 404].includes(error.statusCode)) {
172172
logger.error(
173173
"Error getting traefik ingresses from traefik.containo.us: %d %s %s",
174174
error.statusCode,
@@ -184,7 +184,7 @@ export async function servicesFromKubernetes() {
184184
.listClusterCustomObject("traefik.io", "v1alpha1", "ingressroutes")
185185
.then((response) => response.body)
186186
.catch(async (error) => {
187-
if (error.statusCode !== 403) {
187+
if (![403, 404].includes(error.statusCode)) {
188188
logger.error(
189189
"Error getting traefik ingresses from traefik.io: %d %s %s",
190190
error.statusCode,

0 commit comments

Comments
 (0)