-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add volume readiness check and corresponding tests for
CreateVolume
(…
…#317) * Add 'go mod tidy' to 'test' target * Add volume readiness check and corresponding tests for 'CreateVolume' This commit introduces a new function, 'waitForVolumeAvailability', to the 'CreateVolume' function of our CSI driver. This function ensures that a volume reaches the 'Available' state before the 'CreateVolume' request is completed. To validate this functionality, corresponding tests have been added. This enhancement improves reliability and provides clearer error messages for debugging. * Restructure go routines in CreateVolume call * refactor: refactor log message for applied volume state - Change the log message from "Volume applied and is now available" to "Applied volume" with additional information about the volume state. Signed-off-by: Andreas Fritzler <[email protected]> --------- Signed-off-by: Andreas Fritzler <[email protected]> Co-authored-by: Andreas Fritzler <[email protected]>
- Loading branch information
Showing
4 changed files
with
140 additions
and
17 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
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