mirror of
https://github.com/karl0ss/homepage.git
synced 2025-04-29 12:03:41 +01:00
Maybe handle k8s traefik ingress routes returns nothing
This commit is contained in:
parent
6c682cb648
commit
a72a27a8b5
@ -166,7 +166,7 @@ export async function servicesFromKubernetes() {
|
||||
|
||||
const traefikIngressListContaino = await crd
|
||||
.listClusterCustomObject("traefik.containo.us", "v1alpha1", "ingressroutes")
|
||||
.then((response) => response.body)
|
||||
.then((response) => response.body ?? [])
|
||||
.catch(async (error) => {
|
||||
if (![403, 404].includes(error.statusCode)) {
|
||||
logger.error(
|
||||
@ -182,7 +182,7 @@ export async function servicesFromKubernetes() {
|
||||
|
||||
const traefikIngressListIo = await crd
|
||||
.listClusterCustomObject("traefik.io", "v1alpha1", "ingressroutes")
|
||||
.then((response) => response.body)
|
||||
.then((response) => response.body ?? [])
|
||||
.catch(async (error) => {
|
||||
if (![403, 404].includes(error.statusCode)) {
|
||||
logger.error(
|
||||
|
Loading…
x
Reference in New Issue
Block a user