Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModelArtifactReconciler ¶
type ModelArtifactReconciler struct {
client.Client
Scheme *runtime.Scheme
Version string
KitImage string
Recorder events.EventRecorder
}
ModelArtifactReconciler reconciles an Artifact object. It ensures that the underlying PVC and Job resources match the desired state defined in the Artifact CR.
The controller is intentionally kept thin: it orchestrates the reconciliation flow, while the actual resource construction and status derivation logic reside in internal/modelartifact/.
func (*ModelArtifactReconciler) Reconcile ¶
func (r *ModelArtifactReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is the main loop for the controller. It implements level-triggered reconciliation: Fetch -> Reconcile Resources -> Status Update.
Deletion is handled entirely by Kubernetes garbage collection: all child resources are created with OwnerReferences pointing to the Artifact, so they are automatically cascade-deleted when the Artifact is removed. No finalizer is needed.
func (*ModelArtifactReconciler) SetupWithManager ¶
func (r *ModelArtifactReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager registers the controller with the Manager and defines watches.
Watch configuration:
- Artifact: with GenerationChangedPredicate to skip status-only updates
- Owned Jobs: status changes automatically trigger re-reconciliation via OwnerReference mapping
type ModelServiceReconciler ¶ added in v0.8.3
type ModelServiceReconciler struct {
client.Client
Scheme *runtime.Scheme
Version string
Recorder events.EventRecorder
EPPConfig modelservice.EPPConfig
}
ModelServiceReconciler reconciles a ModelService object. It ensures that the underlying Deployments, EPP stack, InferencePool, HTTPRoute, and monitoring resources match the desired state.
The controller is intentionally kept thin: it orchestrates the reconciliation flow, while the actual resource construction and status derivation logic reside in internal/modelservice/.
func (*ModelServiceReconciler) Reconcile ¶ added in v0.8.3
func (r *ModelServiceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is the main loop for the ModelService controller. It implements level-triggered reconciliation: Fetch -> Finalizer -> Reconcile Resources -> Status Update.
Namespace-scoped child resources are cleaned up automatically via OwnerReferences. Cluster-scoped resources (ClusterRole/ClusterRoleBinding) are cleaned up via a Finalizer.
func (*ModelServiceReconciler) SetupWithManager ¶ added in v0.8.3
func (r *ModelServiceReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager registers the controller with the Manager and defines watches.
Watch configuration:
- ModelService: with GenerationChangedPredicate to skip status-only updates
- Owned resources: status/spec changes trigger re-reconciliation via OwnerReference mapping