Open Frankkkkk opened 2 years ago
Got the same situation: helm repository changed and flux failed to pull helm chart. Any changes to flux-system repository are not synced, flux is still using old repo files. Editing helmrepository not fixing the issue - old url returns back after flux reconcile flux-system source. How can we force flux to sync with latest git files?
Hey! I am having the same issue. Did you find any solution for this?
This issue has been open for a while without being substantiated, and a lot has happened since Flux 0.28.5 – I suspect @rajat-tomar that you might not have exactly the same issue, without hearing more detail about it.
I was not able to reproduce the issue... (quick recording of where I attempted to reproduce the issue – youtube will have it ready soon, it's still processing from the upload now)
If you have a current version of Flux and are able to repro this issue, could you provide more information about it? Following the steps in the original post, I did not see any issue.
Hi, I'll try to reproduce with the latest version of flux tomorrow and I'll keep you up to date. Thanks to you all !
I'm able to reproduce this issue - not sure exactly how, but you can see the above referenced commit and just invert the change I made.
Spewing errors rather angrily and not letting source-controller come up: {"level":"info","ts":"2023-03-14T00:14:52.851Z","logger":"runtime","msg":"k8s.io/client-go@v0.26.2/tools/cache/reflector.go:169: failed to list *v1beta2.HelmRepository: time: unknown unit \"d\" in duration \"1d\"\n"}
@duckfullstop what version are you on? As the HelmRepository
has a validation rule for the duration these days: https://github.com/fluxcd/source-controller/blob/main/api/v1beta2/helmrepository_types.go#L68-L71
@duckfullstop what version are you on? As the
HelmRepository
has a validation rule for the duration these days: https://github.com/fluxcd/source-controller/blob/main/api/v1beta2/helmrepository_types.go#L68-L71
This was on v0.41.1. It's worth noting that I updated from v0.39.0 to attempt to fix this issue, but I observed the new source-controller pod (with the new image version!) continue to fail as above.
My guess would be that the validation you mentioned is occurring only on manifest apply, and if bad state is already in the cluster it breaks everything in the process. If that's mitigatable during read then great, otherwise a patch note / warning somewhere that (favourite search engine here) can pick up would probably be a good idea.
Validation rules are already in place since v0.35.0
: https://github.com/fluxcd/flux2/releases/tag/v0.35.0, but they indeed only happen during apply.
Describe the bug
I was editing a
HelmRepository
and set an invalid.spec.interval=1d
value.Once the source-controller pulled the git repo, it immediately detected the invalid value:
As I didn't really looked at the logs, I deleted the source-controller pod
After that, I pushed another commit fixing the syntax (
.spec.interval=1m
) but the source-controller would not pull the repo, and it still failed on the error above.Another restart/deletion of the
source-controller
pod did not fix the problem:and indeed the gitrepo was not updated:
I manually
kubectl edited
the HelmResource and set a valid value. Immediately the gitrepo updated itself:Steps to reproduce
HelmRepository
with an invalid.spec.interval
field (e.g.10d
).Expected behavior
The source-controller should pull the git repo expecting a change
Screenshots and recordings
No response
OS / Distro
N/A
Flux version
v0.28.5
Flux check
► checking prerequisites ✔ Kubernetes 1.22.6+k3s1 >=1.20.6-0 ► checking controllers ✔ helm-controller: deployment ready ► ghcr.io/fluxcd/helm-controller:v0.18.2 ✔ kustomize-controller: deployment ready ► ghcr.io/fluxcd/kustomize-controller:v0.22.3 ✔ notification-controller: deployment ready ► ghcr.io/fluxcd/notification-controller:v0.23.2 ✔ source-controller: deployment ready ► ghcr.io/fluxcd/source-controller:v0.22.5 ✔ all checks passed
Git provider
No response
Container Registry provider
No response
Additional context
No response
Code of Conduct