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

kustomization running health checks until timeout but should fail earlier

Open messiahUA opened this issue 3 years ago • 0 comments

flux version: v0.31.0 kustomize controller version: v0.26.0

  1. there is a Kustomization with a wait and a timeout:
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
[...]
wait: true
timeout: 15m
  1. this Kustomization creates some HelmReleases
  2. if HelmRelease upgrade fails (it is reflected in the status) Kustomization continues to run health checks until the timeout (15m), but should fail as soon as HelmRelease fails:
NAMESPACE     NAME                        AGE    READY     STATUS
flux-system   somekustomization           111d   Unknown   running health checks with a timeout of 15m0s

helmrelease:

status:
  conditions:
  - lastTransitionTime: "2022-07-20T11:22:30Z"
    message: upgrade retries exhausted
    reason: UpgradeFailed
    status: "False"
    type: Ready
    reason: UpgradeFailed
    status: "False"
    type: Released

This creates an unnecessary delay because Kustomization is blocked until a timeout and neither doesn't apply a new commit nor reacts to any edits.

messiahUA avatar Jul 20 '22 12:07 messiahUA