v1

package
v1.41.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTensorFusionInfo

func ParseTensorFusionInfo(
	ctx context.Context,
	k8sClient client.Client,
	pod *corev1.Pod,
) (utils.TensorFusionInfo, error)

func SetupPodWebhookWithManager

func SetupPodWebhookWithManager(mgr ctrl.Manager, portAllocator *portallocator.PortAllocator) error

SetupPodWebhookWithManager registers the webhook for Pod in the manager.

Types

type TFResource

type TFResource struct {
	ContainerName       string
	ConnectionName      string
	ConnectionNamespace string
	TflopsRequest       resource.Quantity
	VramRequest         resource.Quantity
	TflopsLimit         resource.Quantity
	VramLimit           resource.Quantity
	GPUModel            string // Required GPU model (e.g., A100, H100)
}

type TensorFusionPodCounter added in v1.26.0

type TensorFusionPodCounter struct {
	Client client.Client
}

func (*TensorFusionPodCounter) Decrease added in v1.26.0

func (c *TensorFusionPodCounter) Decrease(ctx context.Context, pod *corev1.Pod) error

Decrease decreases the counter in owner annotation by key

func (*TensorFusionPodCounter) Get added in v1.26.0

Get gets the counter value from the owner annotation by key

func (*TensorFusionPodCounter) Increase added in v1.26.0

func (c *TensorFusionPodCounter) Increase(ctx context.Context, pod *corev1.Pod) error

Increase increases the counter in owner annotation by key

type TensorFusionPodMutator

type TensorFusionPodMutator struct {
	Client client.Client
	// contains filtered or unexported fields
}

func (*TensorFusionPodMutator) Handle

Handle implements admission.Handler interface.

func (*TensorFusionPodMutator) InjectDecoder

func (m *TensorFusionPodMutator) InjectDecoder(d admission.Decoder) error

InjectDecoder injects the decoder.

Jump to

Keyboard shortcuts

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