gitops-commit

command module
v0.14.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 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: create commits and pull requests, then merge approved changes using the caller's GitHub identity.
  • commit/github: the GitHub implementation of the Remote interface.
  • commit/committest: an in-process Remote for tests.

See the development guide for package details.

Who imports it

GitHub dependents

Identity

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

If GitHub rejects the token with a 401 or 403 response, the module returns commit.ErrAuth with the status code. The caller handles sign-in. The module never retries with a different identity.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package commit writes file changes and pull requests through the caller's Git host identity.
Package commit writes file changes and pull requests through the caller's Git host identity.
internal/remote
Package remote holds what the commit.Remote implementations share: the names and messages of the branches, commits and pull requests they make.
Package remote holds what the commit.Remote implementations share: the names and messages of the branches, commits and pull requests they make.
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.
internal
commitmodel
Package commitmodel lands rendered files on the Git host with the caller's identity: a branch, one commit per repository, the pull request carrying the caller's text, and the merge once the caller says approved and the checks are green.
Package commitmodel lands rendered files on the Git host with the caller's identity: a branch, one commit per repository, the pull request carrying the caller's text, and the merge once the caller says approved and the checks are green.
fluxobjects
Package fluxobjects 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 fluxobjects resolves the commit target of an object a Flux Kustomization applies from a GitRepository, and holds the Flux objects and names the resolution reads.
location
Package location 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 location holds where GitOps files live: the Repository and the Location (repository, branch and directory), parsed from a repository URL or named by the caller.
targetmodel
Package targetmodel 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 targetmodel 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 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 its own kustomization.yaml that lists them, and the parent's kustomization.yaml, where there is one, lists the directory.
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 its own kustomization.yaml that lists them, and the parent's kustomization.yaml, where there is one, lists the directory.
Package manifest describes Kubernetes objects added to or removed from Git.
Package manifest describes Kubernetes objects added to or removed from Git.
Package provenance describes repository locations for GitOps files.
Package provenance describes repository locations for GitOps files.
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 resolves where GitOps file changes belong.
Package target resolves where GitOps file changes belong.
flux
Package flux resolves GitOps targets through Flux Kustomizations and GitRepositories.
Package flux resolves GitOps targets through Flux Kustomizations and GitRepositories.

Jump to

Keyboard shortcuts

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