controller

package
v0.0.0-...-b13a440 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package controller implements the node-local control loop inside snapshot-agent. It does not own CRDs or replace the operator. Instead it watches pod, job, and lease state on the current node and delegates CRIU/CUDA execution to the snapshot executor workflows.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeController

type NodeController struct {
	// contains filtered or unexported fields
}

NodeController watches local-node pods with checkpoint metadata and reconciles snapshot execution for checkpoint and restore requests.

func NewNodeController

func NewNodeController(
	cfg *types.AgentConfig,
	containerd *containerd.Client,
	log logr.Logger,
) (*NodeController, error)

NewNodeController creates the node-local controller that runs inside snapshot-agent.

func (*NodeController) Run

func (w *NodeController) Run(ctx context.Context) error

Run starts the local pod informers and processes checkpoint/restore events.

Jump to

Keyboard shortcuts

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