k8wiz
Flux CD
Medium
Integration

How can a push to Git make Flux fetch the new commit right away instead of waiting for the GitRepository interval?

Select your answer:

Show answer and explanation

Answer: Create a Receiver and point the Git provider's webhook at its URL

Explanation

notification-controller serves a webhook path for each Receiver and shows it in status.webhookPath. When a verified event arrives, it asks for an immediate reconciliation of the objects listed in the Receiver. The webhook-receiver Service has to be reachable from the Git provider, for example through an Ingress.