image-automation-controller
image-automation-controller copied to clipboard
Timeout enforcement
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):

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