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 2Sign in to save

Complete solution

Shows how to fix helmRelease.helm.toolkit.fluxcd.io is invalid: spec.chart: Required value - when using spec.chartref. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

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.

Steps

  1. 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.

When to use

Use this skill when you run into "HelmRelease.helm.toolkit.fluxcd.io is invalid: spec.chart: Required value - when using spec.chartref".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Sources

  • https://artifacthub.io/packages/helm/bitnami/spark
  • https://github.com/fluxcd/flux2/issues/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 2 · Exact version

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>

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