mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-07 20:35:33 -04:00
podname logs for log service
This commit is contained in:
parent
7d2704c3e4
commit
e7c48f6432
BIN
dist/index.js
generated
vendored
BIN
dist/index.js
generated
vendored
Binary file not shown.
BIN
dist/index.js.map
generated
vendored
BIN
dist/index.js.map
generated
vendored
Binary file not shown.
@ -102,9 +102,6 @@ status: {}
|
||||
// get cluster ip address of service
|
||||
const service = await kubeClientCore.readNamespacedService('http-fileserver', namespace);
|
||||
|
||||
// log service json
|
||||
CloudRunnerLogger.log(`Service: ${JSON.stringify(service.body, undefined, 4)}`);
|
||||
|
||||
// get podname of deployment
|
||||
|
||||
const podname = await CloudRunnerSystem.Run(
|
||||
@ -130,6 +127,10 @@ status: {}
|
||||
// get cluster ip
|
||||
const ip = service.body?.spec?.clusterIP;
|
||||
if (ip && ip.length > 0) {
|
||||
// log service json
|
||||
CloudRunnerLogger.log(`Service: ${JSON.stringify(service.body, undefined, 4)}`);
|
||||
CloudRunnerLogger.log(`Service IP: ${ip}`);
|
||||
|
||||
return ip;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user