log container state
parent
f7fa00bbed
commit
3289d95fb1
|
|
@ -1014,13 +1014,6 @@ class Kubernetes {
|
|||
var _a, _b, _c;
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let ready = false;
|
||||
new Promise(() => setTimeout(() => {
|
||||
if (!ready) {
|
||||
const error = new Error('failed to find pod - timeout');
|
||||
core.error(error);
|
||||
throw error;
|
||||
}
|
||||
}, pollInterval * 15));
|
||||
while (!ready) {
|
||||
yield new Promise((resolve) => setTimeout(resolve, pollInterval));
|
||||
const pods = yield this.kubeClient.listNamespacedPod(this.namespace);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -298,15 +298,6 @@ class Kubernetes {
|
|||
|
||||
static async watchPodUntilReadyAndRead() {
|
||||
let ready = false;
|
||||
new Promise(() =>
|
||||
setTimeout(() => {
|
||||
if (!ready) {
|
||||
const error = new Error('failed to find pod - timeout');
|
||||
core.error(error);
|
||||
throw error;
|
||||
}
|
||||
}, pollInterval * 15),
|
||||
);
|
||||
|
||||
while (!ready) {
|
||||
await new Promise((resolve) => setTimeout(resolve, pollInterval));
|
||||
|
|
|
|||
Loading…
Reference in New Issue