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 ¶
- func RegisterFlags(f *pflag.FlagSet)
- func Resolve(ctx context.Context, cs kubernetes.Interface, namespace string, ...) ([]string, error)
- func ResolveHarness(canonical string, enabled []string) (harnessID, cliModelID string, err error)
- func Restrict(opts *cli.Options) []string
- func Runners(opts *cli.Options) (map[string]jobs.Runner, error)
- func SplitList(s string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterFlags ¶
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 ¶
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.
Types ¶
This section is empty.