DRA api: ResourceHandle.DriverName is required
It was already required via validation, but not declared as such by the OpenAPI.
This commit is contained in:
		
							
								
								
									
										3
									
								
								api/openapi-spec/swagger.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								api/openapi-spec/swagger.json
									
									
									
										generated
									
									
									
								
							| @@ -15792,6 +15792,9 @@ | |||||||
|           "description": "If StructuredData is set, then it needs to be used instead of Data." |           "description": "If StructuredData is set, then it needs to be used instead of Data." | ||||||
|         } |         } | ||||||
|       }, |       }, | ||||||
|  |       "required": [ | ||||||
|  |         "driverName" | ||||||
|  |       ], | ||||||
|       "type": "object" |       "type": "object" | ||||||
|     }, |     }, | ||||||
|     "io.k8s.api.resource.v1alpha2.ResourceRequest": { |     "io.k8s.api.resource.v1alpha2.ResourceRequest": { | ||||||
|   | |||||||
| @@ -1205,6 +1205,7 @@ | |||||||
|             "type": "string" |             "type": "string" | ||||||
|           }, |           }, | ||||||
|           "driverName": { |           "driverName": { | ||||||
|  |             "default": "", | ||||||
|             "description": "DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.", |             "description": "DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.", | ||||||
|             "type": "string" |             "type": "string" | ||||||
|           }, |           }, | ||||||
| @@ -1217,6 +1218,9 @@ | |||||||
|             "description": "If StructuredData is set, then it needs to be used instead of Data." |             "description": "If StructuredData is set, then it needs to be used instead of Data." | ||||||
|           } |           } | ||||||
|         }, |         }, | ||||||
|  |         "required": [ | ||||||
|  |           "driverName" | ||||||
|  |         ], | ||||||
|         "type": "object" |         "type": "object" | ||||||
|       }, |       }, | ||||||
|       "io.k8s.api.resource.v1alpha2.ResourceRequest": { |       "io.k8s.api.resource.v1alpha2.ResourceRequest": { | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								pkg/generated/openapi/zz_generated.openapi.go
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								pkg/generated/openapi/zz_generated.openapi.go
									
									
									
										generated
									
									
									
								
							| @@ -46488,6 +46488,7 @@ func schema_k8sio_api_resource_v1alpha2_ResourceHandle(ref common.ReferenceCallb | |||||||
| 					"driverName": { | 					"driverName": { | ||||||
| 						SchemaProps: spec.SchemaProps{ | 						SchemaProps: spec.SchemaProps{ | ||||||
| 							Description: "DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.", | 							Description: "DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.", | ||||||
|  | 							Default:     "", | ||||||
| 							Type:        []string{"string"}, | 							Type:        []string{"string"}, | ||||||
| 							Format:      "", | 							Format:      "", | ||||||
| 						}, | 						}, | ||||||
| @@ -46506,6 +46507,7 @@ func schema_k8sio_api_resource_v1alpha2_ResourceHandle(ref common.ReferenceCallb | |||||||
| 						}, | 						}, | ||||||
| 					}, | 					}, | ||||||
| 				}, | 				}, | ||||||
|  | 				Required: []string{"driverName"}, | ||||||
| 			}, | 			}, | ||||||
| 		}, | 		}, | ||||||
| 		Dependencies: []string{ | 		Dependencies: []string{ | ||||||
|   | |||||||
| @@ -188,7 +188,7 @@ type ResourceHandle struct { | |||||||
| 	// plugin should be invoked to process this ResourceHandle's data once it | 	// plugin should be invoked to process this ResourceHandle's data once it | ||||||
| 	// lands on a node. This may differ from the DriverName set in | 	// lands on a node. This may differ from the DriverName set in | ||||||
| 	// ResourceClaimStatus this ResourceHandle is embedded in. | 	// ResourceClaimStatus this ResourceHandle is embedded in. | ||||||
| 	DriverName string `json:"driverName,omitempty" protobuf:"bytes,1,opt,name=driverName"` | 	DriverName string `json:"driverName" protobuf:"bytes,1,name=driverName"` | ||||||
|  |  | ||||||
| 	// Data contains the opaque data associated with this ResourceHandle. It is | 	// Data contains the opaque data associated with this ResourceHandle. It is | ||||||
| 	// set by the controller component of the resource driver whose name | 	// set by the controller component of the resource driver whose name | ||||||
|   | |||||||
| @@ -12413,6 +12413,7 @@ var schemaYAML = typed.YAMLObject(`types: | |||||||
|     - name: driverName |     - name: driverName | ||||||
|       type: |       type: | ||||||
|         scalar: string |         scalar: string | ||||||
|  |       default: "" | ||||||
|     - name: structuredData |     - name: structuredData | ||||||
|       type: |       type: | ||||||
|         namedType: io.k8s.api.resource.v1alpha2.StructuredResourceHandle |         namedType: io.k8s.api.resource.v1alpha2.StructuredResourceHandle | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Patrick Ohly
					Patrick Ohly