Skip to content

Update devfile/library Get func for filtering #373

@maysunfaisal

Description

@maysunfaisal

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 devfiles

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions