argosync

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package argosync implements the argo.sync builtin function: set an Argo CD Application's spec.source.targetRevision and trigger a sync. Runs in-process inside kas; callers construct it with a K8sRoundTripperFactory. In production that factory routes to the tenant cluster's apiserver through agentk; argo.sync turns its http.RoundTripper into a dynamic Kubernetes client internally. See gitlab-org/gitlab#600981 for the agent_id-aware routing seam.

Index

Constants

This section is empty.

Variables

View Source
var ErrAutoSyncEnabled = errors.New("auto-sync is enabled")

ErrAutoSyncEnabled is returned when the target Application has automated sync configured — an Argo-driven sync would race with the operation argo.sync triggers.

Functions

func New

New returns a runner.BuiltinFunction whose Run method obtains its Kubernetes client through newRoundTripper.

Types

This section is empty.

Jump to

Keyboard shortcuts

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