Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
csi: use job status not alloc status for plugin updates from summary
When an allocation is updated, the job summary for the associated job is also updated. CSI uses the job summary to set the expected count for controller and node plugins. We incorrectly used the allocation's server status instead of the job status when deciding whether to update or remove the job from the plugins. This caused a node drain or other terminal state for an allocation to clear the expected count for the entire plugin. Use the job status to guide whether to update or remove the expected count.
- Loading branch information