mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
Improved handling of empty or disabled kubernetes configuration
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user