# In Flux 2.10, how can a HelmRelease install an OCI chart without a separately declared source object?

Flux CD, Medium (Advanced), Integration. https://k8wiz.com/uquiz/in-flux-210-how-can-a-helmrelease-install-an-oci-chart-without-a-separately-declared-source-object

- A. Set spec.chartRef.kind: OCIRepository with spec.chartRef.url
- B. Set spec.chart.spec.sourceRef.kind: OCIRepository and a url
- C. Set spec.chart.kind: OCIRepository with spec.chart.spec.url
- D. Set spec.chart.spec.chart to an oci:// URL with no sourceRef

**Answer:** Set spec.chart.kind: OCIRepository with spec.chart.spec.url

**Explanation:** The chart template accepts OCIRepository as spec.chart.kind, and helm-controller creates and manages that OCIRepository in the release namespace. spec.chartRef still works but points at an OCIRepository you declare yourself. A template lets the chart version and values change together in one commit.
