From ffaa7c19a4702db0cece852dce759fff06f44899 Mon Sep 17 00:00:00 2001 From: zhangnew Date: Mon, 20 Nov 2023 19:25:42 +0800 Subject: [PATCH] Update dockerspawner.py support mount `type` --- dockerspawner/dockerspawner.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dockerspawner/dockerspawner.py b/dockerspawner/dockerspawner.py index 541c300..26ed7e6 100644 --- a/dockerspawner/dockerspawner.py +++ b/dockerspawner/dockerspawner.py @@ -891,6 +891,8 @@ def _fmt(v): args = dict(mount) args["source"] = _fmt(mount["source"]) args["target"] = _fmt(mount["target"]) + args["type"] = mount.get("type", "volume") + args["read_only"] = mount.get("read_only", False) mounts.append(Mount(**args)) return mounts