aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/container-orchestrated-devices/container-device-interface/specs-go/config.go
diff options
context:
space:
mode:
authorEvan Lezar <elezar@nvidia.com>2022-02-23 08:02:44 +0200
committerEvan Lezar <elezar@nvidia.com>2022-02-23 08:02:47 +0200
commit46b7c5bc63dec21d1b2a68a36ad84298f9f176f2 (patch)
tree3c40d8bd13cd5bfc68cc25def52b6dff46daa1bd /vendor/github.com/container-orchestrated-devices/container-device-interface/specs-go/config.go
parentccb96a2791fe9ae58a697bf1715600ecec8b246b (diff)
downloadpodman-46b7c5bc63dec21d1b2a68a36ad84298f9f176f2.tar.gz
podman-46b7c5bc63dec21d1b2a68a36ad84298f9f176f2.tar.bz2
podman-46b7c5bc63dec21d1b2a68a36ad84298f9f176f2.zip
Bump CDI go dependency to v0.3.0
This updates the CDI dependency to the v0.3.0 tagged version instead of relying on a pseudo version. This also addresses the fact that cgroups are not set correctly for devices using the previous dependency. Signed-off-by: Evan Lezar <elezar@nvidia.com>
Diffstat (limited to 'vendor/github.com/container-orchestrated-devices/container-device-interface/specs-go/config.go')
-rw-r--r--vendor/github.com/container-orchestrated-devices/container-device-interface/specs-go/config.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/vendor/github.com/container-orchestrated-devices/container-device-interface/specs-go/config.go b/vendor/github.com/container-orchestrated-devices/container-device-interface/specs-go/config.go
index 20914e5b6..090e30e43 100644
--- a/vendor/github.com/container-orchestrated-devices/container-device-interface/specs-go/config.go
+++ b/vendor/github.com/container-orchestrated-devices/container-device-interface/specs-go/config.go
@@ -2,11 +2,13 @@ package specs
import "os"
+// CurrentVersion is the current version of the Spec.
+const CurrentVersion = "0.3.0"
+
// Spec is the base configuration for CDI
type Spec struct {
- Version string `json:"cdiVersion"`
- Kind string `json:"kind"`
- ContainerRuntime []string `json:"containerRuntime,omitempty"`
+ Version string `json:"cdiVersion"`
+ Kind string `json:"kind"`
Devices []Device `json:"devices"`
ContainerEdits ContainerEdits `json:"containerEdits,omitempty"`