Improved handling of empty or disabled kubernetes configuration

This commit is contained in:
James Wynn
2022-11-06 06:58:52 -06:00
parent 0c6f7dbee1
commit 056e26dfd3
5 changed files with 24 additions and 1 deletions
+3
View File
@@ -125,6 +125,9 @@ export async function servicesFromKubernetes() {
try {
const kc = getKubeConfig();
if (!kc) {
return [];
}
const networking = kc.makeApiClient(NetworkingV1Api);
const ingressList = await networking.listIngressForAllNamespaces(null, null, null, "homepage/enabled=true")