log stream from k8s http api
parent
afb7c16348
commit
d8ea2bd701
|
|
@ -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() {
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -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() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue