Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

HelmCharts set to not ready on index download resp. source-controller restart

Aperta
#924 1 commento 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
go, helm

Direzione di ricerca

Inizia tracciando il comportamento di source-controller durante un riavvio mentre viene scaricato l’indice di HelmRepository, quindi confronta l’issue 431 e la discussion 3152 correlate. Il lavoro è completato quando HelmCharts rimangono Unknown anziché Not Ready durante questo intervallo, così che un HelmRelease riconciliato simultaneamente non venga contrassegnato come fallito.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area/helm

We're facing the following situation:

  • we have several helmreleases installed successfully in our cluster
  • the helmrepositories and helmcharts are also created and ready

Once the source-controller is restarted, it first fetches the repositories' index, meanwhile setting the helmrepositories state to Unknown. This leads to all the helmcharts states being set to "Not Ready".
Here an event message for a helmchart:
chart pull error: could not load repository index for remote chart reference: stat /data/helmrepository/default/myhelmrepo/index-<long id>.yaml: no such file or directory
Once the individual charts are downloaded again, the helmcharts' states transition to Unknown and Ready. The state where all helmcharts are not ready only lasts some seconds, but if in this time a helmrelease is reconciled (e.g. if the helm-controller is restarted), it is set to Not Ready as well. All dependent resources watching the helmreleases also see the Not Ready state.
Can this intermediate state of the helmcharts be changed to Unknown as for the helmrepositories? This way the helm-controller would potentially be able to set the helmrelease state to processing instead of failed.

The problem might be related to issue https://github.com/fluxcd/source-controller/issues/431, but I'm not sure how the helm-controller could be changed as mentioned there.

I also started a discussion here: https://github.com/fluxcd/flux2/discussions/3152 explaining the problem, maybe it can be fixed for certain use cases like the parallel installation/update of helm-controller and source-controller.

Lingua principale
Go
Stelle
283
Fork
252
Merge medio
1h 6m
PR unite (30g)
12

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fluxcd/source-controller

Tutte le issue di fluxcd/source-controller

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.