helm-controller
helm-controller copied to clipboard
HelmChart doesn't recover from "chart pull error: failed to get chart version for remote reference: no chart name found"
When I faced with helm chart repository outage my charts became stuck in ChartPullFailed even when repository back online.
FluxCD v0.27.0 helm-controller v0.17.0
How to reproduce:
- Install HelmRelease of a chart.
- Remove the chart from chart repository. Wait for HelmRepository and HelmRelease to reconcile.
- See ArtifactFailed reason in HelmRelease
- Put the chart back to chart repository.
- Make sure HelmRepository reconciled and index.yaml contains the chart.
- See HelmChart and HelmRelease stuck in error state
chart pull error: failed to get chart version for remote reference: no chart name found
I observe this behaviour both with reconcileStrategy: Revision
and reconcileStrategy: ChartVersion
in HelmChartSpec
As per the documentation I assume that reconcileStrategy: Revision
should handle this?
We seem to get this quite often using source-controller version v0.21.0 (I believe the source-controller is the controller that manages chart artefacts) , and recycling the source-controller always fixes it. Not sure if this needs moving to the source-controller repo
@racdev Thanks, restart source controller deployment fixed the issue for me too, using flux v2.0.1