api: fix ValidatingAdmissionPolicyList json tag
This change make api-server not omity the field `item` of ValidatingAdmissionPolicyList when ValidatingAdmissionPolicy is empty. So kubetl will print ValidatingAdmissionPolicyList correctly when ValidatingAdmissionPolicy is empty. Signed-off-by: xyz-li <hui0787411@163.com>
This commit is contained in:
		
							
								
								
									
										18
									
								
								api/openapi-spec/swagger.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										18
									
								
								api/openapi-spec/swagger.json
									
									
									
										generated
									
									
									
								
							| @@ -497,6 +497,9 @@ | ||||
|           "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" | ||||
|         } | ||||
|       }, | ||||
|       "required": [ | ||||
|         "items" | ||||
|       ], | ||||
|       "type": "object", | ||||
|       "x-kubernetes-group-version-kind": [ | ||||
|         { | ||||
| @@ -555,6 +558,9 @@ | ||||
|           "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" | ||||
|         } | ||||
|       }, | ||||
|       "required": [ | ||||
|         "items" | ||||
|       ], | ||||
|       "type": "object", | ||||
|       "x-kubernetes-group-version-kind": [ | ||||
|         { | ||||
| @@ -1136,6 +1142,9 @@ | ||||
|           "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" | ||||
|         } | ||||
|       }, | ||||
|       "required": [ | ||||
|         "items" | ||||
|       ], | ||||
|       "type": "object", | ||||
|       "x-kubernetes-group-version-kind": [ | ||||
|         { | ||||
| @@ -1194,6 +1203,9 @@ | ||||
|           "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" | ||||
|         } | ||||
|       }, | ||||
|       "required": [ | ||||
|         "items" | ||||
|       ], | ||||
|       "type": "object", | ||||
|       "x-kubernetes-group-version-kind": [ | ||||
|         { | ||||
| @@ -1609,6 +1621,9 @@ | ||||
|           "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" | ||||
|         } | ||||
|       }, | ||||
|       "required": [ | ||||
|         "items" | ||||
|       ], | ||||
|       "type": "object", | ||||
|       "x-kubernetes-group-version-kind": [ | ||||
|         { | ||||
| @@ -1667,6 +1682,9 @@ | ||||
|           "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" | ||||
|         } | ||||
|       }, | ||||
|       "required": [ | ||||
|         "items" | ||||
|       ], | ||||
|       "type": "object", | ||||
|       "x-kubernetes-group-version-kind": [ | ||||
|         { | ||||
|   | ||||
| @@ -622,6 +622,9 @@ | ||||
|             "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" | ||||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "items" | ||||
|         ], | ||||
|         "type": "object", | ||||
|         "x-kubernetes-group-version-kind": [ | ||||
|           { | ||||
| @@ -699,6 +702,9 @@ | ||||
|             "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" | ||||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "items" | ||||
|         ], | ||||
|         "type": "object", | ||||
|         "x-kubernetes-group-version-kind": [ | ||||
|           { | ||||
|   | ||||
| @@ -350,6 +350,9 @@ | ||||
|             "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" | ||||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "items" | ||||
|         ], | ||||
|         "type": "object", | ||||
|         "x-kubernetes-group-version-kind": [ | ||||
|           { | ||||
| @@ -427,6 +430,9 @@ | ||||
|             "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" | ||||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "items" | ||||
|         ], | ||||
|         "type": "object", | ||||
|         "x-kubernetes-group-version-kind": [ | ||||
|           { | ||||
|   | ||||
| @@ -351,6 +351,9 @@ | ||||
|             "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" | ||||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "items" | ||||
|         ], | ||||
|         "type": "object", | ||||
|         "x-kubernetes-group-version-kind": [ | ||||
|           { | ||||
| @@ -428,6 +431,9 @@ | ||||
|             "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" | ||||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "items" | ||||
|         ], | ||||
|         "type": "object", | ||||
|         "x-kubernetes-group-version-kind": [ | ||||
|           { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 xyz-li
					xyz-li