push k8s logs to LOG SERVICE IP

This commit is contained in:
Frostebite 2023-07-17 19:59:01 +01:00
parent c77d0baa04
commit 8cafc65464
3 changed files with 1 additions and 1 deletions

BIN
dist/index.js generated vendored

Binary file not shown.

BIN
dist/index.js.map generated vendored

Binary file not shown.

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;
}
}