-
Story
-
Resolution: Done
-
Normal
-
None
-
None
-
5
-
False
-
-
False
-
None
-
CNV-38613 - 2024 Code Quality
-
---
-
---
-
-
Storage Core Sprint 255, Storage Core Sprint 256
-
No
In webhooks we want to prevent failing requests when they are raceful.
Currently when creating the datavolume we check in the webhook the function: validateSourceRef
There we
- fail the datavolume creation if the datasourceref doesnt exist yet, which is racy.
- After we checked it exists we start validating it, since the source of the datasourceref can be changed we shouldn't fail the datavolume creation.
Instead we should present an error message in the datavolume status and allow the user to update the source in the datasourceref.