aimmodel

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEffectiveType

func GetEffectiveType(specDefault *aimv1alpha1.AIMProfileType, templateType aimv1alpha1.AIMProfileType) aimv1alpha1.AIMProfileType

GetEffectiveType returns the effective profile type for a custom template. Uses template-level type if set, otherwise falls back to spec-level default, otherwise defaults to "unoptimized".

func IsCustomModel

func IsCustomModel(spec *aimv1alpha1.AIMModelSpec) bool

IsCustomModel returns true if the model spec defines inline model sources, indicating it's a custom model rather than an image-based model.

func MergeHardware

func MergeHardware(specDefault, templateOverride *aimv1alpha1.AIMHardwareRequirements) *aimv1alpha1.AIMHardwareRequirements

MergeHardware merges spec-level default hardware with template-level overrides. Template values take precedence over spec defaults. When template provides a GPU struct, all its values (including zero) override spec. When template only provides CPU, spec GPU is preserved.

Types

type ClusterModelFetchResult

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

func (ClusterModelFetchResult) GetComponentHealth

func (result ClusterModelFetchResult) GetComponentHealth() []controllerutils.ComponentHealth

type ClusterModelObservation

type ClusterModelObservation struct {
	ClusterModelFetchResult
}

ClusterModelObservation embeds the fetch result. The observation phase is minimal since FetchResult.GetComponentHealth() handles health derivation and PlanResources uses spec helper methods directly for planning decisions.

type ClusterModelReconciler

type ClusterModelReconciler struct {
	Clientset kubernetes.Interface
	Scheme    *runtime.Scheme
}

func (*ClusterModelReconciler) DecorateStatus

func (*ClusterModelReconciler) FetchRemoteState

type ModelFetchResult

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

func (ModelFetchResult) GetComponentHealth

func (result ModelFetchResult) GetComponentHealth() []controllerutils.ComponentHealth

type ModelObservation

type ModelObservation struct {
	ModelFetchResult
}

ModelObservation embeds the fetch result. The observation phase is minimal since FetchResult.GetComponentHealth() handles health derivation and PlanResources uses spec helper methods directly for planning decisions.

type ModelReconciler

type ModelReconciler struct {
	Clientset kubernetes.Interface
	Scheme    *runtime.Scheme
}

func (*ModelReconciler) DecorateStatus

func (*ModelReconciler) FetchRemoteState

Jump to

Keyboard shortcuts

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