How to solve the invalid chart reference error? #5048
-
Hi everyone, just playing around with helm and flux (So far I was always using kustomize) but I get an issue where flux can't reconciliate as it can't build the helm chart because it can't find it on the source repository. I'm using a GitRepository source for this helmRelease. The upstream git repository is: peertube-helm apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: peertube-helm
namespace: peertube
spec:
interval: 1m
url: https://git.lecygnenoir.info/LecygneNoir/peertube-helm.git
ref:
tag: v1.6.0 Then I've got a helmRelease set as: apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: v1.6.0
namespace: peertube
spec:
interval: 10m
chart:
spec:
chart: Chart
sourceRef:
kind: GitRepository
name: peertube-helm
namespace: peertube
interval: 5m Flux correctly create the namespace and storage volume/claims and even correctly retrieve and create the peertube-helm gitRepository artifact. However, it fail being able to locate the Chart.yaml file which is located at the root of the repository and end up with the following message:
What did I missed? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
The In your case it's |
Beta Was this translation helpful? Give feedback.
The
.spec.chart.spec.chart
is the path to the chart dir, see the docs here: https://fluxcd.io/flux/components/source/helmcharts/#chartIn your case it's
./
which is really bad, as the whole Git history will end up in packaged Helm chart. Please follow the standard Helm chart template that contains https://github.com/stefanprodan/podinfo/blob/master/charts/podinfo/.helmignore