You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pod-sandbox-lifecycle.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,7 +134,7 @@ Plugins subscribe to these events during the Configure phase by returning the ap
134
134
-`Event_STOP_POD_SANDBOX` (1 << 1) for StopPodSandbox
135
135
-`Event_REMOVE_POD_SANDBOX` (1 << 2) for RemovePodSandbox
136
136
137
-
These events are notified via the StateChange RPC call.
137
+
These events are delivered to plugins using the RunPodSandbox, StopPodSandbox and RemovePodSandbox event handlers.
138
138
139
139
### Timeout Handling
140
140
@@ -146,11 +146,12 @@ All plugin processing must complete within the configured request timeout. Plugi
146
146
147
147
### Error Handling
148
148
149
-
Plugins should handle errors gracefully and avoid leaving the pod or system in an inconsistent state. Error recovery strategies:
149
+
On the teardown path, plugin errors MUST NOT prevent the operation from proceeding. Runtimes MUST ensure that a failing plugin cannot block pod or container teardown:
150
+
151
+
-**RunPodSandbox errors**: A plugin error may prevent the pod from being created, depending on runtime policy. Plugins bear responsibility for errors they return at this phase.
152
+
-**StopPodSandbox errors**: A plugin error MUST NOT prevent the sandbox from being stopped. The runtime MUST proceed with teardown regardless of plugin failures.
153
+
-**RemovePodSandbox errors**: A plugin error MUST NOT prevent the sandbox from being removed. The runtime MUST proceed with removal regardless of plugin failures.
150
154
151
-
-**RunPodSandbox errors**: Problematic; may block pod creation depending on failure severity and runtime policy
152
-
-**StopPodSandbox errors**: May not prevent scenario termination depending on runtime policy
153
-
-**RemovePodSandbox errors**: Should not prevent sandbox removal
0 commit comments