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
devfile/library provides GetComponents(common.DevfileOptions) ([]v1.Component, error) for reading the components from the devfile. The param DevfileOptions allows consumers to filter components based on the component attribute.
However, devfile/library also has GetDevfileContainerComponents() & GetDevfileVolumeComponents() funcs for getting container and volume components respectively. A cleaner approach would be to consolidate all filtering options via the param DevfileOptions in GetComponents(). Options could be the Component Type(container, kubernetes, volume, etc), Command Type(exec, apply, etc), Command Group Kind(run, debug, etc)
The text was updated successfully, but these errors were encountered:
devfile/library provides
GetComponents(common.DevfileOptions) ([]v1.Component, error)
for reading the components from the devfile. The paramDevfileOptions
allows consumers to filter components based on the component attribute.However, devfile/library also has
GetDevfileContainerComponents()
&GetDevfileVolumeComponents()
funcs for getting container and volume components respectively. A cleaner approach would be to consolidate all filtering options via the paramDevfileOptions
inGetComponents()
. Options could be the Component Type(container, kubernetes, volume, etc), Command Type(exec, apply, etc), Command Group Kind(run, debug, etc)The text was updated successfully, but these errors were encountered: