helm-controller icon indicating copy to clipboard operation
helm-controller copied to clipboard

HelmChart forever stuck with "auth secret error"

Open artem-nefedov opened this issue 2 years ago • 1 comments

If the secret used by HelmRepository is deleted after HelmRepository was created, and you create HelmRelease referencing that repository, this HelmRelease will never be able to reconcile, because HelmChart object created for that HelmRelease will become forever stuck in auth secret error: Secret "secret-name" not found state, even if Secret is re-created later. No force reconciling helps. The only solution is to delete and re-create everything manually. It would be great if controller could detect that Secret exists again to get out of this state.

Reproduced with:

helm-controller:v0.16.0
source-controller:v0.21.2

artem-nefedov avatar Feb 10 '22 12:02 artem-nefedov

There may be changes in the pipeline which will help this situation. We're discussing it at Bug Scrub, and it's certain that there are changes which touch everything in Source Controller, that will be released soon. It's getting rewritten.

HelmChart should retry immediately and back-off if the failure is persistent. (But that might not be the state of what's currently released.) The next release of source-controller (0.22.x) should have these changes, so you can test again when you see it released. (Please let us know!)

kingdonb avatar Mar 03 '22 18:03 kingdonb

This has been fixed in Flux 2.1

stefanprodan avatar Nov 30 '23 11:11 stefanprodan