Skip to content

Use OCM cli to submit OCM components #287

@ruanxin

Description

@ruanxin

Description

Following the completion of kyma-project/modulectl#281, the submission of OCM component versions should ideally be handled entirely by the OCM CLI, eliminating the need for modulectl to perform this task.

Solution

The required configuration for OCM CLI can be locally stored in archives using the Common Transfer Format (CTF). We can use modulectl to generate such file as input for OCM CLI.

An example can be find here

Reasons

  • Reduce maintenance overhead for modulectl

  • Delegate responsibilities to the OCM CLI, which is purpose-built for managing OCM artifacts

  • Simplify the scope and responsibilities of modulectl

Acceptance Criteria

  • Introduce a feature flag to disable OCM push in modulectl; create a follow-up issue to remove the related code after the migration is complete
  • Add a new feature for modulectl to generate CTF instead of publishing OCM component versions based on above feature flag
  • Update KLM e2e tests to combine modulectl with ocm cli for publishing OCM component versions
  • Update documentation and usage instructions accordingly

Sub-issues

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions