Skip to content

Commit 6abc5e0

Browse files
committed
deprecate MinimumRequiredVersion
Signed-off-by: Ed Bartosh <[email protected]>
1 parent ab28e02 commit 6abc5e0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/cdi/spec.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,12 @@ func (s *Spec) edits() *ContainerEdits {
201201
return &ContainerEdits{&s.ContainerEdits}
202202
}
203203

204+
// MinimumRequiredVersion determines the minimum spec version for the input spec.
205+
// Deprecated: use cdi.MinimumRequiredVersion instead
206+
func MinimumRequiredVersion(spec *cdi.Spec) (string, error) {
207+
return cdi.MinimumRequiredVersion(spec)
208+
}
209+
204210
// Validate the Spec.
205211
func (s *Spec) validate() (map[string]*Device, error) {
206212
if err := cdi.ValidateVersion(s.Version); err != nil {

0 commit comments

Comments
 (0)