Compare commits

..

3 Commits

Author SHA1 Message Date
shamoon
d4a39299c5 Fix k8s traefikingresslist detection (#2030) 2023-09-19 15:00:22 -07:00
shamoon
7d2bfa2d84 Update index.jsx 2023-09-19 14:10:19 -07:00
shamoon
c094bd3d83 Update service-helpers.js 2023-09-19 13:12:03 -07:00
2 changed files with 4 additions and 4 deletions

View File

@@ -362,7 +362,7 @@ function Home({ initialSettings }) {
/>
</style>
<link rel="preload" href="/api/config/custom.js" as="fetch" crossOrigin="anonymous" />
<script data-name="custom.js" src="/api/config/custom.js" async="{true}" />
<script data-name="custom.js" src="/api/config/custom.js" async />
<div className="relative container m-auto flex flex-col justify-start z-10 h-full">
<QuickLaunch

View File

@@ -189,7 +189,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 (traefikContainoExists) {
logger.error(
@@ -205,7 +205,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 (traefikExists) {
logger.error(
@@ -222,7 +222,7 @@ export async function servicesFromKubernetes() {
const traefikIngressList = [...traefikIngressListContaino?.items ?? [], ...traefikIngressListIo?.items ?? []];
if (traefikIngressList.length > 0) {
const traefikServices = traefikIngressList.items.filter(
const traefikServices = traefikIngressList.filter(
(ingress) => ingress.metadata.annotations && ingress.metadata.annotations[`${ANNOTATION_BASE}/href`]
);
ingressList.items.push(...traefikServices);