When there is a workspace error (e.g. invalid container), the UI shows the workspace state as Starting for 10 minutes before changing to Failed

Reproduce with

  1. Use the following devfile
schemaVersion: 2.1.0
components:
  - name: tooling-container
    attributes:
      remotedevelopment.gitlab/inject-editor: true
    container:
      image: doesnt:exist
  1. See that the workspace is in a "Starting" state
  • Screenshot_2023-04-25_at_13.29.50
  1. See that the workspace pod is in error state:
~/w/g/g/gitlab (remote_dev|✔) ❯❯❯ k get pod
NAME                                    READY   STATUS         RESTARTS   AGE
workspace-2-1-8fjbeq-8658b87b9f-mmxk4   0/1     ErrImagePull   0          75s
~/w/g/g/gitlab (remote_dev|✔) ❯❯❯ k get pod
NAME                                    READY   STATUS             RESTARTS   AGE
workspace-2-1-8fjbeq-8658b87b9f-mmxk4   0/1     ImagePullBackOff   0          4m23s
  1. the workspace state will eventually (roughly in 10m) turn to "Failed"
Edited by 🤖 GitLab Bot 🤖