read container by name
parent
3289d95fb1
commit
46afe94364
|
|
@ -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);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue