Skip to content

Commit

Permalink
fixed annotation_base argument
Browse files Browse the repository at this point in the history
  • Loading branch information
djeinstine committed Feb 2, 2025
1 parent 6669559 commit 039f687
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/utils/kubernetes/kubernetes-routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ async function getHttpRouteList() {
return httpRouteList;
}

async function getIngressList(annotation_base) {
async function getIngressList(annotationBase) {

const traefik = kubeArguments.traefik;
const networking = kc.makeApiClient(NetworkingV1Api);
Expand Down Expand Up @@ -148,7 +148,7 @@ async function getIngressList(annotation_base) {

if (traefikIngressList.length > 0) {
const traefikServices = traefikIngressList.filter(
(ingress) => ingress.metadata.annotations && ingress.metadata.annotations[`${annotation_base}/href`],
(ingress) => ingress.metadata.annotations && ingress.metadata.annotations[`${annotationBase}/href`],
);
ingressList.items.push(...traefikServices);
}
Expand All @@ -157,7 +157,7 @@ async function getIngressList(annotation_base) {
return ingressList.items;
}

export async function getRouteList(annotation_base) {
export async function getRouteList(annotationBase) {
let routeList = [];

if (!kc) {
Expand All @@ -168,13 +168,13 @@ export async function getRouteList(annotation_base) {

switch (routingType) {
case "ingress":
routeList = await getIngressList(annotation_base);
routeList = await getIngressList(annotationBase);
break;
case "gateway":
routeList = await getHttpRouteList();
break;
default:
routeList = await getIngressList(annotation_base);
routeList = await getIngressList(annotationBase);
}

return routeList;
Expand Down

0 comments on commit 039f687

Please sign in to comment.