Help us shape the future of Go! Take the 2026 Go Developer Survey

agentsync

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package agentsync re-deploys helmfile-based agent instances (applications/hermes/<id>) from their on-disk deployment directories. Shared by `obol stack import` (unconditional sync so restored secrets/tokens line up) and the stack-up/sell-resume record replay (internal/replay: only instances whose helm release is missing or failed).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListInstances

func ListInstances(cfg *config.Config, runtime agentruntime.Runtime) []string

ListInstances returns the instance IDs with a deployment dir for runtime.

func SyncInstances

func SyncInstances(cfg *config.Config, u *ui.UI, opts Options) error

SyncInstances re-deploys every hermes instance from its on-disk helmfile. Best-effort per instance: failures warn and are joined into the returned error so callers can count the step as warned.

Types

type Options

type Options struct {
	// OnlyMissing skips instances whose namespace already holds deployed
	// helm releases. `helmfile sync` per agent costs a repo refresh plus a
	// chart render and upgrade (tens of seconds), so the stack-up replay only
	// pays it when the cluster actually lost the release.
	OnlyMissing bool
}

Options controls SyncInstances.

Jump to

Keyboard shortcuts

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