push k8s logs to LOG SERVICE IP

pull/531/head
Frostebite 2023-07-17 19:59:01 +01:00
parent c77d0baa04
commit 8cafc65464
3 changed files with 3 additions and 3 deletions

2
dist/index.js generated vendored
View File

@ -3726,7 +3726,7 @@ class KubernetesLogService {
// get ip address of service
const service = await kubeClientCore.readNamespacedService('http-fileserver', namespace);
const ip = service.body.status?.loadBalancer?.ingress?.[0]?.ip;
if (ip) {
if (ip && ip.length > 0) {
return ip;
}
}

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -94,7 +94,7 @@ status: {}
// get ip address of service
const service = await kubeClientCore.readNamespacedService('http-fileserver', namespace);
const ip = service.body.status?.loadBalancer?.ingress?.[0]?.ip;
if (ip) {
if (ip && ip.length > 0) {
return ip;
}
}