The HelmRelease source kind is inferred either from .spec.chart.spec.sourceRef.kind(for HelmRepository and GitRepository) or .spec.chartRef.kind(for OCIRepistory).
The source repository is currently selected by kind only. It's naively assumed there's only a single repository of the given kind in the helm.yaml file, and the name matches what is referenced in the HelmRelease.
We could select the repository both by kind and ${repo_name} to be sure.
The
HelmReleasesourcekindis inferred either from.spec.chart.spec.sourceRef.kind(forHelmRepositoryandGitRepository) or.spec.chartRef.kind(forOCIRepistory).The source repository is currently selected by
kindonly. It's naively assumed there's only a single repository of the given kind in thehelm.yamlfile, and the name matches what is referenced in theHelmRelease.We could select the repository both by
kindand${repo_name}to be sure.