-
Notifications
You must be signed in to change notification settings - Fork 74
Closed
devfile/library
#71Labels
area/libraryCommon devfile library for interacting with devfilesCommon devfile library for interacting with devfiles
Description
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)
Metadata
Metadata
Assignees
Labels
area/libraryCommon devfile library for interacting with devfilesCommon devfile library for interacting with devfiles