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

HelmRepository Validation allows invalid interval (which leads to source controller OOM)

Open kav opened this issue 4 years ago • 0 comments

To reproduce manually apply or add to a flux sync a helm repository resource with the interval property set to 1d. The helm repository will pass validation but the source controller will then crash with OOM and the error:

pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:167: Failed to watch *v1beta1.HelmRepository: failed to list *v1beta1.HelmRepository: v1beta1.HelmRepositoryList.Items: []v1beta1.HelmRepository: v1beta1.HelmRepository.Spec: v1beta1.HelmRepositorySpec.Timeout: Interval: unmarshalerDecoder: time: unknown unit "d" in duration "1d", error found in #10 byte of ...|rval":"1d","timeout"|

kav avatar Sep 03 '21 14:09 kav