Browse code

swagger: add DeviceRequests to container create, inspect example

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit d4d62b658d9a720aa43274d9d33bc3ab0b22787d)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2020/07/03 22:17:17
Showing 1 changed files
... ...
@@ -5221,6 +5221,14 @@ paths:
5221 5221
                   - {}
5222 5222
                 BlkioDeviceWriteIOps:
5223 5223
                   - {}
5224
+                DeviceRequests:
5225
+                  - Driver: "nvidia"
5226
+                    Count: -1
5227
+                    DeviceIDs": ["0", "1", "GPU-fef8089b-4820-abfc-e83e-94318197576e"]
5228
+                    Capabilities: [["gpu", "nvidia", "compute"]]
5229
+                    Options:
5230
+                      property1: "string"
5231
+                      property2: "string"
5224 5232
                 MemorySwappiness: 60
5225 5233
                 OomKillDisable: false
5226 5234
                 OomScoreAdj: 500
... ...
@@ -5474,6 +5482,14 @@ paths:
5474 5474
                 CpuRealtimePeriod: 1000000
5475 5475
                 CpuRealtimeRuntime: 10000
5476 5476
                 Devices: []
5477
+                DeviceRequests:
5478
+                  - Driver: "nvidia"
5479
+                    Count: -1
5480
+                    DeviceIDs": ["0", "1", "GPU-fef8089b-4820-abfc-e83e-94318197576e"]
5481
+                    Capabilities: [["gpu", "nvidia", "compute"]]
5482
+                    Options:
5483
+                      property1: "string"
5484
+                      property2: "string"
5477 5485
                 IpcMode: ""
5478 5486
                 LxcConf: []
5479 5487
                 Memory: 0