|
|
@ -86,7 +86,7 @@ export async function servicesFromDocker() {
|
|
|
|
type: 'service'
|
|
|
|
type: 'service'
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
shvl.set(constructedService, label.replace("homepage.", ""), container.Labels[label]);
|
|
|
|
shvl.set(constructedService, label.replace("homepage.", ""), substituteEnvironmentVars(container.Labels[label]));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -175,7 +175,7 @@ export async function servicesFromKubernetes() {
|
|
|
|
const services = ingressList.items
|
|
|
|
const services = ingressList.items
|
|
|
|
.filter((ingress) => ingress.metadata.annotations && ingress.metadata.annotations[`${ANNOTATION_BASE}/enabled`] === 'true')
|
|
|
|
.filter((ingress) => ingress.metadata.annotations && ingress.metadata.annotations[`${ANNOTATION_BASE}/enabled`] === 'true')
|
|
|
|
.map((ingress) => {
|
|
|
|
.map((ingress) => {
|
|
|
|
const constructedService = {
|
|
|
|
let constructedService = {
|
|
|
|
app: ingress.metadata.name,
|
|
|
|
app: ingress.metadata.name,
|
|
|
|
namespace: ingress.metadata.namespace,
|
|
|
|
namespace: ingress.metadata.namespace,
|
|
|
|
href: ingress.metadata.annotations[`${ANNOTATION_BASE}/href`] || getUrlFromIngress(ingress),
|
|
|
|
href: ingress.metadata.annotations[`${ANNOTATION_BASE}/href`] || getUrlFromIngress(ingress),
|
|
|
@ -202,6 +202,12 @@ export async function servicesFromKubernetes() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
constructedService = JSON.parse(substituteEnvironmentVars(JSON.stringify(constructedService)));
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
|
|
logger.error("Error attempting k8s environment variable substitution.");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return constructedService;
|
|
|
|
return constructedService;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|