skillfed

flux-local

[DEPRECATED] flux-local is a set of tools and libraries for managing a local flux gitops repository focused on validation steps to help improve quality of commits, PRs, and general local testing.

flux-local v8.4.0 143.2K downloads/30d#11,182 on PyPI
Permissive license Apache-2.0 Active released

What it is and what it does

flux-local is a deprecated Python library and CLI tool designed to validate Flux GitOps repositories locally by replicating Flux behavior without connecting to a live Kubernetes cluster. It uses kustomize and helm command-line tools to build and inspect cluster objects from a local git repository, enabling developers to test configuration changes, validate manifests, and review diffs before committing or opening pull requests.

The package provides four main CLI commands: `get` to list Kustomizations and HelmReleases, `build` to render manifests, `diff` to compare local changes against prior revisions, and `test` to verify resources format correctly. It requires Python 3.13 or later and depends on GitPython, PyYAML, aiofiles, mashumaro, nest-asyncio, oras, pytest, pytest-asyncio, and python-slugify. The project is no longer actively maintained; the maintainers recommend migrating to flate or konflate instead.

Use it for:

  • Validate Kustomization and HelmRelease manifests locally before committing to a GitOps repository
  • Run local diffs to preview the effect of configuration changes on rendered Kubernetes objects
  • Integrate manifest validation into CI pipelines to catch invalid resources early
  • Test home-lab or small-scale Flux deployments without deploying to a live cluster

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

flux-local provides CLI tools and a Python library to validate Flux GitOps repositories locally by building and diffing Kubernetes manifests without requiring a live cluster.

No. The package is explicitly deprecated and sunsetted by its maintainers, who recommend migrating to flate (an offline validator written in Go) or konflate (a pull request review tool). While it has low install friction and no known security vulnerabilities, choosing a deprecated tool over actively maintained alternatives introduces maintenance and support risk. Install only if you are maintaining existing flux-local code and cannot migrate immediately.

Install

flux-local on PyPI

pip

pip install flux-local

uv

uv add flux-local

poetry

poetry add flux-local

Installing flux-local

Before you install

Low install friction with a pure Python wheel and nine runtime dependencies. However, the package is marked as deprecated and inactive in its development status classifier, with the maintainers explicitly recommending migration to flate or konflate as active alternatives.

License in practice

Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions beyond attribution and liability disclaimers.

Quickstart

pip install flux-local
flux-local get ks -o wide
flux-local build ks --path ./cluster/
flux-local test

Requires kustomize and helm command-line tools to be installed and available in PATH; requires Python 3.13 or later.

Verify before relying

  • Whether kustomize and helm are required as external system dependencies for the CLI to function
  • Current state of the GitHub repository and whether it remains accessible despite deprecation status

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.13)
Install friction low — pure-Python wheel
Runtime dependencies 9 — GitPython, PyYAML, aiofiles, mashumaro, nest-asyncio, oras, pytest, pytest-asyncio, python-slugify
Maintenance actively maintained — 43 days since the last release
First released
Downloads 143,226/month — #11,182 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: flux_local-8.4.0-py3-none-any.whl

Development Status :: 7 - Inactive

Tags

flux gitops local validationkubernetes manifest validation offlinekustomize helm local testingflux repository validation cligitops local build and diff
gitopskubernetesdeprecated

More Quality Assurance packages