Summary
Migrate this repository's component build pipeline from OCM CLI v1 (open-component-model/ocm, v0.42.x) to OCM CLI v2 (open-component-model/open-component-model, v0.6.x).
Why
- Anyone installing the current OCM CLI release locally gets v2, which is incompatible with our pipeline syntax, leading to confusing "works in CI, fails locally" reports.
Current state
CI uses v1 via this step in .github/workflows/ocm.yaml:
- uses: open-component-model/ocm-setup-action@main
# resolves to https://github.com/open-component-model/ocm latest release → v0.42.x
Constructor templates use Go templating ({{ .VAR }}) and CLI invocations pass --templater=go plus positional -- KEY=VALUE arguments. v2 replaces this with shell-style env var substitution (${VAR}) and a different sub-command surface (e.g. ocm add component-versions instead of ocm add components).
Acceptance criteria
Related
Additional Info
Platform Mesh 0.3.0 can be transfered, the Gateway API CRDs (Kubernetes Sigs) Access Type needs to be changed, because in OCM v2 (Github) isnt valid anymore.
Summary
Migrate this repository's component build pipeline from OCM CLI v1 (
open-component-model/ocm, v0.42.x) to OCM CLI v2 (open-component-model/open-component-model, v0.6.x).Why
Current state
CI uses v1 via this step in
.github/workflows/ocm.yaml:Constructor templates use Go templating (
{{ .VAR }}) and CLI invocations pass--templater=goplus positional-- KEY=VALUEarguments. v2 replaces this with shell-style env var substitution (${VAR}) and a different sub-command surface (e.g.ocm add component-versionsinstead ofocm add components).Acceptance criteria
latest)service-component.yamlconditional rendering produces the same two output variants as today (APP_VERSION == 0.0.0→ no image ref; otherwise → image ref present)docs/release-process.mdanddocs/ocm-workflow-versioning.mdreflect the v2 commandsRelated
ocm transferflow for air-gapped deployment scenarios #1725 — air-gap deployment work (independent, parallelizable; benefits from v2 long-term but does not require it)Additional Info
json.RawMessagefields incorrectly generatetype: objectin JSON schema, breaking transfer of component versions with string label values open-component-model/open-component-model#2585bug(helm): ChartReference() builds non-functional URL for HTTPS Helm repositories open-component-model/open-component-model#2660