Bump tags.cncf.io/container-device-interface/specs-go

Bumps [tags.cncf.io/container-device-interface/specs-go](https://github.com/cncf-tags/container-device-interface) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/cncf-tags/container-device-interface/releases)
- [Commits](https://github.com/cncf-tags/container-device-interface/compare/v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: tags.cncf.io/container-device-interface/specs-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
dependabot[bot] 2024-07-09 11:48:09 +00:00 committed by GitHub
parent 46838b1a44
commit c7167d5054
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 47 additions and 40 deletions

2
go.mod
View File

@ -14,7 +14,7 @@ require (
golang.org/x/mod v0.18.0 golang.org/x/mod v0.18.0
golang.org/x/sys v0.21.0 golang.org/x/sys v0.21.0
tags.cncf.io/container-device-interface v0.7.2 tags.cncf.io/container-device-interface v0.7.2
tags.cncf.io/container-device-interface/specs-go v0.7.0 tags.cncf.io/container-device-interface/specs-go v0.8.0
) )
require ( require (

4
go.sum
View File

@ -88,5 +88,5 @@ sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo=
sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8= sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8=
tags.cncf.io/container-device-interface v0.7.2 h1:MLqGnWfOr1wB7m08ieI4YJ3IoLKKozEnnNYBtacDPQU= tags.cncf.io/container-device-interface v0.7.2 h1:MLqGnWfOr1wB7m08ieI4YJ3IoLKKozEnnNYBtacDPQU=
tags.cncf.io/container-device-interface v0.7.2/go.mod h1:Xb1PvXv2BhfNb3tla4r9JL129ck1Lxv9KuU6eVOfKto= tags.cncf.io/container-device-interface v0.7.2/go.mod h1:Xb1PvXv2BhfNb3tla4r9JL129ck1Lxv9KuU6eVOfKto=
tags.cncf.io/container-device-interface/specs-go v0.7.0 h1:w/maMGVeLP6TIQJVYT5pbqTi8SCw/iHZ+n4ignuGHqg= tags.cncf.io/container-device-interface/specs-go v0.8.0 h1:QYGFzGxvYK/ZLMrjhvY0RjpUavIn4KcmRmVP/JjdBTA=
tags.cncf.io/container-device-interface/specs-go v0.7.0/go.mod h1:hMAwAbMZyBLdmYqWgYcKH0F/yctNpV3P35f+/088A80= tags.cncf.io/container-device-interface/specs-go v0.8.0/go.mod h1:BhJIkjjPh4qpys+qm4DAYtUyryaTDg9zris+AczXyws=

2
vendor/modules.txt vendored
View File

@ -89,6 +89,6 @@ tags.cncf.io/container-device-interface/internal/validation
tags.cncf.io/container-device-interface/internal/validation/k8s tags.cncf.io/container-device-interface/internal/validation/k8s
tags.cncf.io/container-device-interface/pkg/cdi tags.cncf.io/container-device-interface/pkg/cdi
tags.cncf.io/container-device-interface/pkg/parser tags.cncf.io/container-device-interface/pkg/parser
# tags.cncf.io/container-device-interface/specs-go v0.7.0 # tags.cncf.io/container-device-interface/specs-go v0.8.0
## explicit; go 1.19 ## explicit; go 1.19
tags.cncf.io/container-device-interface/specs-go tags.cncf.io/container-device-interface/specs-go

View File

@ -3,7 +3,7 @@ package specs
import "os" import "os"
// CurrentVersion is the current version of the Spec. // CurrentVersion is the current version of the Spec.
const CurrentVersion = "0.7.0" const CurrentVersion = "0.8.0"
// Spec is the base configuration for CDI // Spec is the base configuration for CDI
type Spec struct { type Spec struct {

View File

@ -1,49 +1,56 @@
/*
Copyright © 2021 The CDI Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package specs package specs
import ( import "errors"
spec "github.com/opencontainers/runtime-spec/specs-go"
) // errDeprecated is returned for the ToOCI functions below.
// This should provide better guidance for user when migrating from the API
// below to the APIs provided in the cdi package.
var errDeprecated = errors.New("deprecated; Use cdi package functions instead")
// ToOCI returns the opencontainers runtime Spec Hook for this Hook. // ToOCI returns the opencontainers runtime Spec Hook for this Hook.
func (h *Hook) ToOCI() spec.Hook { //
return spec.Hook{ // Deprecated: This function has been moved to tags.cncf.io/container-device-interface/pkg/cdi.Hook.toOCI
Path: h.Path, // and made private.
Args: h.Args, func (h *Hook) ToOCI() error {
Env: h.Env, return errDeprecated
Timeout: h.Timeout,
}
} }
// ToOCI returns the opencontainers runtime Spec Mount for this Mount. // ToOCI returns the opencontainers runtime Spec Mount for this Mount.
func (m *Mount) ToOCI() spec.Mount { //
return spec.Mount{ // Deprecated: This function has been moved to tags.cncf.io/container-device-interface/pkg/cdi.Mount.toOCI
Source: m.HostPath, // and made private.
Destination: m.ContainerPath, func (m *Mount) ToOCI() error {
Options: m.Options, return errDeprecated
Type: m.Type,
}
} }
// ToOCI returns the opencontainers runtime Spec LinuxDevice for this DeviceNode. // ToOCI returns the opencontainers runtime Spec LinuxDevice for this DeviceNode.
func (d *DeviceNode) ToOCI() spec.LinuxDevice { //
return spec.LinuxDevice{ // Deprecated: This function has been moved to tags.cncf.io/container-device-interface/pkg/cdi.DeviceNode.toOCI
Path: d.Path, // and made private.
Type: d.Type, func (d *DeviceNode) ToOCI() error {
Major: d.Major, return errDeprecated
Minor: d.Minor,
FileMode: d.FileMode,
UID: d.UID,
GID: d.GID,
}
} }
// ToOCI returns the opencontainers runtime Spec LinuxIntelRdt for this IntelRdt config. // ToOCI returns the opencontainers runtime Spec LinuxIntelRdt for this IntelRdt config.
func (i *IntelRdt) ToOCI() *spec.LinuxIntelRdt { //
return &spec.LinuxIntelRdt{ // Deprecated: This function has been moved to tags.cncf.io/container-device-interface/pkg/cdi.IntelRdt.toOCI
ClosID: i.ClosID, // and made private.
L3CacheSchema: i.L3CacheSchema, func (i *IntelRdt) ToOCI() error {
MemBwSchema: i.MemBwSchema, return errDeprecated
EnableCMT: i.EnableCMT,
EnableMBM: i.EnableMBM,
}
} }