Open guilhem opened 3 days ago
Attention: Patch coverage is 0%
with 20 lines
in your changes missing coverage. Please review.
Project coverage is 74.51%. Comparing base (
4ecf4c4
) to head (b20ea31
).
Files with missing lines | Patch % | Lines |
---|---|---|
internal/driver/nodeserver_all.go | 0.00% | 20 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
🚨 Try these New Features:
This pull request includes changes to the
nodeGetVolumeStats
function in theinternal/driver/nodeserver_all.go
file to improve error handling and volume condition reporting. The most important changes include refactoring the error handling logic and introducing avolumeCondition
variable to manage the state of the volume.Improvements to error handling and volume condition reporting:
internal/driver/nodeserver_all.go
: Introduced avolumeCondition
variable to manage the state of the volume, replacing the previousabnormal
boolean flag. This change improves the clarity and maintainability of the code.internal/driver/nodeserver_all.go
: Refactored the error handling logic to use a switch statement for better readability and to handle specific errors (EIO
andENOENT
) more explicitly.internal/driver/nodeserver_all.go
: Updated the response construction to use the newvolumeCondition
variable, ensuring that the volume condition is accurately reported based on the error encountered.General:
Pull Request Guidelines: