fixes
parent
fcc14a7550
commit
6b9984ca54
|
|
@ -3682,8 +3682,6 @@ class KubernetesTaskRunner {
|
|||
}
|
||||
let lastMessageSeenIncludedInChunk = false;
|
||||
let lastMessageSeen = false;
|
||||
// using this instead of Kube
|
||||
try {
|
||||
const logs = await cloud_runner_system_1.CloudRunnerSystem.Run(`kubectl logs ${podName} -f -c ${containerName} --timestamps${sinceTime}`, false, true);
|
||||
const splitLogs = logs.split(`\n`);
|
||||
for (const chunk of splitLogs) {
|
||||
|
|
@ -3707,12 +3705,6 @@ class KubernetesTaskRunner {
|
|||
KubernetesTaskRunner.lastReceivedTimestamp = newDate;
|
||||
({ shouldReadLogs, shouldCleanup, output } = follow_log_stream_service_1.FollowLogStreamService.handleIteration(message, shouldReadLogs, shouldCleanup, output));
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
if (error.includes(`s`)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!didStreamAnyLogs) {
|
||||
core.error('Failed to stream any logs, listing namespace events, check for an error with the container');
|
||||
core.error(JSON.stringify({
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -40,8 +40,6 @@ class KubernetesTaskRunner {
|
|||
let lastMessageSeenIncludedInChunk = false;
|
||||
let lastMessageSeen = false;
|
||||
|
||||
// using this instead of Kube
|
||||
try {
|
||||
const logs = await CloudRunnerSystem.Run(
|
||||
`kubectl logs ${podName} -f -c ${containerName} --timestamps${sinceTime}`,
|
||||
false,
|
||||
|
|
@ -76,11 +74,6 @@ class KubernetesTaskRunner {
|
|||
output,
|
||||
));
|
||||
}
|
||||
} catch (error: any) {
|
||||
if (error.includes(`s`)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!didStreamAnyLogs) {
|
||||
core.error('Failed to stream any logs, listing namespace events, check for an error with the container');
|
||||
|
|
|
|||
Loading…
Reference in New Issue