log stream from k8s http api
parent
c96560b9c5
commit
7be71eba31
|
|
@ -1087,7 +1087,7 @@ class Kubernetes {
|
||||||
}, undefined, 4));
|
}, undefined, 4));
|
||||||
let logs;
|
let logs;
|
||||||
try {
|
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) {
|
catch (error) {
|
||||||
core.error(error);
|
core.error(error);
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -393,7 +393,7 @@ class Kubernetes {
|
||||||
this.kubeConfig,
|
this.kubeConfig,
|
||||||
this.namespace,
|
this.namespace,
|
||||||
pod.metadata?.name || '',
|
pod.metadata?.name || '',
|
||||||
pod.status?.containerStatuses?.[0].name || '',
|
pod.status?.containerStatuses?.[0].containerID || '',
|
||||||
);
|
);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.error(error);
|
core.error(error);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue