generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 167
Open
Labels
area/simulatorIssues or PRs related to the simulator.Issues or PRs related to the simulator.kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.sig/schedulingCategorizes an issue or PR as relevant to SIG Scheduling.Categorizes an issue or PR as relevant to SIG Scheduling.
Description
What happened
When syncing Pods from a real cluster (Cluster A) to a kwok-based simulator cluster (Cluster B), the status
of the Pods is not patched. This causes completed Pods (e.g., Succeeded
or Failed
) to remain in Running
state in the simulator.
What you expected to happen
The kwok-based simulator cluster should reflect the actual status.phase
of Pods from the source cluster, including terminal states like Succeeded
or Failed
.
How to reproduce it
- Create a Pod in Cluster A.
- Let it complete (
Succeeded
orFailed
). - Sync it to Cluster B using the kube-scheduler-simulator.
- Observe that in Cluster B, the Pod remains in
Running
state.
Anything else we need to know?
- The issue was discovered while using kwok as the target cluster for simulation.
- A fix for this has been proposed in PR Bugfix: sync pod /status correctly in kwok-based simulator cluster #434 .
- We may also need to handle status patching during updates (
UpdateFunc
) and not just creation.
/sig scheduling
/area simulator
/kind bug
Metadata
Metadata
Assignees
Labels
area/simulatorIssues or PRs related to the simulator.Issues or PRs related to the simulator.kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.sig/schedulingCategorizes an issue or PR as relevant to SIG Scheduling.Categorizes an issue or PR as relevant to SIG Scheduling.