November 27, 20269 minutes
From 24 to 26 November 2026 we were back at the SAP Innovation Center in Potsdam for the second IPCEI-CIS hackathon. As in July, OCM had its own track: OCM as a delivery and compliance backbone. One thing we worked on is the answer to a question we hear a lot:
I have an OCM component with a Helm chart in it. How do I deploy it?
Our answer is a proof of concept and not released yet, but it shows where we want to go.
Take a simple component: the podinfo Helm chart and the podinfo image, signed by the team that built them.
components:
- name: ocm.software/podinfo
version: 1.0.0
provider:
name: ocm.software
resources:
- name: chart
type: helmChart
version: 6.9.1
access:
type: OCIImage/v1
imageReference: ghcr.io/stefanprodan/charts/podinfo:6.9.1@sha256:565d3107...
- name: image
type: ociImage
version: 6.9.1
access:
type: OCIImage/v1
imageReference: ghcr.io/stefanprodan/podinfo:6.9.1@sha256:262578cd...With OCM you transfer this component into the environment it runs in: into the registry of a sovereign cloud, or, through a transport archive, into an air-gapped data center. With an OCI uploader configured, the transfer copies the chart and the image, and the signature stays valid. Now you want to deploy it there with Flux. But the chart inside still points to the old registry.
The chart’s default values still say:
image:
repository: ghcr.io/stefanprodan/podinfo
tag: 6.9.1Deployed as it is, the cluster would pull the image from ghcr.io. That registry may not be reachable, and
even if it is, the image there is not the copy you transferred. Before the chart is installed, its values must
point to the transferred image. In OCM we call that
localization.
To localize, you need two facts: where the image is now, and where the chart refers to it. The component
descriptor, the metadata that lists the component’s resources and where they are, knows the first: the
transfer updated the image resource’s access. It does not know the second: nothing says that the chart’s
image.repository value means that resource.
Today someone writes that connection by hand. With the OCM controllers you create a Resource per chart and
per image, which reports where the artifact lives. A kro ResourceGraphDefinition (or a Crossplane Composition)
wires those into an OCIRepository and a HelmRelease, and maps every image onto the chart’s values, as in
our Helm chart guide with kro and GitOps.
This excerpt is from one of our examples:
- id: resourceImage
template:
apiVersion: delivery.ocm.software/v1alpha1
kind: Resource
spec:
resource:
byReference:
resource:
name: image-resource
additionalStatusFields:
registry: resource.access.toOCI().registry
repository: resource.access.toOCI().repository
tag: resource.access.toOCI().tag
# ...
- id: helmrelease
template:
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
spec:
values:
image:
repository: ${resourceImage.status.additional.registry}/${resourceImage.status.additional.repository}
tag: ${resourceImage.status.additional.tag}In the full
helm-configuration-localization example,
about 90 lines are needed for one chart and one image with Flux (the file also has an Argo CD variant).
Every further image adds another Resource and another mapping, and whoever writes the mapping has to know
where in the chart’s values each image goes. You need one such definition per chart, and kro or Crossplane
running in the cluster.
We had tried to hide this wiring before, in a single resource that chained CEL functions. The user feedback on it was clear: the CEL dialect is not discoverable through the Kubernetes API, it still feels like wiring, and users asked for small, purpose-built resources that proxy Flux’s own objects instead.
The solution has two parts: one object that looks like a Flux HelmRelease, and a label in the component
that tells it which image is which.
The OCM-backed HelmRelease lives in its own API group, flux.delivery.ocm.software, and has the fields of a
Flux HelmRelease, except chartRef. In spec.chart, where Flux has an OCI URL and a tag, it has the OCM
coordinates and a semver constraint for the component version, and the chart’s kind is always
OCIRepository.
apiVersion: flux.delivery.ocm.software/v1alpha1
kind: HelmRelease
metadata:
name: podinfo
spec:
chart:
kind: OCIRepository
spec:
url:
repositorySpec:
type: OCIRegistry
baseUrl: registry.example.com
component: ocm.software/podinfo
# the resource to deploy defaults to the one named "chart"
ocmConfig:
- kind: Secret
name: ocm-verification # public key for signature verification
ref:
semver: ">=1.0.0"
interval: 10m
interval: 1m
values:
replicaCount: 2All other fields use Flux’s own Go types, so the API server validates them like those of a native
HelmRelease.
This integration is an optional part of the OCM controller manager. On every reconciliation it selects the
newest component version that matches ref.semver, and verifies its signature if a verifier is configured
(as in the example) and the digest of the chart. Then it localizes the chart’s values and applies one native
Flux HelmRelease, with the chart pinned to its digest (or to its version, if the component records no
digest for it).
Localization happens in three steps: when the component is built, when it is transferred, and when it is deployed.
ocm add cv --localize-hints adds a label to every ociImage resource, taken from its image reference:
labels:
- name: ocm.software/localization
version: v1
signing: true
value:
type: ociImage
matchKey:
registry: ghcr.io
repository: stefanprodan/podinfo
tag: 6.9.1
digest: sha256:262578cd...The label says which image a resource is, not where it appears in a chart, so it does not depend on the
chart’s structure and works for any chart that uses the image. signing: true makes it part of the signed
descriptor.
With an OCI uploader configured, the transfer copies the image and rewrites the resource’s access to the
new location. It does not touch the label. The signature covers the label but not access, so the signature
stays valid and the original coordinates stay signed.
On every reconciliation the controller:
Collects the labeled images of the component. For each, the registry and repository from the label are
the match key, and the resource’s current access is the target, pinned to the digest the descriptor
records for it.
Downloads the chart and finds the image references in its default values and in those of its subcharts.
An image is either a map with a repository or image key (optionally with registry, tag and
digest), or a string that looks like an image reference.
Matches each reference against the labels by registry and repository. The tag does not count, so a chart that bumps its default tag still matches.
Rewrites each match in the chart’s own shape:
# Registry as part of the repository
image:
repository: ghcr.io/stefanprodan/podinfo # -> registry.example.com/stefanprodan/podinfo
tag: 6.9.1 # -> 6.9.1
# Registry split from the repository: the split is kept
image:
registry: ghcr.io # -> registry.example.com
repository: acme/api # -> acme/api
tag: v1 # -> tag of the transferred image
# A Docker Hub image (redis is library/redis) with a digest field: pinned by digest
image:
repository: redis # -> registry.example.com/library/redis
tag: "6" # -> tag of the transferred image
digest: sha256:aaaa... # -> digest of the transferred imageWithout a digest field, the image is pinned by tag only, and the controller records an event.
Puts your values on top. If you set an image’s repository or image in spec.values, your value
replaces the localized one. Setting only its tag, registry or digest is rejected, since it would mix
your coordinates with the relocated ones.
Reports what it did in status.appliedLocalizations: for each path in the values, the label it matched,
the reference it wrote, and whether it is pinned by digest.
The OCM-backed Kustomization uses the same labels and writes the localized images into spec.images.
(We might move the search through the chart’s values.yaml to construction time instead: ocm add cv
would find the places where each image goes and record them in the component, possibly together with the
functionality of ocm-kit.)
The whole flow, from building the component to running it:
ocm add cv --localize-hints # pack chart and image, with labels
ocm sign cv ... # sign
ocm transfer cv --config copy.ocmconfig ... registry.example.com # copy chart and image
kubectl apply -f helmrelease.yaml # one objectcopy.ocmconfig tells the transfer to copy OCI artifacts instead of keeping references to them:
type: generic.config.ocm.software/v1
configurations:
- type: oci.uploader.transfer.config.ocm.software/v1alpha1The controller applies a native HelmRelease whose values point to the transferred image:
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: podinfo
spec:
chart:
kind: OCIRepository
spec:
url: oci://registry.example.com/... # the transferred chart
ref:
digest: sha256:... # the digest OCM verified
values:
replicaCount: 2
image:
repository: registry.example.com/stefanprodan/podinfo
tag: 6.9.1podinfo’s values have no digest field, so the image is pinned by tag, and the status reports
digestPinned: false. The chart itself is pinned by digest.
Since Flux 2.10, helm-controller creates the
OCIRepository for a chart like this itself. Next to the OCM-backed HelmRelease, the cluster has the same
objects a hand-written Flux setup would have: one HelmRelease, and the OCIRepository that Flux created from
it. You don’t need kro, a definition per chart, or a hand-written mapping. The status of the OCM-backed
HelmRelease reports the component version it deployed and which images it localized. Deleting it deletes
the native HelmRelease, and Flux uninstalls the release.
So, is this a simple way to deploy with OCM? For the person who deploys, yes: one object, with fields they already know from Flux. The work has not disappeared. It moved into the component, which carries signed labels, and into the controller, which reads them.
None of it is released yet, and the proof of concept has known limits:
Application in the same style is part of the design, and still in progress.The ADR and the implementation are in open-component-model#4101, part of the epic Simplified, deployer-agnostic component deployment. If you deploy OCM components with Flux, we would like to hear whether this shape fits your setup, and what is missing: the community page shows how to reach us.
And thanks to everyone in Potsdam for three good days of hacking. See you at the next one.