Skip to content

EPIC: OCM V2: ocm get cv <ctf_dir> should list all components and their versions #532

@ikhandamirov

Description

@ikhandamirov

Description

When called on a CTF without specifying a component name, the OCM CLI v2 command ocm get cv should list all components and their versions contained there.

This form requires significant extensions to the existing OCM Repository structure:

  1. We require a ComponentVersionRepositoryLister Interface that is implemented to be able to list ComponentVersionRepositories:
    • The list should be unique by name
    • The list should be able to point back to the original repository where you can retrieve versions
  2. This needs to be implemented primarily by CTFs
  3. Afterwards we need an extension of the Plugin Contract for Component Versions (@Skarlso for reference)
  4. Once this is done, ocm get cv needs to work for ctf repositories if there is no component specified (likely adjustment to component reference parsing, but needs investigation)
  5. After this, if there is a CTF specification, and we have no component name, attempt to lookup component names via the new Interface. If successful, extend the call to list all versions for all components.
    This should later on be extendable for docker registries so we can use the catalog API for example.

Done Criteria

  • Code has been reviewed by other team members
  • Analysis of existing tests (Unit and Integration)
  • Unit Tests created for new code or existing Unit Tests updated
  • Integration Test Suite updated (includes deletion of existing unnecessary Integration Test and/or creation of new ones if required)
  • Enduser Documentation updated (if applicable)
  • Internal technical Documentation created/updated (if applicable)
  • Successful demonstration in Review

Metadata

Metadata

Assignees

Labels

kind/epicLarge multi-story topic

Type

No fields configured for Epic.

Projects

Status
🔍 Review

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions