File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ export async function servicesFromKubernetes() {
168
168
. listClusterCustomObject ( "traefik.containo.us" , "v1alpha1" , "ingressroutes" )
169
169
. then ( ( response ) => response . body )
170
170
. catch ( async ( error ) => {
171
- if ( error . statusCode !== 403 ) {
171
+ if ( ! [ 403 , 404 ] . includes ( error . statusCode ) ) {
172
172
logger . error (
173
173
"Error getting traefik ingresses from traefik.containo.us: %d %s %s" ,
174
174
error . statusCode ,
@@ -184,7 +184,7 @@ export async function servicesFromKubernetes() {
184
184
. listClusterCustomObject ( "traefik.io" , "v1alpha1" , "ingressroutes" )
185
185
. then ( ( response ) => response . body )
186
186
. catch ( async ( error ) => {
187
- if ( error . statusCode !== 403 ) {
187
+ if ( ! [ 403 , 404 ] . includes ( error . statusCode ) ) {
188
188
logger . error (
189
189
"Error getting traefik ingresses from traefik.io: %d %s %s" ,
190
190
error . statusCode ,
You can’t perform that action at this time.
0 commit comments