Allow users to configure the container image used for init containers when creating a workspace

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Description

When creating a workspace, we use a container image(e.g. registry.gitlab.com/gitlab-org/workspaces/gitlab-workspaces-tools:9.0.0) to inject various tools inside the container where we want to start the IDE.

As a user(administrator), I want a way to configure this image to ensure Workspaces works properly is an isolated/offline environment.

Duplicate issues

Acceptance criteria

  • The init container image can be overridden in the agent configuration, in three separate parts: registry, image path, and version (image tag). Each override is optional, and any part that is not overridden keeps its default. Examples:
    • Registry only: point to Artifactory or another proxy for registry.gitlab.com, with the image path and version unchanged.
    • Version only: pin the image to a specific tag, with the registry and image path unchanged.
    • Registry, image path, and version: use a custom image at a custom version.
  • Clean up the old unsupported workaround in the docs: the Kubernetes mutating webhook steps under "Error: ImagePullBackOff when starting workspace in offline environment" in doc/user/workspace/workspaces_troubleshooting.md, which point to this issue for a supported solution.
Edited by Ben Bodenmiller