Dashboard should put plugins in DevWorkspace .spec.contributions
instead of as plugin components in .spec.templates
#21737
Labels
area/dashboard
kind/enhancement
A feature request - must adhere to the feature request template.
severity/P1
Has a major impact to usage or development of the system.
Is your enhancement related to a problem? Please describe
Once devfile/devworkspace-operator#939 is merged, DevWorkspaces will support a new field
.spec.contributions
. This functions like plugin components in.spec.template.components
but allows for plugins to be defined separately from the rest of the devfile, and hopefully makes provisioning workspaces simpler.When injecting editors/other components into a workspace, the dashboard should instead use the contributions field:
Note that the structure of the component being added is slightly different, with the
plugin
field being removed (since all items in.spec.contributions
are treated as plugins)Note: to avoid an issue where dashboard uses this field before it is available in DevWorkspaces, this issue should not be implemented until DWO ships these changes. Otherwise we risk running into an issue like #21729
Describe the solution you'd like
Adopt the
.spec.contributions
field for specifying editors and additional components not present in the original Devfile. This has the additional benefit of making conversion from Devfile -> DevWorkspace simpler, as the basic structure isDescribe alternatives you've considered
No response
Additional context
This issue is part of #21736
The text was updated successfully, but these errors were encountered: