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
74b943e9a7
commit
a275c2ec4a
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.
@ -104,7 +104,16 @@ status: {}
|
|||||||
|
|
||||||
// log service json
|
// log service json
|
||||||
CloudRunnerLogger.log(`Service: ${JSON.stringify(service.body, undefined, 4)}`);
|
CloudRunnerLogger.log(`Service: ${JSON.stringify(service.body, undefined, 4)}`);
|
||||||
const logs = await CloudRunnerSystem.Run(`kubectl logs deployment/http-fileserver -f --timestamps`, false, true);
|
|
||||||
|
// get podname of deployment
|
||||||
|
|
||||||
|
const podname = await CloudRunnerSystem.Run(
|
||||||
|
`kubectl get pods -n ${namespace} -l service=http-fileserver -o jsonpath='{.items[0].metadata.name}'`,
|
||||||
|
false,
|
||||||
|
true,
|
||||||
|
);
|
||||||
|
|
||||||
|
const logs = await CloudRunnerSystem.Run(`kubectl logs ${podname} -f --timestamps`, false, true);
|
||||||
CloudRunnerLogger.log(`Logs: ${logs}`);
|
CloudRunnerLogger.log(`Logs: ${logs}`);
|
||||||
|
|
||||||
// get cluster ip
|
// get cluster ip
|
||||||
|
Loading…
Reference in New Issue
Block a user