v1

package
v1.29.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupPodWebhookWithManager

func SetupPodWebhookWithManager(mgr ctrl.Manager) 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
}

type TensorFusionInfo

type TensorFusionInfo struct {
	Profile         *tfv1.WorkloadProfileSpec
	Replicas        int32
	EnabledReplicas *int32
	WorkloadName    string
	ContainerNames  []string
	GenWorkload     bool
}

func ParseTensorFusionInfo

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

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