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
KubernetesSandboxClient.merge(callOptions) does not apply the per-call timeout fields from KubernetesSandboxClientOptions.
The method copies the client defaults and merges fields such as namespace, workspace root, connection settings, and shutdownAfterSeconds, but it never reads these fields from callOptions:
sandboxReadyTimeoutSeconds
requestTimeoutSeconds
perAttemptTimeoutSeconds
portForwardTimeoutSeconds
cleanupTimeoutSeconds
As a result, a caller that passes a KubernetesSandboxClientOptions to create(...) cannot override the timeout for that sandbox. The call silently uses the client default instead. cleanupTimeoutSeconds is currently not consumed by the Kubernetes client lifecycle at all.
The effective options remain the corresponding values from defaultOptions (or the built-in defaults), because merge never copies the call-level values. This is especially problematic for a one-off sandbox that needs a shorter deadline or a longer startup timeout without changing the shared client configuration.
Expected behavior
When a field is set in callOptions, it should override the client default for that create call, consistently with the other per-call options. The implementation should also either apply cleanupTimeoutSeconds during cleanup or remove/deprecate the unused option.
Relevant code
KubernetesSandboxClient.merge currently handles call-level options at lines 249-296, while the timeout fields are only copied from the client defaults in copy at lines 298-319.
Activity