make character case for keys in parameters map irrelevant, fixing #143

More specifically,
- introduce helper function to get maps with all keys set to lowercase,
- introduce lookup helper based on such maps and
- change lookups for CreateVolumeRequest()s and CreateVolume()s so that
  parameter keys are processed as lowercase irrespective of actual
  spelling.

Signed-off-by: Christopher J. Ruwe <cjr@cruwe.de>
This commit is contained in:
Christopher J. Ruwe 2020-06-01 14:21:24 +02:00 committed by Pawan Prakash Sharma
parent 1e23607d8a
commit 377b881653
3 changed files with 70 additions and 13 deletions

View file

@ -0,0 +1 @@
Fixes an issue where volumes meant to be filesystem datasets got created as zvols and generally makes storageclass parameter spelling insensitive to case