What happened:
okactl --wait ignores Ctrl+C. --timeout still works, but SIGINT does not stop the poll.
What you expected to happen:
Ctrl+C should cancel the wait and exit, e.g. waiting for sandboxset "my-pool" update canceled: context canceled.
How to reproduce it (as minimally and precisely as possible):
okactl set image sbs my-pool app=nginx:1.25 --wait --timeout=0
# press Ctrl+C while polling
The process keeps waiting.
Anything else we need to know?:
create, scale, restart, and status have the same issue. Commands use context.TODO() and the CLI does not wire a signal-aware context.
Environment:
- OpenKruiseAgent version: v0.6.0-alpha1
- Kubernetes version (use
kubectl version): v1.35.1
- Install details (e.g. helm install args): minikube
- Others: n/a
What happened:
okactl --waitignores Ctrl+C.--timeoutstill works, but SIGINT does not stop the poll.What you expected to happen:
Ctrl+C should cancel the wait and exit, e.g.
waiting for sandboxset "my-pool" update canceled: context canceled.How to reproduce it (as minimally and precisely as possible):
The process keeps waiting.
Anything else we need to know?:
create,scale,restart, andstatushave the same issue. Commands usecontext.TODO()and the CLI does not wire a signal-aware context.Environment:
kubectl version): v1.35.1