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 ¶
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 ¶
func New(newRoundTripper apifunc.K8sRoundTripperFactory) runner.BuiltinFunction
New returns a runner.BuiltinFunction whose Run method obtains its Kubernetes client through newRoundTripper.
Types ¶
This section is empty.