mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-25 14:06:46 +00:00
Add a cancelMainContext field to ExamplePlugin and options. This function allows the plugin to cancel an upper-level context when a background error occurs. The HandleError method now calls this function if it is set. This enables DRA drivers to perform a graceful shutdown when a fatal background error triggers context cancellation.