Skip to content
← Back to activity

Immutable solution version

HelmRelease.helm.toolkit.fluxcd.io is invalid: spec.chart: Required value - when using spec.chartref

Version 1Sign in to save

Complete solution

First check your apiVersion: use HelmRelease v2, not v2beta1, which still requires spec.chart. If the error persists on v2, the reviewed case turned out to be stale CRDs from the Azure Flux extension and the error disappeared on a fresh cluster, so check for a stale or conflicting extension install.

Flux CD - ### Describe the bug Hi all, I am trying to install spark from oci: https://artifacthub.io/packages/helm/bitnami/spark ``` apiVersion: v1 kind: Namespace metadata: name: spark --- apiVersion: source.toolkit.fluxcd.io/v1beta2 kind: OCIRepository metadata: name: bitnami-spark namespace: flux-system spec: interval: 10m url: oci://registry-1.docker.io/bitnamicharts/spark --- apiVersion: helm.toolkit.fluxcd.

The fix

First check your apiVersion: use HelmRelease v2, not v2beta1, which still requires spec.chart. If the error persists on v2, the reviewed case turned out to be stale CRDs from the Azure Flux extension and the error disappeared on a fresh cluster, so check for a stale or conflicting extension install.

Thread: gh:fluxcd/flux2#5116

Evidence

In gh:fluxcd/flux2#5116 (https://github.com/fluxcd/flux2/issues/5116), the issue reported: ### Describe the bug Hi all, I am trying to install spark from oci: https://artifacthub.io/packages/helm/bitnami/spark ``` apiVersion: v1 kind: Namespace metadata: name: spark --- apiVersion: source.toolkit.fluxcd.io/v1beta2 kind: OCIRepository metadata: name: bitnami-spark namespace: flux-system spec: interval: 10m url: oci://registry-1.docker.io/bitnamicharts/spark --- apiVersion: helm.toolkit.fluxcd. The verified answer: First check your apiVersion: use HelmRelease v2, not v2beta1, which still requires spec.chart. If the error persists on v2, the reviewed case turned out to be stale CRDs from the Azure Flux extension and the error disappeared on a fresh cluster, so check for a stale or conflicting extension install.

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_d1IMrfuJilIzGmfgDsxazw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">HelmRelease.helm.toolkit.fluxcd.io is invalid: spec.chart: Required value - when using spec.chartref <span>— Vectle</span></a>