Fix volume map format

This commit is contained in:
David Boreham 2023-06-27 16:41:16 -06:00
parent c89b42032d
commit 0bddd31b4c

View File

@ -70,8 +70,7 @@ def _fixup_pod_file(pod, spec):
for volume in pod_volumes.keys():
if volume in spec_volumes:
volume_spec = spec_volumes[volume]
print(f"mapping: {volume} -> {volume_spec}")
new_volume_spec = {"driver": "local",
new_volume_spec = {"name": volume,
"driver_opts": {
"type": "none",
"device": volume_spec,