mirror of
https://github.com/kubevirt/containerized-data-importer.git
synced 2025-06-03 06:30:22 +00:00
![]() * Modify upload-controller to keep the annotations of a PVC if a pod fails in another controller When a pod fails, some annotations (running condition, pod phase...) are updated in the affected PVC to let other controllers know. However, due to a lack of synchronization between some controllers, a race condition could happen where, if a pod succeeds just after a pod fails in a different controller, the annotations set in the error handling would just be updated inapropiately. This commit modifies the upload-controller to check for clone failures before updating annotations. Signed-off-by: Alvaro Romero <alromero@redhat.com> * Add unit tests to updateUploadAnnotations Signed-off-by: Alvaro Romero <alromero@redhat.com> * Update functional tests in cloner_test to check for conditions and annotations after a pod fails Signed-off-by: Alvaro Romero <alromero@redhat.com> * Improve error handling in source-clone pod to avoid overwritting the DV running condition Signed-off-by: Alvaro Romero <alromero@redhat.com> |
||
---|---|---|
.. | ||
transfer | ||
BUILD.bazel | ||
clone-controller_test.go | ||
clone-controller.go | ||
config-controller_test.go | ||
config-controller.go | ||
controller_suite_test.go | ||
dataimportcron-conditions.go | ||
dataimportcron-controller_test.go | ||
dataimportcron-controller.go | ||
datasource-controller_test.go | ||
datasource-controller.go | ||
datavolume-conditions_test.go | ||
datavolume-conditions.go | ||
datavolume-controller_test.go | ||
datavolume-controller.go | ||
import-controller_test.go | ||
import-controller.go | ||
runtime-util.go | ||
smart-clone-controller_test.go | ||
smart-clone-controller.go | ||
storageprofile-controller_test.go | ||
storageprofile-controller.go | ||
upload-controller_test.go | ||
upload-controller.go | ||
util_test.go | ||
util.go |