jenkins-x-plugins/jx-admin

capture PodInitialialising error

Closed this issue · 0 comments

If you grab a pod while it's initialising then it will error.

Could easily handle this and wait 5 seconds or give a nice error message to try again.

? select the Job to view:  [Use arrows to move, enter to select, type to filter]
> #37 started 0s Running
  #36 started 1h54m0s Succeeded
  #35 started 2h8m0s Pending
  #34 started 2h21m0s Failed
  #33 started 2h23m0s Failed
  #32 started 2h25m0s Succeeded
  #31 started 3h28m0s Failed
? select the Job to view: #37 started 0s Running

tailing boot Job pod jx-boot-51ed180b54dae1a98d65d9b-nl8q5

Error from server (BadRequest): container "job" in pod "jx-boot-51ed180b54dae1a98d65d9b-nl8q5" is waiting to start: PodInitializing