aimtemplatecache

package
v0.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TemplateCacheFetchResult

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

func (TemplateCacheFetchResult) GetComponentHealth

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

GetComponentHealth returns the health of all dependencies for status computation.

type TemplateCacheObservation

type TemplateCacheObservation struct {
	TemplateCacheFetchResult

	AllCachesAvailable bool
	MissingCaches      []aimv1alpha1.AIMModelSource
	BestModelCaches    map[string]aimv1alpha1.AIMModelCache
}

func (TemplateCacheObservation) GetComponentHealth

func (obs TemplateCacheObservation) GetComponentHealth() []controllerutils.ComponentHealth

GetComponentHealth overrides the embedded FetchResult's method to include model cache health. This is necessary because cache matching happens in ComposeState, which runs after FetchRemoteState.

type TemplateCacheReconciler

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

func (*TemplateCacheReconciler) DecorateStatus

DecorateStatus implements StatusDecorator to populate status fields and set domain-specific conditions. The framework will set the overall Ready condition after this runs, based on all conditions.

NOTE: This method sets the ModelCachesReady condition (rather than GetComponentHealth) because cache health depends on matching logic computed in ComposeState - specifically which caches match the template's ModelSources. See GetComponentHealth for more context.

Jump to

Keyboard shortcuts

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