forked from kubernetes/autoscaler
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix job finalization logic in generic reconciler (kubernetes#1177)
* Fix job finalization logic in generic reconciler * In the case of a finished job, it should be finalized before updating the Workload status, because if any errors are occurring during finalization, it will never be reached by reconciler again if workload has a 'Finished' condition. * Add test case for pod integration, change old test * Add a test case validating that 'Finished' workload status condition is added even if the pod is finalized. Which could happen due to client error while updating wl conditions. * Simplify 'TestReconciler_ErrorFinalizingPod'. * Fix pod_controller_test.go for go race detector * Replace Pod mock with the client interceptor func
- Loading branch information
1 parent
e162f85
commit 2dd73b7
Showing
2 changed files
with
162 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters