gitops-commit

command module
v0.15.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2026 License: Apache-2.0 Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

gitops-commit

Go module that lands rendered files in GitOps repositories with the caller's identity: where a change goes (Flux today), SOPS encryption for the repository's recipients, branch, commit, pull request and merge.

Packages

  • provenance: the GitHub repository, branch and directory where GitOps files live.
  • target: where a commit about a live object, or a new object in a namespace, goes, and which GitOps object applies it.
  • target/flux: the Flux resolver: reads Flux objects with the manager's Kubernetes clients, also for an object on a cluster that Flux applies to through spec.kubeConfig.
  • manifest: Kubernetes manifests to apply or remove, with the controller's pruning policy.
  • dryrun: check Kubernetes RBAC and admission with the caller's client before committing.
  • sopsenc: encrypt secret files for the repository's SOPS recipients and generate secret values.
  • layout: organize files and plan changes to GitOps directories and workload clusters.
  • commit: resolve where each object's file lives, dry-run the change on the cluster as the caller, plan the files, and open a pull request while checking for competing requests with the same branch prefix.
  • forge: the Git host: create commits and pull requests, then merge approved changes with the caller's identity on the Git host.
  • forge/github: the GitHub implementation of the Remote interface.
  • forge/forgetest: an in-process Remote for tests.

See the development guide for package details and the migration guide for names that changed.

Who imports it

GitHub dependents

Identity

The caller supplies the GitHub credential used for every operation. Commits, pull requests and merges use the identity associated with that credential. The module does not obtain credentials, persist tokens or private keys, or manage a GitHub App.

GitHub authentication and permission refusals return forge.ErrAuth with the status code. Callers distinguish 401 Unauthorized from 403 Forbidden when choosing a response; a permission refusal does not by itself require sign-in. Rate-limit errors retain their upstream types. The module never retries with a different identity.

An MCP server must supply a credential intended for GitHub, separate from the bearer token accepted by its MCP endpoint. MCP authorization and OAuth token acquisition remain the caller's responsibility; this module does not implement either protocol.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package commit plans Kubernetes object changes and opens pull requests in their GitOps repositories with the caller's identity.
Package commit plans Kubernetes object changes and opens pull requests in their GitOps repositories with the caller's identity.
Package dryrun asks the cluster whether it would accept a GitOps change from the caller, before the change goes to Git.
Package dryrun asks the cluster whether it would accept a GitOps change from the caller, before the change goes to Git.
Package forge is the Git host the module writes to.
Package forge is the Git host the module writes to.
internal/remote
Package remote holds what the forge.Remote implementations share: the names and messages of the branches, commits and pull requests they make.
Package remote holds what the forge.Remote implementations share: the names and messages of the branches, commits and pull requests they make.
internal
describe
Package describe names Kubernetes objects in messages, the same in every package of the module.
Package describe names Kubernetes objects in messages, the same in every package of the module.
Package layout is where a writer's files go in a GitOps repository and what one write changes there: every writer (a manager, a CLI) owns one directory under the directory a Flux Kustomization builds from, holding one file per object and a Kustomize file that lists them.
Package layout is where a writer's files go in a GitOps repository and what one write changes there: every writer (a manager, a CLI) owns one directory under the directory a Flux Kustomization builds from, holding one file per object and a Kustomize file that lists them.
Package manifest describes Kubernetes objects added to or removed from Git.
Package manifest describes Kubernetes objects added to or removed from Git.
Package provenance holds where GitOps files live: the Repository and the Location (repository, branch and directory), parsed from a repository URL or named by the caller.
Package provenance holds where GitOps files live: the Repository and the Location (repository, branch and directory), parsed from a repository URL or named by the caller.
Package sopsenc encrypts a repository's secret files for the age recipients of the matching creation rule of its .sops.yaml.
Package sopsenc encrypts a repository's secret files for the age recipients of the matching creation rule of its .sops.yaml.
Package target answers where a commit about a live object goes: the repository, branch and directory its file lives in (an edit), or where a new object in a namespace goes.
Package target answers where a commit about a live object goes: the repository, branch and directory its file lives in (an edit), or where a new object in a namespace goes.
flux
Package flux resolves the commit target of an object a Flux Kustomization applies from a GitRepository, and holds the Flux objects and names the resolution reads.
Package flux resolves the commit target of an object a Flux Kustomization applies from a GitRepository, and holds the Flux objects and names the resolution reads.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL