File tree Expand file tree Collapse file tree 7 files changed +11
-11
lines changed
Expand file tree Collapse file tree 7 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ it accordingly for future releases.
2222 - [ ] (* for specification changes only* ) the ` tags.cncf.io/container-device-interface/specs-go ` version in ` schema/go.mod ` .
2323 - [ ] Run ` make mod-tidy ` to update versions in ` cmd/**/go.mod ` .
2424 - [ ] Run ` make mod-verify ` to ensure modules are up to date.
25- - [ ] (* for specification changes only* ) Add a description to the specification changes in ` SPEC.md ` .
25+ - [ ] (* for specification changes only* ) Add a description to the specification changes and update the version in ` SPEC.md ` .
2626 - [ ] (* for specification changes only* ) Implement a ` requiresV* ` function for the target version in ` specs-go/versions.go ` .
2727- [ ] Merge the PR on sufficient approval.
2828- [ ] Create a ` vX.Y.Z ` tag.
Original file line number Diff line number Diff line change 88
99## Version
1010
11- This is CDI ** spec** version ** 1.0 .0** .
11+ This is CDI ** spec** version ** 1.1 .0** .
1212
1313### Update policy
1414
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ require (
99 github.com/spf13/cobra v1.6.0
1010 gopkg.in/yaml.v3 v3.0.1
1111 sigs.k8s.io/yaml v1.4.0
12- tags.cncf.io/container-device-interface v1.0.1
12+ tags.cncf.io/container-device-interface v1.1.0
1313 tags.cncf.io/container-device-interface/schema v0.0.0
14- tags.cncf.io/container-device-interface/specs-go v1.0 .0
14+ tags.cncf.io/container-device-interface/specs-go v1.1 .0
1515)
1616
1717require (
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ require (
1010 github.com/xeipuuv/gojsonschema v1.2.0 // indirect
1111 golang.org/x/mod v0.19.0 // indirect
1212 sigs.k8s.io/yaml v1.4.0 // indirect
13- tags.cncf.io/container-device-interface v1.0.1 // indirect
14- tags.cncf.io/container-device-interface/specs-go v1.0 .0 // indirect
13+ tags.cncf.io/container-device-interface v1.1.0 // indirect
14+ tags.cncf.io/container-device-interface/specs-go v1.1 .0 // indirect
1515)
1616
1717replace (
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ require (
1010 golang.org/x/sys v0.19.0
1111 gopkg.in/yaml.v3 v3.0.1
1212 sigs.k8s.io/yaml v1.4.0
13- tags.cncf.io/container-device-interface/specs-go v1.0 .0
13+ tags.cncf.io/container-device-interface/specs-go v1.1 .0
1414)
1515
1616require (
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ require (
66 github.com/stretchr/testify v1.7.0
77 github.com/xeipuuv/gojsonschema v1.2.0
88 sigs.k8s.io/yaml v1.4.0
9- tags.cncf.io/container-device-interface v1.0.1
10- tags.cncf.io/container-device-interface/specs-go v1.0 .0
9+ tags.cncf.io/container-device-interface v1.1.0
10+ tags.cncf.io/container-device-interface/specs-go v1.1 .0
1111)
1212
1313require (
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ func requiresV110(spec *Spec) bool {
150150 }
151151 }
152152
153- if len (spec .ContainerEdits .NetDevices ) != 0 {
153+ if len (spec .ContainerEdits .NetDevices ) > 0 {
154154 return true
155155 }
156156
@@ -161,7 +161,7 @@ func requiresV110(spec *Spec) bool {
161161 }
162162 }
163163
164- if len (dev .ContainerEdits .NetDevices ) != 0 {
164+ if len (dev .ContainerEdits .NetDevices ) > 0 {
165165 return true
166166 }
167167 }
You can’t perform that action at this time.
0 commit comments