Fix error handling for invalid pods (#16)

* update readme and fix error handling for bad pods

* update limitations
This commit is contained in:
Thomas Boop
2022-06-16 09:02:55 -04:00
committed by GitHub
parent 47cbf5a0d7
commit 266b8edb99
3 changed files with 18 additions and 9 deletions

View File

@@ -43,7 +43,7 @@ async function run(): Promise<void> {
throw new Error(`Command not recognized: ${command}`)
}
} catch (error) {
core.error(JSON.stringify(error))
core.error(error as Error)
exitCode = 1
}
process.exitCode = exitCode

View File

@@ -311,7 +311,7 @@ export async function waitForPodPhases(
podName: string,
awaitingPhases: Set<PodPhase>,
backOffPhases: Set<PodPhase>,
maxTimeSeconds = 45 * 60 // 45 min
maxTimeSeconds = 10 * 60 // 10 min
): Promise<void> {
const backOffManager = new BackOffManager(maxTimeSeconds)
let phase: PodPhase = PodPhase.UNKNOWN