mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-20 07:56:02 +00:00
A user of the controller can register an error handler via the controller options. For a kubelet plugin, the error handler is method in the interface which must be implemented. This is a conscious choice to make DRA driver developer aware that they should react intelligently to errors. The controller will invoke that handler with all errors that it encounters while syncing the desired set of slices. This includes validation errors from the apiserver if the driver's slices are invalid. Dropped fields get reported with a special DroppedFieldsError.