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.
More medium Flux CD questions
- Which Flux setup reports deployment results back to GitHub as commit statuses?
- You delete a Flux Kustomization that has prune: true and no deletionPolicy. What happens to the objects it applied?
- Which file in a Git repository tells source-controller to leave files out of the artifact it builds?
- How can a HelmRelease install a chart that is stored in an OCI registry?
- A GitRepository sets both ref.branch: main and ref.tag: v1.2.0. Which one does Flux check out?
- A Deployment keeps changing and you don't know which Flux object manages it. Which command tells you?