diff options
author | Sebastian Jug <seb@stianj.ug> | 2021-03-29 20:21:00 -0400 |
---|---|---|
committer | Sebastian Jug <seb@stianj.ug> | 2021-04-20 09:18:52 -0400 |
commit | db7cff8c86a35a4b1971c3fbb2365eff9cc205d4 (patch) | |
tree | 3dc20b52f6a8b2de4acf8cb99ebff81776680959 /test/e2e/cdi | |
parent | cf2c3a1f13710014892804aacf855cd6b001a5ea (diff) | |
download | podman-db7cff8c86a35a4b1971c3fbb2365eff9cc205d4.tar.gz podman-db7cff8c86a35a4b1971c3fbb2365eff9cc205d4.tar.bz2 podman-db7cff8c86a35a4b1971c3fbb2365eff9cc205d4.zip |
Add support for CDI device configuration
- Persist CDIDevices in container config
- Add e2e test
- Log HasDevice error and add additional condition for safety
Signed-off-by: Sebastian Jug <seb@stianj.ug>
Diffstat (limited to 'test/e2e/cdi')
-rw-r--r-- | test/e2e/cdi/device.json | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/e2e/cdi/device.json b/test/e2e/cdi/device.json new file mode 100644 index 000000000..f49470c88 --- /dev/null +++ b/test/e2e/cdi/device.json @@ -0,0 +1,14 @@ +{ + "cdiVersion": "0.2.0", + "kind": "vendor.com/device", + "devices": [ + { + "name": "myKmsg", + "containerEdits": { + "mounts": [ + {"hostPath": "/dev/kmsg", "containerPath": "/dev/kmsg1", "options": ["rw", "rprivate", "rbind"]} + ] + } + } + ] +} |