gitops

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package gitops is the Go port of .lok8s/libs/gitops — DEFERRED (post-refactor redesign), exactly like the bash.

The previous implementation emitted Flux Kustomization CRs with dependsOn chains and Argo sync-wave annotations, driven by spec.syncWave. That field was removed as part of the bootstrap/targets refactor; gitops output will be redesigned to work from the new services.yaml + targets model and re-enabled in a follow-up. Until then the module exists so `lo gitops` emits a clear error instead of a "command not found", and the dispatch tail's gitops::bootstrap stays a warn-only no-op. No exec happens anywhere in this package (nothing to capture via execx).

Index

Constants

This section is empty.

Variables

View Source
var ErrDeferred = ui.Handled(errors.New("gitops: deferred"))

ErrDeferred is the non-zero exit of the deferred subcommands (bash: `error …; return 1`) — the message was already printed.

Functions

func Argo

func Argo(stderr io.Writer) error

Argo is gitops::argo (deferred): prints the error, returns ErrDeferred.

func Bootstrap

func Bootstrap(stderr io.Writer, domain, provider string) error

Bootstrap is gitops::bootstrap, the provision-dispatch tail hook called when spec.gitops.provider is set: a warn-only no-op that always succeeds.

func BootstrapHook

func BootstrapHook(stderr io.Writer) func(ctx context.Context, domain, provider string) error

BootstrapHook returns Bootstrap in the shape of provision.Hooks.GitopsBootstrap.

func Flux

func Flux(stderr io.Writer) error

Flux is gitops::flux (deferred): prints the error, returns ErrDeferred.

Types

This section is empty.

Jump to

Keyboard shortcuts

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