Skip to content

Add the Get Component Version Command to the OCM Root Command #473

@jakobmoellerdev

Description

@jakobmoellerdev

Description

The command for getting component versions is a new reference command that needs to be added to the command tree. It should reuse any integrated credential graph and infrastructure from the root command

This command should:

  • Use the already established credential graph from Integrate the Credential Graph into the Root OCM Command #475 for passing accesses to the repositories
  • Use the reference string implementation from Support Component Reference Strings #477 to allow a positional argument
  • Traverse down components with List or Get commands accordingly and fetch the descriptors from the repository
  • Format these descriptors either with YAML or JSON based on a flag
  • Output them sorted either based on a semver restriction or the version / digest requirement
  • Not output standard log messages by default but only print the YAML/JSON for use in parsers like yq/jq

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

Labels

area/ipceiImportant Project of Common European Interestkind/tasksmall task, normally part of feature or epic

Type

No fields configured for Task.

Projects

Status
🍺 Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions