Description
In many cases, it would be useful to be able to "bootstrap" a DevWorkspace from a devfile. For example, a user could create a basic DevWorkspace and configure it so that the project-clone container:
- Clones a project via Git
- Checks the cloned project for a
devfile.yaml or .devfile.yaml
- Updates the DevWorkspace's
.spec.template to match the detected devfile, causing the workspace to restart.
This would make creating DevWorkspaces in certain contexts a lot easier; if git credentials are configured on a cluster, the project-clone container could clone a private or otherwise inaccessible project and set up a DevWorkspace for it automatically.
This could be controlled via a devfile attribute, e.g. controller.devfile.io/bootstrap-devworkspace: true to trigger this behavior.
Additional context
Description
In many cases, it would be useful to be able to "bootstrap" a DevWorkspace from a devfile. For example, a user could create a basic DevWorkspace and configure it so that the project-clone container:
devfile.yamlor.devfile.yaml.spec.templateto match the detected devfile, causing the workspace to restart.This would make creating DevWorkspaces in certain contexts a lot easier; if git credentials are configured on a cluster, the project-clone container could clone a private or otherwise inaccessible project and set up a DevWorkspace for it automatically.
This could be controlled via a devfile attribute, e.g.
controller.devfile.io/bootstrap-devworkspace: trueto trigger this behavior.Additional context