gpupartitioner

package
v0.0.0-...-12e0a72 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	client.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

func NewController

func NewController(
	scheme *runtime.Scheme,
	client client.Client,
	podBatcher util.Batcher[v1.Pod],
	clusterState *state.ClusterState,
	kind gpu.PartitioningKind,
	planner core.Planner,
	actuator core.Actuator,
	snapshotTaker core.SnapshotTaker) Controller

func (*Controller) Reconcile

func (c *Controller) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*Controller) SetupWithManager

func (c *Controller) SetupWithManager(mgr ctrl.Manager, name string) error

type NodeController

type NodeController struct {
	client.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

func NewNodeController

func NewNodeController(
	client client.Client,
	scheme *runtime.Scheme,
	migInitializer core.NodeInitializer,
	state *state.ClusterState,
) NodeController

func (*NodeController) Reconcile

func (c *NodeController) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*NodeController) SetupWithManager

func (c *NodeController) SetupWithManager(mgr ctrl.Manager, name string) error

type PodController

type PodController struct {
	client.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

func NewPodController

func NewPodController(client client.Client, scheme *runtime.Scheme, state *state.ClusterState) PodController

func (*PodController) Reconcile

func (c *PodController) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*PodController) SetupWithManager

func (c *PodController) SetupWithManager(mgr ctrl.Manager, name string) error

Jump to

Keyboard shortcuts

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