log stream from k8s http api

pull/265/head
Frostebite 2021-05-24 16:13:11 +01:00
parent c96560b9c5
commit 7be71eba31
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -1087,7 +1087,7 @@ class Kubernetes {
}, undefined, 4));
let logs;
try {
logs = yield Kubernetes.getLogs(this.kubeConfig, this.namespace, ((_g = pod.metadata) === null || _g === void 0 ? void 0 : _g.name) || '', ((_j = (_h = pod.status) === null || _h === void 0 ? void 0 : _h.containerStatuses) === null || _j === void 0 ? void 0 : _j[0].name) || '');
logs = yield Kubernetes.getLogs(this.kubeConfig, this.namespace, ((_g = pod.metadata) === null || _g === void 0 ? void 0 : _g.name) || '', ((_j = (_h = pod.status) === null || _h === void 0 ? void 0 : _h.containerStatuses) === null || _j === void 0 ? void 0 : _j[0].containerID) || '');
}
catch (error) {
core.error(error);

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -393,7 +393,7 @@ class Kubernetes {
this.kubeConfig,
this.namespace,
pod.metadata?.name || '',
pod.status?.containerStatuses?.[0].name || '',
pod.status?.containerStatuses?.[0].containerID || '',
);
} catch (error) {
core.error(error);