agent

package
v0.30.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 45 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenBaoProvisioner

type OpenBaoProvisioner interface {
	ProvisionSinjector(ctx context.Context, cfg RuntimeConfig, opts SinjectorOpenBaoOptions) error
	CleanupSinjector(ctx context.Context, cfg RuntimeConfig, opts SinjectorOpenBaoOptions) error
}

OpenBaoProvisioner reconciles SIP-specific OpenBao auth objects.

func NewOpenBaoProvisioner

func NewOpenBaoProvisioner(client *baoapi.Client) OpenBaoProvisioner

NewOpenBaoProvisioner shares the manager's authenticated client so repeated provisioning does not create additional tokens or renewal goroutines.

type Reconciler

type Reconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Config RuntimeConfig
	Bao    OpenBaoProvisioner
}

Reconciler reconciles an Agent object.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile moves the cluster state toward the desired Agent state.

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type RuntimeConfig

type RuntimeConfig struct {
	AgentDefaultImage                string
	GatewayURL                       string
	SharedNixPVC                     string
	NixCacheEndpoint                 string
	AgentInitImage                   string
	OpenBaoAddr                      string
	OpenBaoSecretMountPath           string
	ControllerImage                  string
	SinjectorCASecretName            string
	SinjectorCASecretCertKey         string
	SinjectorCASecretKeyKey          string
	SinjectorCASecretBundleKey       string
	SinjectorCACertPath              string
	SinjectorCAKeyPath               string
	AgentCABundlePath                string
	OpenBaoK8sAuthMountPath          string
	SinjectorOpenBaoK8sAuthTokenPath string
	GatewayTokenAudience             string
	SkillStore                       skill.Config
}

RuntimeConfig configures controller-side launch defaults.

type SinjectorOpenBaoOptions

type SinjectorOpenBaoOptions struct {
	Namespace          string
	ServiceAccountName string
	RoleName           string
	PolicyName         string
	AgentName          string
}

SinjectorOpenBaoOptions identifies the SIP OpenBao identity and secret scope.

Jump to

Keyboard shortcuts

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