File tree Expand file tree Collapse file tree 5 files changed +14
-4
lines changed Expand file tree Collapse file tree 5 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ Released versions of the spec are available as Git tags.
2929|  v0.6.0 |    |  Add ` Annotations `  field to ` Spec `  and ` Device `  specifications | 
3030|         |    |  Allow dots (` . ` )  in name segment of ` Kind `  field. | 
3131|  v0.7.0 |    |  Add ` IntelRdt ` field. | 
32- |  v0.7.0 |    |  Add ` AdditionalGIDs `  to ` ContainerEdits `  | 
32+ |         |    |  Add ` AdditionalGIDs `  to ` ContainerEdits `  | 
33+ |  v0.8.0 |    |  Remove .ToOCI() functions from specs-go package. | 
3334
3435* Note* : The initial release of a ** spec**  with version ` v0.x.0 `  will be tagged as
3536` v0.x.0 `  with subsequent changes to the API applicable to this version tagged as ` v0.x.y ` .
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ require (
2222	golang.org/x/mod  v0.4.2  //  indirect
2323	golang.org/x/sys  v0.1.0  //  indirect
2424	gopkg.in/yaml.v2  v2.4.0  //  indirect
25- 	tags.cncf.io/container-device-interface/specs-go  v0.7 .0  //  indirect
25+ 	tags.cncf.io/container-device-interface/specs-go  v0.8 .0  //  indirect
2626)
2727
2828replace  tags.cncf.io/container-device-interface  => ../.. 
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ require (
1111	golang.org/x/mod  v0.4.2 
1212	golang.org/x/sys  v0.1.0 
1313	sigs.k8s.io/yaml  v1.3.0 
14- 	tags.cncf.io/container-device-interface/specs-go  v0.7 .0 
14+ 	tags.cncf.io/container-device-interface/specs-go  v0.8 .0 
1515)
1616
1717require  (
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ const (
4040	v050  version  =  "v0.5.0" 
4141	v060  version  =  "v0.6.0" 
4242	v070  version  =  "v0.7.0" 
43+ 	v080  version  =  "v0.8.0" 
4344
4445	// vEarliest is the earliest supported version of the CDI specification 
4546	vEarliest  version  =  v030 
@@ -56,6 +57,7 @@ var validSpecVersions = requiredVersionMap{
5657	v050 : requiresV050 ,
5758	v060 : requiresV060 ,
5859	v070 : requiresV070 ,
60+ 	v080 : requiresV080 ,
5961}
6062
6163// MinimumRequiredVersion determines the minimum spec version for the input spec. 
@@ -120,6 +122,13 @@ func (r requiredVersionMap) requiredVersion(spec *cdi.Spec) version {
120122	return  minVersion 
121123}
122124
125+ // requiresV080 returns true if the spec uses v0.8.0 features. 
126+ // Since the v0.8.0 spec bump was due to the removed .ToOCI functions on the 
127+ // spec types, there are explicit spec changes. 
128+ func  requiresV080 (_  * cdi.Spec ) bool  {
129+ 	return  false 
130+ }
131+ 
123132// requiresV070 returns true if the spec uses v0.7.0 features 
124133func  requiresV070 (spec  * cdi.Spec ) bool  {
125134	if  spec .ContainerEdits .IntelRdt  !=  nil  {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package specs
33import  "os" 
44
55// CurrentVersion is the current version of the Spec. 
6- const  CurrentVersion  =  "0.7 .0" 
6+ const  CurrentVersion  =  "0.8 .0" 
77
88// Spec is the base configuration for CDI 
99type  Spec  struct  {
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments