MCPcopy Index your code
hub / github.com/fluxcd/flux2

github.com/fluxcd/flux2 @v2.9.0

repository ↗ · DeepWiki ↗ · release v2.9.0 ↗ · Ask this repo → · + Follow
1,551 symbols 5,440 edges 338 files 268 documented · 17% updated 3d agov2.9.0 · 2026-06-30★ 8,249211 open issues
README

Flux version 2

release CII Best Practices OpenSSF Scorecard FOSSA Status Artifact HUB SLSA 3

Flux is a tool for keeping Kubernetes clusters in sync with sources of configuration (like Git repositories and OCI artifacts), and automating updates to configuration when there is new code to deploy.

Flux version 2 ("v2") is built from the ground up to use Kubernetes' API extension system, and to integrate with Prometheus and other core components of the Kubernetes ecosystem. In version 2, Flux supports multi-tenancy and support for syncing an arbitrary number of Git repositories, among other long-requested features.

Flux v2 is constructed with the GitOps Toolkit, a set of composable APIs and specialized tools for building Continuous Delivery on top of Kubernetes.

Flux is a Cloud Native Computing Foundation (CNCF) graduated project, used in production by various organisations and cloud providers.

Quickstart and documentation

To get started check out this guide on how to bootstrap Flux on Kubernetes and deploy a sample application in a GitOps manner.

For more comprehensive documentation, see the following guides: - Ways of structuring your repositories - Manage Helm Releases - Automate image updates to Git
- Manage Kubernetes secrets with Flux and SOPS

If you need help, please refer to our Support page.

GitOps Toolkit

The GitOps Toolkit is the set of APIs and controllers that make up the runtime for Flux v2. The APIs comprise Kubernetes custom resources, which can be created and updated by a cluster user, or by other automation tooling.

overview

You can use the toolkit to extend Flux, or to build your own systems for continuous delivery -- see the developer guides.

Components

Community

Need help or want to contribute? Please see the links below. The Flux project is always looking for new contributors and there are a multitude of ways to get involved.

Events

Check out our events calendar, both with upcoming talks, events and meetings you can attend. Or view the resources section with past events videos you can watch.

We look forward to seeing you with us!

Extension points exported contracts — how you extend this code

GitProviderOption (Interface)
(no doc) [6 implementers]
pkg/bootstrap/bootstrap_provider.go
Printer (Interface)
Printer is an interface for printing Flux cmd outputs. [3 implementers]
pkg/printers/interface.go
WritableFS (Interface)
WritableFS extends fs.FS with a WriteFile method. [3 implementers]
cmd/flux/migrate.go
Printer (Interface)
(no doc) [3 implementers]
internal/tree/tree.go
Logger (Interface)
(no doc) [2 implementers]
pkg/log/log.go
GitOption (Interface)
(no doc) [4 implementers]
pkg/bootstrap/bootstrap_plain_git.go
PrinterFunc (FuncType)
PrinterFunc is a function that can print args to a writer.
pkg/printers/interface.go
ObjMetadataTree (Interface)
(no doc) [1 implementers]
internal/tree/tree.go

Core symbols most depended-on inside this repo

Successf
called by 136
pkg/log/log.go
String
called by 123
internal/flags/crds.go
Run
called by 123
cmd/flux/migrate.go
resourceNamesCompletionFunc
called by 87
cmd/flux/completion.go
Actionf
called by 73
pkg/log/log.go
Error
called by 73
cmd/flux/main.go
Failuref
called by 54
pkg/log/log.go
KubeClient
called by 43
internal/utils/utils.go

Shape

Function 775
Method 526
Struct 177
TypeAlias 34
Interface 32
FuncType 7

Languages

Go100%

Modules by API surface

pkg/bootstrap/bootstrap_provider.go52 symbols
cmd/flux/source.go36 symbols
pkg/bootstrap/options.go30 symbols
cmd/flux/migrate.go28 symbols
internal/plugin/install_test.go27 symbols
cmd/flux/image.go27 symbols
cmd/flux/events.go26 symbols
internal/plugin/discovery_test.go25 symbols
cmd/flux/main_test.go24 symbols
pkg/bootstrap/bootstrap.go22 symbols
cmd/flux/get.go21 symbols
internal/tree/tree.go20 symbols

Dependencies from manifests, versioned

cloud.google.com/gov0.123.0 · 1×
cloud.google.com/go/auth/oauth2adaptv0.2.8 · 1×
cloud.google.com/go/compute/metadatav0.9.0 · 1×
dario.cat/mergov1.0.1 · 1×
github.com/42wim/httpsigv1.2.4 · 1×
github.com/Azure/azure-sdk-for-go/sdk/azcorev1.21.1 · 1×
github.com/Azure/azure-sdk-for-go/sdk/azidentityv1.13.1 · 1×
github.com/Azure/azure-sdk-for-go/sdk/containers/azcontainerregistryv0.2.3 · 1×

For agents

$ claude mcp add flux2 \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact