runnercfg

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 11 Imported by: 0 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.

Documentation

Overview

Package runnercfg wires the per-harness agent-runner fleet from controller flags: the image and credential Secret for each harness, which harnesses a deployment enables, and the startup validation that every allowlisted model can actually be run. Both job controllers (investigation, remediation) share it so the flag surface and enablement rules never drift apart.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterFlags

func RegisterFlags(f *pflag.FlagSet)

RegisterFlags adds the per-harness runner flags shared by both job controllers: an image per harness (unset = that runner is not configured), its credential Secret name/key/env, and the harness restrict list.

func Resolve

func Resolve(ctx context.Context, cs kubernetes.Interface, namespace string,
	runners map[string]jobs.Runner, restrict, allowlist []string, requiredModels ...string) ([]string, error)

Resolve probes the configured runners' credentials, computes the enabled harness set, and validates coverage: the allowlist must be fully runnable and every requiredModel (the investigate/remediate defaults, canonical ids) must resolve to an enabled harness. It returns the sorted enabled harness ids.

func ResolveHarness

func ResolveHarness(canonical string, enabled []string) (harnessID, cliModelID string, err error)

ResolveHarness resolves a canonical model id to its harness and CLI model-id given the enabled set, erroring when the model is unknown or unrunnable.

func Restrict

func Restrict(opts *cli.Options) []string

Restrict parses the --harnesses restrict list; empty means auto-detect.

func Runners

func Runners(opts *cli.Options) (map[string]jobs.Runner, error)

Runners builds the configured runner fleet from the flags. A harness is a candidate runner only when its image flag is set; the credential env var is validated against the harness's accepted credential channels so a typo'd --claude-secret-env fails at startup rather than in the pod.

func SplitList

func SplitList(s string) []string

SplitList splits a comma-separated flag value, trimming blanks.

Types

This section is empty.

Jump to

Keyboard shortcuts

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