Documentation
¶
Index ¶
- type ManagedModel
- type ManagedPolicyRef
- type ModelDeploymentReconciler
- func (r *ModelDeploymentReconciler) PolicyUpdate(ctx context.Context) error
- func (r *ModelDeploymentReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *ModelDeploymentReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *ModelDeploymentReconciler) WatchForInformerUpdates(ctx context.Context) error
- type PolicyReconciler
- type ToolDeploymentReconciler
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 ¶
func (r *ModelDeploymentReconciler) 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 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 ¶
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 ¶
ToolDeploymentReconciler reconciles a ToolDeployment object
func (*ToolDeploymentReconciler) Reconcile ¶
func (r *ToolDeploymentReconciler) 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 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.