Skip to content

Conversation

@medmes
Copy link
Member

@medmes medmes commented Nov 7, 2025

Description
Use OCM cli to submit OCM components in KLM e2e, in other words spliting the moduletemplate creation and artifacts to modulectl and delegate the pushing OCI Artifacts to the OCI registry,

Changes proposed in this pull request in details:

  • Add install-ocm-cli action (.github/actions/install-ocm-cli/action.yml) to install OCM CLI with checksum verification.
  • Expose ocm_cli_version and template_operator_version outputs in get-configuration action and wire them into workflows.
  • Install ocm-cli from setup-tools and pass ocm_cli_version to the setup step.
  • Checkout template-operator using template_operator_version and pass module_version into the deploy action.
  • Update deploy_moduletemplate.sh.
  • Add ocm-config-local-registry.yaml and ocm-config-private-registry.yaml under scripts/tests.
  • Add contributor documentation for creating ModuleTemplate with modulectl + OCM CLI and link it from ModuleTemplate docs.
  • Improve teardown/debug scripts output for easier troubleshooting.
  • Bump tooling in versions.yaml: modulectl -> 2.5.0, add ocm-cli 0.32.0, add template-operator version.
  • Minor formatting and reliability improvements across workflows and scripts.
  • No breaking API changes; this improves e2e reliability by aligning deployed images with versions.yaml and pushing component descriptors via OCM.

Related issue(s)
kyma-project/modulectl#287

- Update `action.yml` to use `install-ocm-cli` action with archive naming (ocm-<version>-<os>-<arch>.tar.gz)
- Add checksum verification and `GitVersion` validation using yq
- Adjust setup tools action to pass `ocm_cli_version` to e2e test github workflow
@medmes medmes requested a review from a team as a code owner November 7, 2025 15:17
@github-actions
Copy link

github-actions bot commented Nov 7, 2025

⚠️ Pipeline-related file changes detected! Please review if related updates (e.g. manifest generation or workflow adjustments) are required.

@github-actions
Copy link

github-actions bot commented Nov 7, 2025

Manifests created with 'make dry-run-control-plane' changed! Please make sure to check if changes are needed in related repositories like management-plane-charts, runtime-watcher, etc.

@medmes medmes linked an issue Nov 7, 2025 that may be closed by this pull request
4 tasks
@medmes medmes requested a review from a team as a code owner December 1, 2025 13:02
@medmes medmes enabled auto-merge (squash) December 2, 2025 10:17
mmitoraj
mmitoraj previously approved these changes Dec 2, 2025
@medmes medmes merged commit 1fcfebb into kyma-project:main Dec 2, 2025
58 checks passed
@medmes medmes deleted the feat/use-ocm-cli-to-submit-ocm-components-versions branch December 2, 2025 12:23
c-pius pushed a commit that referenced this pull request Dec 3, 2025
feat(e2e): add OCM CLI support and improve template-operator e2e deployment

- Add install-ocm-cli action (.github/actions/install-ocm-cli/action.yml) to install OCM CLI with checksum verification.
- Expose ocm_cli_version and template_operator_version outputs in get-configuration action and wire them into workflows.
- Install ocm-cli from setup-tools and pass ocm_cli_version to the setup step.
- Checkout template-operator using template_operator_version and pass module_version into the deploy action.
- Enhance deploy-template-operator-with-modulereleasemeta:
  - Read module version from versions.yaml, set image tags with yq and build manifests.
  - Use modulectl to generate component constructor and OCM CLI to create/transfer CTF to registries (support local & private registries).
  - Add debug checks for ModuleTemplate / ModuleReleaseMeta and registry contents.
  - Pass both the OCM release version and the actual deployable image version to deploy_moduletemplate.
- Update deploy_moduletemplate.sh:
  - Add required DEPLOYABLE_IMAGE_VERSION parameter and input validation.
  - Use modulectl + ocm to generate/push component versions, patch manifests, apply ModuleTemplate, and clean up temp files.
  - Improve logging and error handling.
- Add ocm-config-local-registry.yaml and ocm-config-private-registry.yaml under scripts/tests.
- Add contributor documentation for creating ModuleTemplate with modulectl + OCM CLI and link it from ModuleTemplate docs.
- Improve teardown/debug scripts output for easier troubleshooting.
- Bump tooling in versions.yaml: modulectl -> 2.5.0, add ocm-cli 0.32.0, add template-operator version.
- Minor formatting and reliability improvements across workflows and scripts.
- No breaking API changes; this improves e2e reliability by aligning deployed images with versions.yaml and pushing component descriptors via OCM.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use OCM cli to submit OCM components

3 participants