aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/driver/controllerserver.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/driver/controllerserver.go b/pkg/driver/controllerserver.go
index 03d5920..3a2d9fc 100644
--- a/pkg/driver/controllerserver.go
+++ b/pkg/driver/controllerserver.go
@@ -211,6 +211,8 @@ func sanitizeVolumeId(volumeId string) string {
io.WriteString(h, volumeId)
// hexidecimal encoding of sha1 is 40 characters long
hexhash := hex.EncodeToString(h.Sum(nil))
+ // Use only lowercase letters
+ volumeId = strings.ToLower(volumeId)
sanitized := unsafeVolumeIdChars.ReplaceAllString(volumeId, "-")
// 21 here is 62 - 40 characters for the hash - 1 more for the "-" we use join
// the sanitized ID to the hash