log stream from k8s http api

pull/265/head
Frostebite 2021-05-24 23:10:03 +01:00
parent afb7c16348
commit d8ea2bd701
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -1045,7 +1045,7 @@ class Kubernetes {
container: (_f = (_e = pod.status) === null || _e === void 0 ? void 0 : _e.containerStatuses) === null || _f === void 0 ? void 0 : _f[0].containerID, container: (_f = (_e = pod.status) === null || _e === void 0 ? void 0 : _e.containerStatuses) === null || _f === void 0 ? void 0 : _f[0].containerID,
}, undefined, 4)); }, undefined, 4));
const logs = yield this.kubeClient.readNamespacedPodLog(((_g = pod.metadata) === null || _g === void 0 ? void 0 : _g.name) || '', this.namespace); const logs = yield this.kubeClient.readNamespacedPodLog(((_g = pod.metadata) === null || _g === void 0 ? void 0 : _g.name) || '', this.namespace);
core.info(JSON.stringify(logs.body)); core.info(logs.body);
}); });
} }
static cleanup() { static cleanup() {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -340,7 +340,7 @@ class Kubernetes {
), ),
); );
const logs = await this.kubeClient.readNamespacedPodLog(pod.metadata?.name || '', this.namespace); const logs = await this.kubeClient.readNamespacedPodLog(pod.metadata?.name || '', this.namespace);
core.info(JSON.stringify(logs.body)); core.info(logs.body);
} }
static async cleanup() { static async cleanup() {