Skip to content

Commit 99706fb

Browse files
committed
Handle mount info
1 parent e41e2a5 commit 99706fb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/confcom/azext_confcom/command/containers_from_radius.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,16 @@ def containers_from_radius(
6363
"aci": ACI_MOUNTS,
6464
}.get(platform, None)
6565

66+
mounts += [
67+
{
68+
"destination": mount_info["mountPath"],
69+
"options": ["rbind", "rshared", "ro"],
70+
"source": mount_info["source"],
71+
"type": "bind"
72+
}
73+
for mount_info in container.get("volumes", {}).values()
74+
]
75+
6676
image_config = get_image_config(image)
6777
image_config["env_rules"] += [
6878
{

0 commit comments

Comments
 (0)