GitRepository
A Flux source object that tells the source controller which Git repository and branch to fetch, and how often.
In more detail
It sets the URL, the branch or tag and the fetch interval. Kustomizations reference it by name through sourceRef, so the URL is written once and can feed several paths.
Example
kind: GitRepository
spec:
interval: 1m
url: https://github.com/acme/platform-configRelated terms
- source controller — The Flux controller that fetches content from Git, Helm or OCI sources, verifies it and makes it available to other controllers.
- sourceRef — The field in a Flux object that names the source object, such as a GitRepository, to read content from.
- Flux Kustomization — A Flux object that points at a path in a source, and tells Flux how often to build and apply it and whether to prune.
Taught in
- Flux as the Alternative — Continuous Integration & Continuous Delivery Pipelines
- Sources, Kustomizations, and HelmReleases — Continuous Integration & Continuous Delivery Pipelines