controller

package
v0.0.0-...-0514228 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManagedModel

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

type ManagedPolicyRef

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

type ModelDeploymentReconciler

type ModelDeploymentReconciler struct {
	client.Client
	Scheme        *runtime.Scheme
	BeamlitClient *beamlit.Client

	Offloader        offloader.Offloader
	Configurer       configurer.Configurer
	MetricInformer   metric.MetricInformer
	HealthInformer   health.HealthInformer
	HealthStatusChan <-chan health.HealthStatus
	MetricStatusChan <-chan metric.MetricStatus

	OngoingOffloadings sync.Map // key: namespace/name, value: percentage
	ModelState         sync.Map // key: namespace/name, value: modelState
	ManagedModels      map[string]ManagedModel
	BeamlitModels      map[string]string // key: spec.model/spec.environment, value: modelDeployment name

	DefaultRemoteBackend *v1alpha1.RemoteBackend
}

func (*ModelDeploymentReconciler) PolicyUpdate

func (r *ModelDeploymentReconciler) PolicyUpdate(ctx context.Context) error

func (*ModelDeploymentReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the ModelDeployment object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.17.3/pkg/reconcile

func (*ModelDeploymentReconciler) SetupWithManager

func (r *ModelDeploymentReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

func (*ModelDeploymentReconciler) WatchForInformerUpdates

func (r *ModelDeploymentReconciler) WatchForInformerUpdates(ctx context.Context) error

type PolicyReconciler

type PolicyReconciler struct {
	client.Client
	Scheme          *runtime.Scheme
	BeamlitClient   *beamlit.Client
	ManagedPolicies map[string]ManagedPolicyRef // key: policyName
}

PolicyReconciler reconciles a Policy object

func (*PolicyReconciler) Reconcile

func (r *PolicyReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Policy object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.17.3/pkg/reconcile

func (*PolicyReconciler) SetupWithManager

func (r *PolicyReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ToolDeploymentReconciler

type ToolDeploymentReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

ToolDeploymentReconciler reconciles a ToolDeployment object

func (*ToolDeploymentReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the ToolDeployment object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.17.3/pkg/reconcile

func (*ToolDeploymentReconciler) SetupWithManager

func (r *ToolDeploymentReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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