Documentation
¶
Overview ¶
Package installer implements sdktools.ModuleInstaller for kubeconfig mode: it lets an agent install a capability module on the fly, mid-build, through the MCP endpoint — resolving the module from the public catalog and helm-installing it via the exact same path `tiny install` uses. Without this, install_module tells the agent to go run helm itself.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModuleInstaller ¶
type ModuleInstaller struct {
// contains filtered or unexported fields
}
ModuleInstaller resolves + helm-installs modules onto the local cluster.
func New ¶
func New(cfg *rest.Config, namespace string) *ModuleInstaller
New returns an installer bound to one cluster + namespace.
func (*ModuleInstaller) InstallModule ¶
func (m *ModuleInstaller) InstallModule(ctx context.Context, moduleName, version string, bundles []string, onProgress func(sdktools.InstallProgress)) (*sdktools.InstallResult, error)
InstallModule resolves moduleName from the public catalog and installs it. version is currently ignored (always the catalog's latest); bundles aren't supported by the local path yet and are surfaced as a warning. Install failures come back as InstallResult{Success:false} (not a Go error) so the agent gets a clean message plus the progress transcript.