image-automation-controller icon indicating copy to clipboard operation
image-automation-controller copied to clipboard

Timeout enforcement

Open pjbgf opened this issue 3 years ago • 0 comments

Image Automation Controller does not have a Spec.Timeout, as most other controllers do, instead it applies the Spec.Timeout set in the referred source, and uses that timeout for each Git related operation.

However, in some cases the reconcilation seems to get stuck for long periods of time (based on the gotk_reconcile_duration_seconds_sum metric): image

ImageUpdateAutomation YAML:

apiVersion: image.toolkit.fluxcd.io/v1beta1
kind: ImageUpdateAutomation
metadata:
  name: github-branch
  namespace: flux-system
spec:
  git:
    checkout:
      ref:
        branch: main
    commit:
      author:
        email: [email protected]
        name: fluxcdbot
      messageTemplate: '{{range .Updated.Images}}{{println .}}{{end}}'
    push:
      branch: push-branch
  interval: 60s
  sourceRef:
    kind: GitRepository
    name: flux-system
  update:
    path: ./clusters/production
    strategy: Setters

pjbgf avatar May 29 '22 09:05 pjbgf