You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This new field would contain a list of items that contain the same information as the current plugin components, but simplified as there is no need to distinguish them from non-plugin components:
contributions:
- name: reference-by-uriuri: <URI to devworkspace or devfile yaml/json>
- name: reference-by-k8skubernetes:
name: <name of DevWorkspaceTemplate>namespace: <namespace for DWT; optional -- default is current namespace>
- name: reference-by-idid: <ID in a devfile registry>registryURL: <URL to registry containing plugin>
Contributions would also support the current plugin overriding functionality, to allow overriding components/commands in the contribution:
contributions:
- name: reference-by-uriuri: <URI to devworkspace or devfile yaml/json>components:
- name: theia-idecontainer:
env:
- name: THEIA_HOSTvalue: 0.0.0.0
Why is this needed? Is your feature request related to a problem?
Since plugin components were removed from the devfile schema (#333), there has been a mismatch between the DevWorkspace custom resource and Devfiles. This leads to the following issues:
There's not a clear line between a devfile and a devworkspace when plugins are used -- if you want to add plugins to a devfile, the devworkspace.spec.template must be modified, where it should ideally be a copy of the original Devfile
Converting a DevWorkspace into a Devfile requires filtering the components list for components with type plugin
This change would mean that there is a clear, distinct way to layer on additional components to existing Devfiles when creating a DevWorkspace.
The same DevWorkspace posted above, written with the current DevWorkspace CR, would instead be
Note that even with this change, the DevWorkspace .spec.template.components still has to support components of type Plugin in v1alpha2, as removing it there would be a backwards-incompatible change. Hopefully this implementation would allow for migration away from plugin components, making it easier to (potentially) drop the plugin component type if/when we reach v1alpha3.
The text was updated successfully, but these errors were encountered:
Which area this feature is related to?
/area devworkspace
Which functionality do you think we should add?
Add a new field to DevWorkspaces to store plugin components, separate from the DevWorkspace template:
This new field would contain a list of items that contain the same information as the current
plugin
components, but simplified as there is no need to distinguish them from non-plugin components:Contributions would also support the current plugin overriding functionality, to allow overriding components/commands in the contribution:
Why is this needed? Is your feature request related to a problem?
Since
plugin
components were removed from the devfile schema (#333), there has been a mismatch between the DevWorkspace custom resource and Devfiles. This leads to the following issues:devworkspace.spec.template
must be modified, where it should ideally be a copy of the original Devfileplugin
This change would mean that there is a clear, distinct way to layer on additional components to existing Devfiles when creating a DevWorkspace.
The same DevWorkspace posted above, written with the current DevWorkspace CR, would instead be
Additional Information
Note that even with this change, the DevWorkspace
.spec.template.components
still has to support components of type Plugin inv1alpha2
, as removing it there would be a backwards-incompatible change. Hopefully this implementation would allow for migration away from plugin components, making it easier to (potentially) drop the plugin component type if/when we reachv1alpha3
.The text was updated successfully, but these errors were encountered: