read container by name

pull/265/head
Frostebite 2021-05-23 22:55:53 +01:00
parent 3289d95fb1
commit 46afe94364
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

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

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -346,7 +346,7 @@ class Kubernetes {
logs = await this.kubeClient.readNamespacedPodLog(
pod.metadata?.name || '',
this.namespace,
pod.status?.containerStatuses?.[0].containerID,
pod.status?.containerStatuses?.[0].name,
true,
);
} catch (error) {