# How can a HelmRelease install a chart that is stored in an OCI registry?

Flux CD, Medium (Advanced), Integration. https://k8wiz.com/uquiz/how-can-a-helmrelease-install-a-chart-that-is-stored-in-an-oci-registry

- A. Set spec.values.repository to the oci:// address of the chart
- B. Run helm pull in an init container of helm-controller
- C. Point spec.chartRef at an OCIRepository that holds the chart
- D. Mirror the chart to a Git repository first, since OCI isn't supported

**Answer:** Point spec.chartRef at an OCIRepository that holds the chart

**Explanation:** An OCIRepository pulls the chart artifact and the HelmRelease's chartRef names it. The release then follows the tag, semver range or digest set on the OCIRepository, and the chart's signature can be checked with Cosign or Notation first.
