1
2
3
4
19
20
21
22 package openapi
23
24 import (
25 v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
26 common "k8s.io/kube-openapi/pkg/common"
27 spec "k8s.io/kube-openapi/pkg/validation/spec"
28 )
29
30 func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition {
31 return map[string]common.OpenAPIDefinition{
32 "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup": schema_pkg_apis_meta_v1_APIGroup(ref),
33 "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroupList": schema_pkg_apis_meta_v1_APIGroupList(ref),
34 "k8s.io/apimachinery/pkg/apis/meta/v1.APIResource": schema_pkg_apis_meta_v1_APIResource(ref),
35 "k8s.io/apimachinery/pkg/apis/meta/v1.APIResourceList": schema_pkg_apis_meta_v1_APIResourceList(ref),
36 "k8s.io/apimachinery/pkg/apis/meta/v1.APIVersions": schema_pkg_apis_meta_v1_APIVersions(ref),
37 "k8s.io/apimachinery/pkg/apis/meta/v1.ApplyOptions": schema_pkg_apis_meta_v1_ApplyOptions(ref),
38 "k8s.io/apimachinery/pkg/apis/meta/v1.Condition": schema_pkg_apis_meta_v1_Condition(ref),
39 "k8s.io/apimachinery/pkg/apis/meta/v1.CreateOptions": schema_pkg_apis_meta_v1_CreateOptions(ref),
40 "k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions": schema_pkg_apis_meta_v1_DeleteOptions(ref),
41 "k8s.io/apimachinery/pkg/apis/meta/v1.Duration": schema_pkg_apis_meta_v1_Duration(ref),
42 "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1": schema_pkg_apis_meta_v1_FieldsV1(ref),
43 "k8s.io/apimachinery/pkg/apis/meta/v1.GetOptions": schema_pkg_apis_meta_v1_GetOptions(ref),
44 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupKind": schema_pkg_apis_meta_v1_GroupKind(ref),
45 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupResource": schema_pkg_apis_meta_v1_GroupResource(ref),
46 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersion": schema_pkg_apis_meta_v1_GroupVersion(ref),
47 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery": schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref),
48 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionKind": schema_pkg_apis_meta_v1_GroupVersionKind(ref),
49 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionResource": schema_pkg_apis_meta_v1_GroupVersionResource(ref),
50 "k8s.io/apimachinery/pkg/apis/meta/v1.InternalEvent": schema_pkg_apis_meta_v1_InternalEvent(ref),
51 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector": schema_pkg_apis_meta_v1_LabelSelector(ref),
52 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement": schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref),
53 "k8s.io/apimachinery/pkg/apis/meta/v1.List": schema_pkg_apis_meta_v1_List(ref),
54 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta": schema_pkg_apis_meta_v1_ListMeta(ref),
55 "k8s.io/apimachinery/pkg/apis/meta/v1.ListOptions": schema_pkg_apis_meta_v1_ListOptions(ref),
56 "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry": schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref),
57 "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime": schema_pkg_apis_meta_v1_MicroTime(ref),
58 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta": schema_pkg_apis_meta_v1_ObjectMeta(ref),
59 "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference": schema_pkg_apis_meta_v1_OwnerReference(ref),
60 "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata": schema_pkg_apis_meta_v1_PartialObjectMetadata(ref),
61 "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadataList": schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref),
62 "k8s.io/apimachinery/pkg/apis/meta/v1.Patch": schema_pkg_apis_meta_v1_Patch(ref),
63 "k8s.io/apimachinery/pkg/apis/meta/v1.PatchOptions": schema_pkg_apis_meta_v1_PatchOptions(ref),
64 "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions": schema_pkg_apis_meta_v1_Preconditions(ref),
65 "k8s.io/apimachinery/pkg/apis/meta/v1.RootPaths": schema_pkg_apis_meta_v1_RootPaths(ref),
66 "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR": schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref),
67 "k8s.io/apimachinery/pkg/apis/meta/v1.Status": schema_pkg_apis_meta_v1_Status(ref),
68 "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause": schema_pkg_apis_meta_v1_StatusCause(ref),
69 "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails": schema_pkg_apis_meta_v1_StatusDetails(ref),
70 "k8s.io/apimachinery/pkg/apis/meta/v1.Table": schema_pkg_apis_meta_v1_Table(ref),
71 "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition": schema_pkg_apis_meta_v1_TableColumnDefinition(ref),
72 "k8s.io/apimachinery/pkg/apis/meta/v1.TableOptions": schema_pkg_apis_meta_v1_TableOptions(ref),
73 "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow": schema_pkg_apis_meta_v1_TableRow(ref),
74 "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition": schema_pkg_apis_meta_v1_TableRowCondition(ref),
75 "k8s.io/apimachinery/pkg/apis/meta/v1.Time": schema_pkg_apis_meta_v1_Time(ref),
76 "k8s.io/apimachinery/pkg/apis/meta/v1.Timestamp": schema_pkg_apis_meta_v1_Timestamp(ref),
77 "k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta": schema_pkg_apis_meta_v1_TypeMeta(ref),
78 "k8s.io/apimachinery/pkg/apis/meta/v1.UpdateOptions": schema_pkg_apis_meta_v1_UpdateOptions(ref),
79 "k8s.io/apimachinery/pkg/apis/meta/v1.WatchEvent": schema_pkg_apis_meta_v1_WatchEvent(ref),
80 "k8s.io/apimachinery/pkg/runtime.RawExtension": schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref),
81 "k8s.io/apimachinery/pkg/runtime.TypeMeta": schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref),
82 "k8s.io/apimachinery/pkg/runtime.Unknown": schema_k8sio_apimachinery_pkg_runtime_Unknown(ref),
83 "k8s.io/apimachinery/pkg/version.Info": schema_k8sio_apimachinery_pkg_version_Info(ref),
84 "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1.APIService": schema_pkg_apis_apiregistration_v1_APIService(ref),
85 "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1.APIServiceCondition": schema_pkg_apis_apiregistration_v1_APIServiceCondition(ref),
86 "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1.APIServiceList": schema_pkg_apis_apiregistration_v1_APIServiceList(ref),
87 "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1.APIServiceSpec": schema_pkg_apis_apiregistration_v1_APIServiceSpec(ref),
88 "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1.APIServiceStatus": schema_pkg_apis_apiregistration_v1_APIServiceStatus(ref),
89 "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1.ServiceReference": schema_pkg_apis_apiregistration_v1_ServiceReference(ref),
90 "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1beta1.APIService": schema_pkg_apis_apiregistration_v1beta1_APIService(ref),
91 "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1beta1.APIServiceCondition": schema_pkg_apis_apiregistration_v1beta1_APIServiceCondition(ref),
92 "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1beta1.APIServiceList": schema_pkg_apis_apiregistration_v1beta1_APIServiceList(ref),
93 "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1beta1.APIServiceSpec": schema_pkg_apis_apiregistration_v1beta1_APIServiceSpec(ref),
94 "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1beta1.APIServiceStatus": schema_pkg_apis_apiregistration_v1beta1_APIServiceStatus(ref),
95 "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1beta1.ServiceReference": schema_pkg_apis_apiregistration_v1beta1_ServiceReference(ref),
96 }
97 }
98
99 func schema_pkg_apis_meta_v1_APIGroup(ref common.ReferenceCallback) common.OpenAPIDefinition {
100 return common.OpenAPIDefinition{
101 Schema: spec.Schema{
102 SchemaProps: spec.SchemaProps{
103 Description: "APIGroup contains the name, the supported versions, and the preferred version of a group.",
104 Type: []string{"object"},
105 Properties: map[string]spec.Schema{
106 "kind": {
107 SchemaProps: spec.SchemaProps{
108 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
109 Type: []string{"string"},
110 Format: "",
111 },
112 },
113 "apiVersion": {
114 SchemaProps: spec.SchemaProps{
115 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
116 Type: []string{"string"},
117 Format: "",
118 },
119 },
120 "name": {
121 SchemaProps: spec.SchemaProps{
122 Description: "name is the name of the group.",
123 Default: "",
124 Type: []string{"string"},
125 Format: "",
126 },
127 },
128 "versions": {
129 VendorExtensible: spec.VendorExtensible{
130 Extensions: spec.Extensions{
131 "x-kubernetes-list-type": "atomic",
132 },
133 },
134 SchemaProps: spec.SchemaProps{
135 Description: "versions are the versions supported in this group.",
136 Type: []string{"array"},
137 Items: &spec.SchemaOrArray{
138 Schema: &spec.Schema{
139 SchemaProps: spec.SchemaProps{
140 Default: map[string]interface{}{},
141 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery"),
142 },
143 },
144 },
145 },
146 },
147 "preferredVersion": {
148 SchemaProps: spec.SchemaProps{
149 Description: "preferredVersion is the version preferred by the API server, which probably is the storage version.",
150 Default: map[string]interface{}{},
151 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery"),
152 },
153 },
154 "serverAddressByClientCIDRs": {
155 VendorExtensible: spec.VendorExtensible{
156 Extensions: spec.Extensions{
157 "x-kubernetes-list-type": "atomic",
158 },
159 },
160 SchemaProps: spec.SchemaProps{
161 Description: "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.",
162 Type: []string{"array"},
163 Items: &spec.SchemaOrArray{
164 Schema: &spec.Schema{
165 SchemaProps: spec.SchemaProps{
166 Default: map[string]interface{}{},
167 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"),
168 },
169 },
170 },
171 },
172 },
173 },
174 Required: []string{"name", "versions"},
175 },
176 },
177 Dependencies: []string{
178 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery", "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"},
179 }
180 }
181
182 func schema_pkg_apis_meta_v1_APIGroupList(ref common.ReferenceCallback) common.OpenAPIDefinition {
183 return common.OpenAPIDefinition{
184 Schema: spec.Schema{
185 SchemaProps: spec.SchemaProps{
186 Description: "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.",
187 Type: []string{"object"},
188 Properties: map[string]spec.Schema{
189 "kind": {
190 SchemaProps: spec.SchemaProps{
191 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
192 Type: []string{"string"},
193 Format: "",
194 },
195 },
196 "apiVersion": {
197 SchemaProps: spec.SchemaProps{
198 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
199 Type: []string{"string"},
200 Format: "",
201 },
202 },
203 "groups": {
204 VendorExtensible: spec.VendorExtensible{
205 Extensions: spec.Extensions{
206 "x-kubernetes-list-type": "atomic",
207 },
208 },
209 SchemaProps: spec.SchemaProps{
210 Description: "groups is a list of APIGroup.",
211 Type: []string{"array"},
212 Items: &spec.SchemaOrArray{
213 Schema: &spec.Schema{
214 SchemaProps: spec.SchemaProps{
215 Default: map[string]interface{}{},
216 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup"),
217 },
218 },
219 },
220 },
221 },
222 },
223 Required: []string{"groups"},
224 },
225 },
226 Dependencies: []string{
227 "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup"},
228 }
229 }
230
231 func schema_pkg_apis_meta_v1_APIResource(ref common.ReferenceCallback) common.OpenAPIDefinition {
232 return common.OpenAPIDefinition{
233 Schema: spec.Schema{
234 SchemaProps: spec.SchemaProps{
235 Description: "APIResource specifies the name of a resource and whether it is namespaced.",
236 Type: []string{"object"},
237 Properties: map[string]spec.Schema{
238 "name": {
239 SchemaProps: spec.SchemaProps{
240 Description: "name is the plural name of the resource.",
241 Default: "",
242 Type: []string{"string"},
243 Format: "",
244 },
245 },
246 "singularName": {
247 SchemaProps: spec.SchemaProps{
248 Description: "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.",
249 Default: "",
250 Type: []string{"string"},
251 Format: "",
252 },
253 },
254 "namespaced": {
255 SchemaProps: spec.SchemaProps{
256 Description: "namespaced indicates if a resource is namespaced or not.",
257 Default: false,
258 Type: []string{"boolean"},
259 Format: "",
260 },
261 },
262 "group": {
263 SchemaProps: spec.SchemaProps{
264 Description: "group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\".",
265 Type: []string{"string"},
266 Format: "",
267 },
268 },
269 "version": {
270 SchemaProps: spec.SchemaProps{
271 Description: "version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\".",
272 Type: []string{"string"},
273 Format: "",
274 },
275 },
276 "kind": {
277 SchemaProps: spec.SchemaProps{
278 Description: "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')",
279 Default: "",
280 Type: []string{"string"},
281 Format: "",
282 },
283 },
284 "verbs": {
285 SchemaProps: spec.SchemaProps{
286 Description: "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)",
287 Type: []string{"array"},
288 Items: &spec.SchemaOrArray{
289 Schema: &spec.Schema{
290 SchemaProps: spec.SchemaProps{
291 Default: "",
292 Type: []string{"string"},
293 Format: "",
294 },
295 },
296 },
297 },
298 },
299 "shortNames": {
300 VendorExtensible: spec.VendorExtensible{
301 Extensions: spec.Extensions{
302 "x-kubernetes-list-type": "atomic",
303 },
304 },
305 SchemaProps: spec.SchemaProps{
306 Description: "shortNames is a list of suggested short names of the resource.",
307 Type: []string{"array"},
308 Items: &spec.SchemaOrArray{
309 Schema: &spec.Schema{
310 SchemaProps: spec.SchemaProps{
311 Default: "",
312 Type: []string{"string"},
313 Format: "",
314 },
315 },
316 },
317 },
318 },
319 "categories": {
320 VendorExtensible: spec.VendorExtensible{
321 Extensions: spec.Extensions{
322 "x-kubernetes-list-type": "atomic",
323 },
324 },
325 SchemaProps: spec.SchemaProps{
326 Description: "categories is a list of the grouped resources this resource belongs to (e.g. 'all')",
327 Type: []string{"array"},
328 Items: &spec.SchemaOrArray{
329 Schema: &spec.Schema{
330 SchemaProps: spec.SchemaProps{
331 Default: "",
332 Type: []string{"string"},
333 Format: "",
334 },
335 },
336 },
337 },
338 },
339 "storageVersionHash": {
340 SchemaProps: spec.SchemaProps{
341 Description: "The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.",
342 Type: []string{"string"},
343 Format: "",
344 },
345 },
346 },
347 Required: []string{"name", "singularName", "namespaced", "kind", "verbs"},
348 },
349 },
350 }
351 }
352
353 func schema_pkg_apis_meta_v1_APIResourceList(ref common.ReferenceCallback) common.OpenAPIDefinition {
354 return common.OpenAPIDefinition{
355 Schema: spec.Schema{
356 SchemaProps: spec.SchemaProps{
357 Description: "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.",
358 Type: []string{"object"},
359 Properties: map[string]spec.Schema{
360 "kind": {
361 SchemaProps: spec.SchemaProps{
362 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
363 Type: []string{"string"},
364 Format: "",
365 },
366 },
367 "apiVersion": {
368 SchemaProps: spec.SchemaProps{
369 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
370 Type: []string{"string"},
371 Format: "",
372 },
373 },
374 "groupVersion": {
375 SchemaProps: spec.SchemaProps{
376 Description: "groupVersion is the group and version this APIResourceList is for.",
377 Default: "",
378 Type: []string{"string"},
379 Format: "",
380 },
381 },
382 "resources": {
383 VendorExtensible: spec.VendorExtensible{
384 Extensions: spec.Extensions{
385 "x-kubernetes-list-type": "atomic",
386 },
387 },
388 SchemaProps: spec.SchemaProps{
389 Description: "resources contains the name of the resources and if they are namespaced.",
390 Type: []string{"array"},
391 Items: &spec.SchemaOrArray{
392 Schema: &spec.Schema{
393 SchemaProps: spec.SchemaProps{
394 Default: map[string]interface{}{},
395 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.APIResource"),
396 },
397 },
398 },
399 },
400 },
401 },
402 Required: []string{"groupVersion", "resources"},
403 },
404 },
405 Dependencies: []string{
406 "k8s.io/apimachinery/pkg/apis/meta/v1.APIResource"},
407 }
408 }
409
410 func schema_pkg_apis_meta_v1_APIVersions(ref common.ReferenceCallback) common.OpenAPIDefinition {
411 return common.OpenAPIDefinition{
412 Schema: spec.Schema{
413 SchemaProps: spec.SchemaProps{
414 Description: "APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.",
415 Type: []string{"object"},
416 Properties: map[string]spec.Schema{
417 "kind": {
418 SchemaProps: spec.SchemaProps{
419 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
420 Type: []string{"string"},
421 Format: "",
422 },
423 },
424 "apiVersion": {
425 SchemaProps: spec.SchemaProps{
426 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
427 Type: []string{"string"},
428 Format: "",
429 },
430 },
431 "versions": {
432 VendorExtensible: spec.VendorExtensible{
433 Extensions: spec.Extensions{
434 "x-kubernetes-list-type": "atomic",
435 },
436 },
437 SchemaProps: spec.SchemaProps{
438 Description: "versions are the api versions that are available.",
439 Type: []string{"array"},
440 Items: &spec.SchemaOrArray{
441 Schema: &spec.Schema{
442 SchemaProps: spec.SchemaProps{
443 Default: "",
444 Type: []string{"string"},
445 Format: "",
446 },
447 },
448 },
449 },
450 },
451 "serverAddressByClientCIDRs": {
452 VendorExtensible: spec.VendorExtensible{
453 Extensions: spec.Extensions{
454 "x-kubernetes-list-type": "atomic",
455 },
456 },
457 SchemaProps: spec.SchemaProps{
458 Description: "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.",
459 Type: []string{"array"},
460 Items: &spec.SchemaOrArray{
461 Schema: &spec.Schema{
462 SchemaProps: spec.SchemaProps{
463 Default: map[string]interface{}{},
464 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"),
465 },
466 },
467 },
468 },
469 },
470 },
471 Required: []string{"versions", "serverAddressByClientCIDRs"},
472 },
473 },
474 Dependencies: []string{
475 "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"},
476 }
477 }
478
479 func schema_pkg_apis_meta_v1_ApplyOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
480 return common.OpenAPIDefinition{
481 Schema: spec.Schema{
482 SchemaProps: spec.SchemaProps{
483 Description: "ApplyOptions may be provided when applying an API object. FieldManager is required for apply requests. ApplyOptions is equivalent to PatchOptions. It is provided as a convenience with documentation that speaks specifically to how the options fields relate to apply.",
484 Type: []string{"object"},
485 Properties: map[string]spec.Schema{
486 "kind": {
487 SchemaProps: spec.SchemaProps{
488 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
489 Type: []string{"string"},
490 Format: "",
491 },
492 },
493 "apiVersion": {
494 SchemaProps: spec.SchemaProps{
495 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
496 Type: []string{"string"},
497 Format: "",
498 },
499 },
500 "dryRun": {
501 VendorExtensible: spec.VendorExtensible{
502 Extensions: spec.Extensions{
503 "x-kubernetes-list-type": "atomic",
504 },
505 },
506 SchemaProps: spec.SchemaProps{
507 Description: "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
508 Type: []string{"array"},
509 Items: &spec.SchemaOrArray{
510 Schema: &spec.Schema{
511 SchemaProps: spec.SchemaProps{
512 Default: "",
513 Type: []string{"string"},
514 Format: "",
515 },
516 },
517 },
518 },
519 },
520 "force": {
521 SchemaProps: spec.SchemaProps{
522 Description: "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people.",
523 Default: false,
524 Type: []string{"boolean"},
525 Format: "",
526 },
527 },
528 "fieldManager": {
529 SchemaProps: spec.SchemaProps{
530 Description: "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required.",
531 Default: "",
532 Type: []string{"string"},
533 Format: "",
534 },
535 },
536 },
537 Required: []string{"force", "fieldManager"},
538 },
539 },
540 }
541 }
542
543 func schema_pkg_apis_meta_v1_Condition(ref common.ReferenceCallback) common.OpenAPIDefinition {
544 return common.OpenAPIDefinition{
545 Schema: spec.Schema{
546 SchemaProps: spec.SchemaProps{
547 Description: "Condition contains details for one aspect of the current state of this API Resource.",
548 Type: []string{"object"},
549 Properties: map[string]spec.Schema{
550 "type": {
551 SchemaProps: spec.SchemaProps{
552 Description: "type of condition in CamelCase or in foo.example.com/CamelCase.",
553 Default: "",
554 Type: []string{"string"},
555 Format: "",
556 },
557 },
558 "status": {
559 SchemaProps: spec.SchemaProps{
560 Description: "status of the condition, one of True, False, Unknown.",
561 Default: "",
562 Type: []string{"string"},
563 Format: "",
564 },
565 },
566 "observedGeneration": {
567 SchemaProps: spec.SchemaProps{
568 Description: "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.",
569 Type: []string{"integer"},
570 Format: "int64",
571 },
572 },
573 "lastTransitionTime": {
574 SchemaProps: spec.SchemaProps{
575 Description: "lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.",
576 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
577 },
578 },
579 "reason": {
580 SchemaProps: spec.SchemaProps{
581 Description: "reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.",
582 Default: "",
583 Type: []string{"string"},
584 Format: "",
585 },
586 },
587 "message": {
588 SchemaProps: spec.SchemaProps{
589 Description: "message is a human readable message indicating details about the transition. This may be an empty string.",
590 Default: "",
591 Type: []string{"string"},
592 Format: "",
593 },
594 },
595 },
596 Required: []string{"type", "status", "lastTransitionTime", "reason", "message"},
597 },
598 },
599 Dependencies: []string{
600 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
601 }
602 }
603
604 func schema_pkg_apis_meta_v1_CreateOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
605 return common.OpenAPIDefinition{
606 Schema: spec.Schema{
607 SchemaProps: spec.SchemaProps{
608 Description: "CreateOptions may be provided when creating an API object.",
609 Type: []string{"object"},
610 Properties: map[string]spec.Schema{
611 "kind": {
612 SchemaProps: spec.SchemaProps{
613 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
614 Type: []string{"string"},
615 Format: "",
616 },
617 },
618 "apiVersion": {
619 SchemaProps: spec.SchemaProps{
620 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
621 Type: []string{"string"},
622 Format: "",
623 },
624 },
625 "dryRun": {
626 VendorExtensible: spec.VendorExtensible{
627 Extensions: spec.Extensions{
628 "x-kubernetes-list-type": "atomic",
629 },
630 },
631 SchemaProps: spec.SchemaProps{
632 Description: "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
633 Type: []string{"array"},
634 Items: &spec.SchemaOrArray{
635 Schema: &spec.Schema{
636 SchemaProps: spec.SchemaProps{
637 Default: "",
638 Type: []string{"string"},
639 Format: "",
640 },
641 },
642 },
643 },
644 },
645 "fieldManager": {
646 SchemaProps: spec.SchemaProps{
647 Description: "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.",
648 Type: []string{"string"},
649 Format: "",
650 },
651 },
652 "fieldValidation": {
653 SchemaProps: spec.SchemaProps{
654 Description: "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.",
655 Type: []string{"string"},
656 Format: "",
657 },
658 },
659 },
660 },
661 },
662 }
663 }
664
665 func schema_pkg_apis_meta_v1_DeleteOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
666 return common.OpenAPIDefinition{
667 Schema: spec.Schema{
668 SchemaProps: spec.SchemaProps{
669 Description: "DeleteOptions may be provided when deleting an API object.",
670 Type: []string{"object"},
671 Properties: map[string]spec.Schema{
672 "kind": {
673 SchemaProps: spec.SchemaProps{
674 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
675 Type: []string{"string"},
676 Format: "",
677 },
678 },
679 "apiVersion": {
680 SchemaProps: spec.SchemaProps{
681 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
682 Type: []string{"string"},
683 Format: "",
684 },
685 },
686 "gracePeriodSeconds": {
687 SchemaProps: spec.SchemaProps{
688 Description: "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.",
689 Type: []string{"integer"},
690 Format: "int64",
691 },
692 },
693 "preconditions": {
694 SchemaProps: spec.SchemaProps{
695 Description: "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.",
696 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions"),
697 },
698 },
699 "orphanDependents": {
700 SchemaProps: spec.SchemaProps{
701 Description: "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.",
702 Type: []string{"boolean"},
703 Format: "",
704 },
705 },
706 "propagationPolicy": {
707 SchemaProps: spec.SchemaProps{
708 Description: "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.",
709 Type: []string{"string"},
710 Format: "",
711 },
712 },
713 "dryRun": {
714 VendorExtensible: spec.VendorExtensible{
715 Extensions: spec.Extensions{
716 "x-kubernetes-list-type": "atomic",
717 },
718 },
719 SchemaProps: spec.SchemaProps{
720 Description: "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
721 Type: []string{"array"},
722 Items: &spec.SchemaOrArray{
723 Schema: &spec.Schema{
724 SchemaProps: spec.SchemaProps{
725 Default: "",
726 Type: []string{"string"},
727 Format: "",
728 },
729 },
730 },
731 },
732 },
733 },
734 },
735 },
736 Dependencies: []string{
737 "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions"},
738 }
739 }
740
741 func schema_pkg_apis_meta_v1_Duration(ref common.ReferenceCallback) common.OpenAPIDefinition {
742 return common.OpenAPIDefinition{
743 Schema: spec.Schema{
744 SchemaProps: spec.SchemaProps{
745 Description: "Duration is a wrapper around time.Duration which supports correct marshaling to YAML and JSON. In particular, it marshals into strings, which can be used as map keys in json.",
746 Type: v1.Duration{}.OpenAPISchemaType(),
747 Format: v1.Duration{}.OpenAPISchemaFormat(),
748 },
749 },
750 }
751 }
752
753 func schema_pkg_apis_meta_v1_FieldsV1(ref common.ReferenceCallback) common.OpenAPIDefinition {
754 return common.OpenAPIDefinition{
755 Schema: spec.Schema{
756 SchemaProps: spec.SchemaProps{
757 Description: "FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\n\nEach key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:<name>', where <name> is the name of a field in a struct, or key in a map 'v:<value>', where <value> is the exact json formatted value of a list item 'i:<index>', where <index> is position of a item in a list 'k:<keys>', where <keys> is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.\n\nThe exact format is defined in sigs.k8s.io/structured-merge-diff",
758 Type: []string{"object"},
759 },
760 },
761 }
762 }
763
764 func schema_pkg_apis_meta_v1_GetOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
765 return common.OpenAPIDefinition{
766 Schema: spec.Schema{
767 SchemaProps: spec.SchemaProps{
768 Description: "GetOptions is the standard query options to the standard REST get call.",
769 Type: []string{"object"},
770 Properties: map[string]spec.Schema{
771 "kind": {
772 SchemaProps: spec.SchemaProps{
773 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
774 Type: []string{"string"},
775 Format: "",
776 },
777 },
778 "apiVersion": {
779 SchemaProps: spec.SchemaProps{
780 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
781 Type: []string{"string"},
782 Format: "",
783 },
784 },
785 "resourceVersion": {
786 SchemaProps: spec.SchemaProps{
787 Description: "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
788 Type: []string{"string"},
789 Format: "",
790 },
791 },
792 },
793 },
794 },
795 }
796 }
797
798 func schema_pkg_apis_meta_v1_GroupKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
799 return common.OpenAPIDefinition{
800 Schema: spec.Schema{
801 SchemaProps: spec.SchemaProps{
802 Description: "GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying concepts during lookup stages without having partially valid types",
803 Type: []string{"object"},
804 Properties: map[string]spec.Schema{
805 "group": {
806 SchemaProps: spec.SchemaProps{
807 Default: "",
808 Type: []string{"string"},
809 Format: "",
810 },
811 },
812 "kind": {
813 SchemaProps: spec.SchemaProps{
814 Default: "",
815 Type: []string{"string"},
816 Format: "",
817 },
818 },
819 },
820 Required: []string{"group", "kind"},
821 },
822 },
823 }
824 }
825
826 func schema_pkg_apis_meta_v1_GroupResource(ref common.ReferenceCallback) common.OpenAPIDefinition {
827 return common.OpenAPIDefinition{
828 Schema: spec.Schema{
829 SchemaProps: spec.SchemaProps{
830 Description: "GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying concepts during lookup stages without having partially valid types",
831 Type: []string{"object"},
832 Properties: map[string]spec.Schema{
833 "group": {
834 SchemaProps: spec.SchemaProps{
835 Default: "",
836 Type: []string{"string"},
837 Format: "",
838 },
839 },
840 "resource": {
841 SchemaProps: spec.SchemaProps{
842 Default: "",
843 Type: []string{"string"},
844 Format: "",
845 },
846 },
847 },
848 Required: []string{"group", "resource"},
849 },
850 },
851 }
852 }
853
854 func schema_pkg_apis_meta_v1_GroupVersion(ref common.ReferenceCallback) common.OpenAPIDefinition {
855 return common.OpenAPIDefinition{
856 Schema: spec.Schema{
857 SchemaProps: spec.SchemaProps{
858 Description: "GroupVersion contains the \"group\" and the \"version\", which uniquely identifies the API.",
859 Type: []string{"object"},
860 Properties: map[string]spec.Schema{
861 "group": {
862 SchemaProps: spec.SchemaProps{
863 Default: "",
864 Type: []string{"string"},
865 Format: "",
866 },
867 },
868 "version": {
869 SchemaProps: spec.SchemaProps{
870 Default: "",
871 Type: []string{"string"},
872 Format: "",
873 },
874 },
875 },
876 Required: []string{"group", "version"},
877 },
878 },
879 }
880 }
881
882 func schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref common.ReferenceCallback) common.OpenAPIDefinition {
883 return common.OpenAPIDefinition{
884 Schema: spec.Schema{
885 SchemaProps: spec.SchemaProps{
886 Description: "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.",
887 Type: []string{"object"},
888 Properties: map[string]spec.Schema{
889 "groupVersion": {
890 SchemaProps: spec.SchemaProps{
891 Description: "groupVersion specifies the API group and version in the form \"group/version\"",
892 Default: "",
893 Type: []string{"string"},
894 Format: "",
895 },
896 },
897 "version": {
898 SchemaProps: spec.SchemaProps{
899 Description: "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.",
900 Default: "",
901 Type: []string{"string"},
902 Format: "",
903 },
904 },
905 },
906 Required: []string{"groupVersion", "version"},
907 },
908 },
909 }
910 }
911
912 func schema_pkg_apis_meta_v1_GroupVersionKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
913 return common.OpenAPIDefinition{
914 Schema: spec.Schema{
915 SchemaProps: spec.SchemaProps{
916 Description: "GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion to avoid automatic coercion. It doesn't use a GroupVersion to avoid custom marshalling",
917 Type: []string{"object"},
918 Properties: map[string]spec.Schema{
919 "group": {
920 SchemaProps: spec.SchemaProps{
921 Default: "",
922 Type: []string{"string"},
923 Format: "",
924 },
925 },
926 "version": {
927 SchemaProps: spec.SchemaProps{
928 Default: "",
929 Type: []string{"string"},
930 Format: "",
931 },
932 },
933 "kind": {
934 SchemaProps: spec.SchemaProps{
935 Default: "",
936 Type: []string{"string"},
937 Format: "",
938 },
939 },
940 },
941 Required: []string{"group", "version", "kind"},
942 },
943 },
944 }
945 }
946
947 func schema_pkg_apis_meta_v1_GroupVersionResource(ref common.ReferenceCallback) common.OpenAPIDefinition {
948 return common.OpenAPIDefinition{
949 Schema: spec.Schema{
950 SchemaProps: spec.SchemaProps{
951 Description: "GroupVersionResource unambiguously identifies a resource. It doesn't anonymously include GroupVersion to avoid automatic coercion. It doesn't use a GroupVersion to avoid custom marshalling",
952 Type: []string{"object"},
953 Properties: map[string]spec.Schema{
954 "group": {
955 SchemaProps: spec.SchemaProps{
956 Default: "",
957 Type: []string{"string"},
958 Format: "",
959 },
960 },
961 "version": {
962 SchemaProps: spec.SchemaProps{
963 Default: "",
964 Type: []string{"string"},
965 Format: "",
966 },
967 },
968 "resource": {
969 SchemaProps: spec.SchemaProps{
970 Default: "",
971 Type: []string{"string"},
972 Format: "",
973 },
974 },
975 },
976 Required: []string{"group", "version", "resource"},
977 },
978 },
979 }
980 }
981
982 func schema_pkg_apis_meta_v1_InternalEvent(ref common.ReferenceCallback) common.OpenAPIDefinition {
983 return common.OpenAPIDefinition{
984 Schema: spec.Schema{
985 SchemaProps: spec.SchemaProps{
986 Description: "InternalEvent makes watch.Event versioned",
987 Type: []string{"object"},
988 Properties: map[string]spec.Schema{
989 "Type": {
990 SchemaProps: spec.SchemaProps{
991 Default: "",
992 Type: []string{"string"},
993 Format: "",
994 },
995 },
996 "Object": {
997 SchemaProps: spec.SchemaProps{
998 Description: "Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Bookmark: the object (instance of a type being watched) where\n only ResourceVersion field is set. On successful restart of watch from a\n bookmark resourceVersion, client is guaranteed to not get repeat event\n nor miss any events.\n * If Type is Error: *api.Status is recommended; other types may make sense\n depending on context.",
999 Ref: ref("k8s.io/apimachinery/pkg/runtime.Object"),
1000 },
1001 },
1002 },
1003 Required: []string{"Type", "Object"},
1004 },
1005 },
1006 Dependencies: []string{
1007 "k8s.io/apimachinery/pkg/runtime.Object"},
1008 }
1009 }
1010
1011 func schema_pkg_apis_meta_v1_LabelSelector(ref common.ReferenceCallback) common.OpenAPIDefinition {
1012 return common.OpenAPIDefinition{
1013 Schema: spec.Schema{
1014 SchemaProps: spec.SchemaProps{
1015 Description: "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.",
1016 Type: []string{"object"},
1017 Properties: map[string]spec.Schema{
1018 "matchLabels": {
1019 SchemaProps: spec.SchemaProps{
1020 Description: "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
1021 Type: []string{"object"},
1022 AdditionalProperties: &spec.SchemaOrBool{
1023 Allows: true,
1024 Schema: &spec.Schema{
1025 SchemaProps: spec.SchemaProps{
1026 Default: "",
1027 Type: []string{"string"},
1028 Format: "",
1029 },
1030 },
1031 },
1032 },
1033 },
1034 "matchExpressions": {
1035 VendorExtensible: spec.VendorExtensible{
1036 Extensions: spec.Extensions{
1037 "x-kubernetes-list-type": "atomic",
1038 },
1039 },
1040 SchemaProps: spec.SchemaProps{
1041 Description: "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
1042 Type: []string{"array"},
1043 Items: &spec.SchemaOrArray{
1044 Schema: &spec.Schema{
1045 SchemaProps: spec.SchemaProps{
1046 Default: map[string]interface{}{},
1047 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"),
1048 },
1049 },
1050 },
1051 },
1052 },
1053 },
1054 },
1055 VendorExtensible: spec.VendorExtensible{
1056 Extensions: spec.Extensions{
1057 "x-kubernetes-map-type": "atomic",
1058 },
1059 },
1060 },
1061 Dependencies: []string{
1062 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"},
1063 }
1064 }
1065
1066 func schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref common.ReferenceCallback) common.OpenAPIDefinition {
1067 return common.OpenAPIDefinition{
1068 Schema: spec.Schema{
1069 SchemaProps: spec.SchemaProps{
1070 Description: "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
1071 Type: []string{"object"},
1072 Properties: map[string]spec.Schema{
1073 "key": {
1074 SchemaProps: spec.SchemaProps{
1075 Description: "key is the label key that the selector applies to.",
1076 Default: "",
1077 Type: []string{"string"},
1078 Format: "",
1079 },
1080 },
1081 "operator": {
1082 SchemaProps: spec.SchemaProps{
1083 Description: "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
1084 Default: "",
1085 Type: []string{"string"},
1086 Format: "",
1087 },
1088 },
1089 "values": {
1090 VendorExtensible: spec.VendorExtensible{
1091 Extensions: spec.Extensions{
1092 "x-kubernetes-list-type": "atomic",
1093 },
1094 },
1095 SchemaProps: spec.SchemaProps{
1096 Description: "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
1097 Type: []string{"array"},
1098 Items: &spec.SchemaOrArray{
1099 Schema: &spec.Schema{
1100 SchemaProps: spec.SchemaProps{
1101 Default: "",
1102 Type: []string{"string"},
1103 Format: "",
1104 },
1105 },
1106 },
1107 },
1108 },
1109 },
1110 Required: []string{"key", "operator"},
1111 },
1112 },
1113 }
1114 }
1115
1116 func schema_pkg_apis_meta_v1_List(ref common.ReferenceCallback) common.OpenAPIDefinition {
1117 return common.OpenAPIDefinition{
1118 Schema: spec.Schema{
1119 SchemaProps: spec.SchemaProps{
1120 Description: "List holds a list of objects, which may not be known by the server.",
1121 Type: []string{"object"},
1122 Properties: map[string]spec.Schema{
1123 "kind": {
1124 SchemaProps: spec.SchemaProps{
1125 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
1126 Type: []string{"string"},
1127 Format: "",
1128 },
1129 },
1130 "apiVersion": {
1131 SchemaProps: spec.SchemaProps{
1132 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
1133 Type: []string{"string"},
1134 Format: "",
1135 },
1136 },
1137 "metadata": {
1138 SchemaProps: spec.SchemaProps{
1139 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
1140 Default: map[string]interface{}{},
1141 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"),
1142 },
1143 },
1144 "items": {
1145 SchemaProps: spec.SchemaProps{
1146 Description: "List of objects",
1147 Type: []string{"array"},
1148 Items: &spec.SchemaOrArray{
1149 Schema: &spec.Schema{
1150 SchemaProps: spec.SchemaProps{
1151 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"),
1152 },
1153 },
1154 },
1155 },
1156 },
1157 },
1158 Required: []string{"items"},
1159 },
1160 },
1161 Dependencies: []string{
1162 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/runtime.RawExtension"},
1163 }
1164 }
1165
1166 func schema_pkg_apis_meta_v1_ListMeta(ref common.ReferenceCallback) common.OpenAPIDefinition {
1167 return common.OpenAPIDefinition{
1168 Schema: spec.Schema{
1169 SchemaProps: spec.SchemaProps{
1170 Description: "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.",
1171 Type: []string{"object"},
1172 Properties: map[string]spec.Schema{
1173 "selfLink": {
1174 SchemaProps: spec.SchemaProps{
1175 Description: "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.",
1176 Type: []string{"string"},
1177 Format: "",
1178 },
1179 },
1180 "resourceVersion": {
1181 SchemaProps: spec.SchemaProps{
1182 Description: "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency",
1183 Type: []string{"string"},
1184 Format: "",
1185 },
1186 },
1187 "continue": {
1188 SchemaProps: spec.SchemaProps{
1189 Description: "continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.",
1190 Type: []string{"string"},
1191 Format: "",
1192 },
1193 },
1194 "remainingItemCount": {
1195 SchemaProps: spec.SchemaProps{
1196 Description: "remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.",
1197 Type: []string{"integer"},
1198 Format: "int64",
1199 },
1200 },
1201 },
1202 },
1203 },
1204 }
1205 }
1206
1207 func schema_pkg_apis_meta_v1_ListOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
1208 return common.OpenAPIDefinition{
1209 Schema: spec.Schema{
1210 SchemaProps: spec.SchemaProps{
1211 Description: "ListOptions is the query options to a standard REST list call.",
1212 Type: []string{"object"},
1213 Properties: map[string]spec.Schema{
1214 "kind": {
1215 SchemaProps: spec.SchemaProps{
1216 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
1217 Type: []string{"string"},
1218 Format: "",
1219 },
1220 },
1221 "apiVersion": {
1222 SchemaProps: spec.SchemaProps{
1223 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
1224 Type: []string{"string"},
1225 Format: "",
1226 },
1227 },
1228 "labelSelector": {
1229 SchemaProps: spec.SchemaProps{
1230 Description: "A selector to restrict the list of returned objects by their labels. Defaults to everything.",
1231 Type: []string{"string"},
1232 Format: "",
1233 },
1234 },
1235 "fieldSelector": {
1236 SchemaProps: spec.SchemaProps{
1237 Description: "A selector to restrict the list of returned objects by their fields. Defaults to everything.",
1238 Type: []string{"string"},
1239 Format: "",
1240 },
1241 },
1242 "watch": {
1243 SchemaProps: spec.SchemaProps{
1244 Description: "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.",
1245 Type: []string{"boolean"},
1246 Format: "",
1247 },
1248 },
1249 "allowWatchBookmarks": {
1250 SchemaProps: spec.SchemaProps{
1251 Description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.",
1252 Type: []string{"boolean"},
1253 Format: "",
1254 },
1255 },
1256 "resourceVersion": {
1257 SchemaProps: spec.SchemaProps{
1258 Description: "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
1259 Type: []string{"string"},
1260 Format: "",
1261 },
1262 },
1263 "resourceVersionMatch": {
1264 SchemaProps: spec.SchemaProps{
1265 Description: "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
1266 Type: []string{"string"},
1267 Format: "",
1268 },
1269 },
1270 "timeoutSeconds": {
1271 SchemaProps: spec.SchemaProps{
1272 Description: "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.",
1273 Type: []string{"integer"},
1274 Format: "int64",
1275 },
1276 },
1277 "limit": {
1278 SchemaProps: spec.SchemaProps{
1279 Description: "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.",
1280 Type: []string{"integer"},
1281 Format: "int64",
1282 },
1283 },
1284 "continue": {
1285 SchemaProps: spec.SchemaProps{
1286 Description: "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.",
1287 Type: []string{"string"},
1288 Format: "",
1289 },
1290 },
1291 "sendInitialEvents": {
1292 SchemaProps: spec.SchemaProps{
1293 Description: "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.",
1294 Type: []string{"boolean"},
1295 Format: "",
1296 },
1297 },
1298 },
1299 },
1300 },
1301 }
1302 }
1303
1304 func schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref common.ReferenceCallback) common.OpenAPIDefinition {
1305 return common.OpenAPIDefinition{
1306 Schema: spec.Schema{
1307 SchemaProps: spec.SchemaProps{
1308 Description: "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.",
1309 Type: []string{"object"},
1310 Properties: map[string]spec.Schema{
1311 "manager": {
1312 SchemaProps: spec.SchemaProps{
1313 Description: "Manager is an identifier of the workflow managing these fields.",
1314 Type: []string{"string"},
1315 Format: "",
1316 },
1317 },
1318 "operation": {
1319 SchemaProps: spec.SchemaProps{
1320 Description: "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.",
1321 Type: []string{"string"},
1322 Format: "",
1323 },
1324 },
1325 "apiVersion": {
1326 SchemaProps: spec.SchemaProps{
1327 Description: "APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.",
1328 Type: []string{"string"},
1329 Format: "",
1330 },
1331 },
1332 "time": {
1333 SchemaProps: spec.SchemaProps{
1334 Description: "Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over.",
1335 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
1336 },
1337 },
1338 "fieldsType": {
1339 SchemaProps: spec.SchemaProps{
1340 Description: "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"",
1341 Type: []string{"string"},
1342 Format: "",
1343 },
1344 },
1345 "fieldsV1": {
1346 SchemaProps: spec.SchemaProps{
1347 Description: "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type.",
1348 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1"),
1349 },
1350 },
1351 "subresource": {
1352 SchemaProps: spec.SchemaProps{
1353 Description: "Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource.",
1354 Type: []string{"string"},
1355 Format: "",
1356 },
1357 },
1358 },
1359 },
1360 },
1361 Dependencies: []string{
1362 "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
1363 }
1364 }
1365
1366 func schema_pkg_apis_meta_v1_MicroTime(ref common.ReferenceCallback) common.OpenAPIDefinition {
1367 return common.OpenAPIDefinition{
1368 Schema: spec.Schema{
1369 SchemaProps: spec.SchemaProps{
1370 Description: "MicroTime is version of Time with microsecond level precision.",
1371 Type: v1.MicroTime{}.OpenAPISchemaType(),
1372 Format: v1.MicroTime{}.OpenAPISchemaFormat(),
1373 },
1374 },
1375 }
1376 }
1377
1378 func schema_pkg_apis_meta_v1_ObjectMeta(ref common.ReferenceCallback) common.OpenAPIDefinition {
1379 return common.OpenAPIDefinition{
1380 Schema: spec.Schema{
1381 SchemaProps: spec.SchemaProps{
1382 Description: "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.",
1383 Type: []string{"object"},
1384 Properties: map[string]spec.Schema{
1385 "name": {
1386 SchemaProps: spec.SchemaProps{
1387 Description: "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names",
1388 Type: []string{"string"},
1389 Format: "",
1390 },
1391 },
1392 "generateName": {
1393 SchemaProps: spec.SchemaProps{
1394 Description: "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency",
1395 Type: []string{"string"},
1396 Format: "",
1397 },
1398 },
1399 "namespace": {
1400 SchemaProps: spec.SchemaProps{
1401 Description: "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces",
1402 Type: []string{"string"},
1403 Format: "",
1404 },
1405 },
1406 "selfLink": {
1407 SchemaProps: spec.SchemaProps{
1408 Description: "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.",
1409 Type: []string{"string"},
1410 Format: "",
1411 },
1412 },
1413 "uid": {
1414 SchemaProps: spec.SchemaProps{
1415 Description: "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids",
1416 Type: []string{"string"},
1417 Format: "",
1418 },
1419 },
1420 "resourceVersion": {
1421 SchemaProps: spec.SchemaProps{
1422 Description: "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency",
1423 Type: []string{"string"},
1424 Format: "",
1425 },
1426 },
1427 "generation": {
1428 SchemaProps: spec.SchemaProps{
1429 Description: "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.",
1430 Type: []string{"integer"},
1431 Format: "int64",
1432 },
1433 },
1434 "creationTimestamp": {
1435 SchemaProps: spec.SchemaProps{
1436 Description: "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
1437 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
1438 },
1439 },
1440 "deletionTimestamp": {
1441 SchemaProps: spec.SchemaProps{
1442 Description: "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
1443 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
1444 },
1445 },
1446 "deletionGracePeriodSeconds": {
1447 SchemaProps: spec.SchemaProps{
1448 Description: "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.",
1449 Type: []string{"integer"},
1450 Format: "int64",
1451 },
1452 },
1453 "labels": {
1454 SchemaProps: spec.SchemaProps{
1455 Description: "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels",
1456 Type: []string{"object"},
1457 AdditionalProperties: &spec.SchemaOrBool{
1458 Allows: true,
1459 Schema: &spec.Schema{
1460 SchemaProps: spec.SchemaProps{
1461 Default: "",
1462 Type: []string{"string"},
1463 Format: "",
1464 },
1465 },
1466 },
1467 },
1468 },
1469 "annotations": {
1470 SchemaProps: spec.SchemaProps{
1471 Description: "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations",
1472 Type: []string{"object"},
1473 AdditionalProperties: &spec.SchemaOrBool{
1474 Allows: true,
1475 Schema: &spec.Schema{
1476 SchemaProps: spec.SchemaProps{
1477 Default: "",
1478 Type: []string{"string"},
1479 Format: "",
1480 },
1481 },
1482 },
1483 },
1484 },
1485 "ownerReferences": {
1486 VendorExtensible: spec.VendorExtensible{
1487 Extensions: spec.Extensions{
1488 "x-kubernetes-list-map-keys": []interface{}{
1489 "uid",
1490 },
1491 "x-kubernetes-list-type": "map",
1492 "x-kubernetes-patch-merge-key": "uid",
1493 "x-kubernetes-patch-strategy": "merge",
1494 },
1495 },
1496 SchemaProps: spec.SchemaProps{
1497 Description: "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.",
1498 Type: []string{"array"},
1499 Items: &spec.SchemaOrArray{
1500 Schema: &spec.Schema{
1501 SchemaProps: spec.SchemaProps{
1502 Default: map[string]interface{}{},
1503 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference"),
1504 },
1505 },
1506 },
1507 },
1508 },
1509 "finalizers": {
1510 VendorExtensible: spec.VendorExtensible{
1511 Extensions: spec.Extensions{
1512 "x-kubernetes-list-type": "set",
1513 "x-kubernetes-patch-strategy": "merge",
1514 },
1515 },
1516 SchemaProps: spec.SchemaProps{
1517 Description: "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.",
1518 Type: []string{"array"},
1519 Items: &spec.SchemaOrArray{
1520 Schema: &spec.Schema{
1521 SchemaProps: spec.SchemaProps{
1522 Default: "",
1523 Type: []string{"string"},
1524 Format: "",
1525 },
1526 },
1527 },
1528 },
1529 },
1530 "managedFields": {
1531 VendorExtensible: spec.VendorExtensible{
1532 Extensions: spec.Extensions{
1533 "x-kubernetes-list-type": "atomic",
1534 },
1535 },
1536 SchemaProps: spec.SchemaProps{
1537 Description: "ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object.",
1538 Type: []string{"array"},
1539 Items: &spec.SchemaOrArray{
1540 Schema: &spec.Schema{
1541 SchemaProps: spec.SchemaProps{
1542 Default: map[string]interface{}{},
1543 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry"),
1544 },
1545 },
1546 },
1547 },
1548 },
1549 },
1550 },
1551 },
1552 Dependencies: []string{
1553 "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry", "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
1554 }
1555 }
1556
1557 func schema_pkg_apis_meta_v1_OwnerReference(ref common.ReferenceCallback) common.OpenAPIDefinition {
1558 return common.OpenAPIDefinition{
1559 Schema: spec.Schema{
1560 SchemaProps: spec.SchemaProps{
1561 Description: "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.",
1562 Type: []string{"object"},
1563 Properties: map[string]spec.Schema{
1564 "apiVersion": {
1565 SchemaProps: spec.SchemaProps{
1566 Description: "API version of the referent.",
1567 Default: "",
1568 Type: []string{"string"},
1569 Format: "",
1570 },
1571 },
1572 "kind": {
1573 SchemaProps: spec.SchemaProps{
1574 Description: "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
1575 Default: "",
1576 Type: []string{"string"},
1577 Format: "",
1578 },
1579 },
1580 "name": {
1581 SchemaProps: spec.SchemaProps{
1582 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names",
1583 Default: "",
1584 Type: []string{"string"},
1585 Format: "",
1586 },
1587 },
1588 "uid": {
1589 SchemaProps: spec.SchemaProps{
1590 Description: "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids",
1591 Default: "",
1592 Type: []string{"string"},
1593 Format: "",
1594 },
1595 },
1596 "controller": {
1597 SchemaProps: spec.SchemaProps{
1598 Description: "If true, this reference points to the managing controller.",
1599 Type: []string{"boolean"},
1600 Format: "",
1601 },
1602 },
1603 "blockOwnerDeletion": {
1604 SchemaProps: spec.SchemaProps{
1605 Description: "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.",
1606 Type: []string{"boolean"},
1607 Format: "",
1608 },
1609 },
1610 },
1611 Required: []string{"apiVersion", "kind", "name", "uid"},
1612 },
1613 VendorExtensible: spec.VendorExtensible{
1614 Extensions: spec.Extensions{
1615 "x-kubernetes-map-type": "atomic",
1616 },
1617 },
1618 },
1619 }
1620 }
1621
1622 func schema_pkg_apis_meta_v1_PartialObjectMetadata(ref common.ReferenceCallback) common.OpenAPIDefinition {
1623 return common.OpenAPIDefinition{
1624 Schema: spec.Schema{
1625 SchemaProps: spec.SchemaProps{
1626 Description: "PartialObjectMetadata is a generic representation of any object with ObjectMeta. It allows clients to get access to a particular ObjectMeta schema without knowing the details of the version.",
1627 Type: []string{"object"},
1628 Properties: map[string]spec.Schema{
1629 "kind": {
1630 SchemaProps: spec.SchemaProps{
1631 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
1632 Type: []string{"string"},
1633 Format: "",
1634 },
1635 },
1636 "apiVersion": {
1637 SchemaProps: spec.SchemaProps{
1638 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
1639 Type: []string{"string"},
1640 Format: "",
1641 },
1642 },
1643 "metadata": {
1644 SchemaProps: spec.SchemaProps{
1645 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
1646 Default: map[string]interface{}{},
1647 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"),
1648 },
1649 },
1650 },
1651 },
1652 },
1653 Dependencies: []string{
1654 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
1655 }
1656 }
1657
1658 func schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref common.ReferenceCallback) common.OpenAPIDefinition {
1659 return common.OpenAPIDefinition{
1660 Schema: spec.Schema{
1661 SchemaProps: spec.SchemaProps{
1662 Description: "PartialObjectMetadataList contains a list of objects containing only their metadata",
1663 Type: []string{"object"},
1664 Properties: map[string]spec.Schema{
1665 "kind": {
1666 SchemaProps: spec.SchemaProps{
1667 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
1668 Type: []string{"string"},
1669 Format: "",
1670 },
1671 },
1672 "apiVersion": {
1673 SchemaProps: spec.SchemaProps{
1674 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
1675 Type: []string{"string"},
1676 Format: "",
1677 },
1678 },
1679 "metadata": {
1680 SchemaProps: spec.SchemaProps{
1681 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
1682 Default: map[string]interface{}{},
1683 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"),
1684 },
1685 },
1686 "items": {
1687 SchemaProps: spec.SchemaProps{
1688 Description: "items contains each of the included items.",
1689 Type: []string{"array"},
1690 Items: &spec.SchemaOrArray{
1691 Schema: &spec.Schema{
1692 SchemaProps: spec.SchemaProps{
1693 Default: map[string]interface{}{},
1694 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata"),
1695 },
1696 },
1697 },
1698 },
1699 },
1700 },
1701 Required: []string{"items"},
1702 },
1703 },
1704 Dependencies: []string{
1705 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata"},
1706 }
1707 }
1708
1709 func schema_pkg_apis_meta_v1_Patch(ref common.ReferenceCallback) common.OpenAPIDefinition {
1710 return common.OpenAPIDefinition{
1711 Schema: spec.Schema{
1712 SchemaProps: spec.SchemaProps{
1713 Description: "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.",
1714 Type: []string{"object"},
1715 },
1716 },
1717 }
1718 }
1719
1720 func schema_pkg_apis_meta_v1_PatchOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
1721 return common.OpenAPIDefinition{
1722 Schema: spec.Schema{
1723 SchemaProps: spec.SchemaProps{
1724 Description: "PatchOptions may be provided when patching an API object. PatchOptions is meant to be a superset of UpdateOptions.",
1725 Type: []string{"object"},
1726 Properties: map[string]spec.Schema{
1727 "kind": {
1728 SchemaProps: spec.SchemaProps{
1729 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
1730 Type: []string{"string"},
1731 Format: "",
1732 },
1733 },
1734 "apiVersion": {
1735 SchemaProps: spec.SchemaProps{
1736 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
1737 Type: []string{"string"},
1738 Format: "",
1739 },
1740 },
1741 "dryRun": {
1742 VendorExtensible: spec.VendorExtensible{
1743 Extensions: spec.Extensions{
1744 "x-kubernetes-list-type": "atomic",
1745 },
1746 },
1747 SchemaProps: spec.SchemaProps{
1748 Description: "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
1749 Type: []string{"array"},
1750 Items: &spec.SchemaOrArray{
1751 Schema: &spec.Schema{
1752 SchemaProps: spec.SchemaProps{
1753 Default: "",
1754 Type: []string{"string"},
1755 Format: "",
1756 },
1757 },
1758 },
1759 },
1760 },
1761 "force": {
1762 SchemaProps: spec.SchemaProps{
1763 Description: "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.",
1764 Type: []string{"boolean"},
1765 Format: "",
1766 },
1767 },
1768 "fieldManager": {
1769 SchemaProps: spec.SchemaProps{
1770 Description: "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).",
1771 Type: []string{"string"},
1772 Format: "",
1773 },
1774 },
1775 "fieldValidation": {
1776 SchemaProps: spec.SchemaProps{
1777 Description: "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.",
1778 Type: []string{"string"},
1779 Format: "",
1780 },
1781 },
1782 },
1783 },
1784 },
1785 }
1786 }
1787
1788 func schema_pkg_apis_meta_v1_Preconditions(ref common.ReferenceCallback) common.OpenAPIDefinition {
1789 return common.OpenAPIDefinition{
1790 Schema: spec.Schema{
1791 SchemaProps: spec.SchemaProps{
1792 Description: "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.",
1793 Type: []string{"object"},
1794 Properties: map[string]spec.Schema{
1795 "uid": {
1796 SchemaProps: spec.SchemaProps{
1797 Description: "Specifies the target UID.",
1798 Type: []string{"string"},
1799 Format: "",
1800 },
1801 },
1802 "resourceVersion": {
1803 SchemaProps: spec.SchemaProps{
1804 Description: "Specifies the target ResourceVersion",
1805 Type: []string{"string"},
1806 Format: "",
1807 },
1808 },
1809 },
1810 },
1811 },
1812 }
1813 }
1814
1815 func schema_pkg_apis_meta_v1_RootPaths(ref common.ReferenceCallback) common.OpenAPIDefinition {
1816 return common.OpenAPIDefinition{
1817 Schema: spec.Schema{
1818 SchemaProps: spec.SchemaProps{
1819 Description: "RootPaths lists the paths available at root. For example: \"/healthz\", \"/apis\".",
1820 Type: []string{"object"},
1821 Properties: map[string]spec.Schema{
1822 "paths": {
1823 VendorExtensible: spec.VendorExtensible{
1824 Extensions: spec.Extensions{
1825 "x-kubernetes-list-type": "atomic",
1826 },
1827 },
1828 SchemaProps: spec.SchemaProps{
1829 Description: "paths are the paths available at root.",
1830 Type: []string{"array"},
1831 Items: &spec.SchemaOrArray{
1832 Schema: &spec.Schema{
1833 SchemaProps: spec.SchemaProps{
1834 Default: "",
1835 Type: []string{"string"},
1836 Format: "",
1837 },
1838 },
1839 },
1840 },
1841 },
1842 },
1843 Required: []string{"paths"},
1844 },
1845 },
1846 }
1847 }
1848
1849 func schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref common.ReferenceCallback) common.OpenAPIDefinition {
1850 return common.OpenAPIDefinition{
1851 Schema: spec.Schema{
1852 SchemaProps: spec.SchemaProps{
1853 Description: "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.",
1854 Type: []string{"object"},
1855 Properties: map[string]spec.Schema{
1856 "clientCIDR": {
1857 SchemaProps: spec.SchemaProps{
1858 Description: "The CIDR with which clients can match their IP to figure out the server address that they should use.",
1859 Default: "",
1860 Type: []string{"string"},
1861 Format: "",
1862 },
1863 },
1864 "serverAddress": {
1865 SchemaProps: spec.SchemaProps{
1866 Description: "Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.",
1867 Default: "",
1868 Type: []string{"string"},
1869 Format: "",
1870 },
1871 },
1872 },
1873 Required: []string{"clientCIDR", "serverAddress"},
1874 },
1875 },
1876 }
1877 }
1878
1879 func schema_pkg_apis_meta_v1_Status(ref common.ReferenceCallback) common.OpenAPIDefinition {
1880 return common.OpenAPIDefinition{
1881 Schema: spec.Schema{
1882 SchemaProps: spec.SchemaProps{
1883 Description: "Status is a return value for calls that don't return other objects.",
1884 Type: []string{"object"},
1885 Properties: map[string]spec.Schema{
1886 "kind": {
1887 SchemaProps: spec.SchemaProps{
1888 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
1889 Type: []string{"string"},
1890 Format: "",
1891 },
1892 },
1893 "apiVersion": {
1894 SchemaProps: spec.SchemaProps{
1895 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
1896 Type: []string{"string"},
1897 Format: "",
1898 },
1899 },
1900 "metadata": {
1901 SchemaProps: spec.SchemaProps{
1902 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
1903 Default: map[string]interface{}{},
1904 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"),
1905 },
1906 },
1907 "status": {
1908 SchemaProps: spec.SchemaProps{
1909 Description: "Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status",
1910 Type: []string{"string"},
1911 Format: "",
1912 },
1913 },
1914 "message": {
1915 SchemaProps: spec.SchemaProps{
1916 Description: "A human-readable description of the status of this operation.",
1917 Type: []string{"string"},
1918 Format: "",
1919 },
1920 },
1921 "reason": {
1922 SchemaProps: spec.SchemaProps{
1923 Description: "A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.",
1924 Type: []string{"string"},
1925 Format: "",
1926 },
1927 },
1928 "details": {
1929 VendorExtensible: spec.VendorExtensible{
1930 Extensions: spec.Extensions{
1931 "x-kubernetes-list-type": "atomic",
1932 },
1933 },
1934 SchemaProps: spec.SchemaProps{
1935 Description: "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type.",
1936 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails"),
1937 },
1938 },
1939 "code": {
1940 SchemaProps: spec.SchemaProps{
1941 Description: "Suggested HTTP return code for this status, 0 if not set.",
1942 Type: []string{"integer"},
1943 Format: "int32",
1944 },
1945 },
1946 },
1947 },
1948 },
1949 Dependencies: []string{
1950 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails"},
1951 }
1952 }
1953
1954 func schema_pkg_apis_meta_v1_StatusCause(ref common.ReferenceCallback) common.OpenAPIDefinition {
1955 return common.OpenAPIDefinition{
1956 Schema: spec.Schema{
1957 SchemaProps: spec.SchemaProps{
1958 Description: "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.",
1959 Type: []string{"object"},
1960 Properties: map[string]spec.Schema{
1961 "reason": {
1962 SchemaProps: spec.SchemaProps{
1963 Description: "A machine-readable description of the cause of the error. If this value is empty there is no information available.",
1964 Type: []string{"string"},
1965 Format: "",
1966 },
1967 },
1968 "message": {
1969 SchemaProps: spec.SchemaProps{
1970 Description: "A human-readable description of the cause of the error. This field may be presented as-is to a reader.",
1971 Type: []string{"string"},
1972 Format: "",
1973 },
1974 },
1975 "field": {
1976 SchemaProps: spec.SchemaProps{
1977 Description: "The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"",
1978 Type: []string{"string"},
1979 Format: "",
1980 },
1981 },
1982 },
1983 },
1984 },
1985 }
1986 }
1987
1988 func schema_pkg_apis_meta_v1_StatusDetails(ref common.ReferenceCallback) common.OpenAPIDefinition {
1989 return common.OpenAPIDefinition{
1990 Schema: spec.Schema{
1991 SchemaProps: spec.SchemaProps{
1992 Description: "StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.",
1993 Type: []string{"object"},
1994 Properties: map[string]spec.Schema{
1995 "name": {
1996 SchemaProps: spec.SchemaProps{
1997 Description: "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).",
1998 Type: []string{"string"},
1999 Format: "",
2000 },
2001 },
2002 "group": {
2003 SchemaProps: spec.SchemaProps{
2004 Description: "The group attribute of the resource associated with the status StatusReason.",
2005 Type: []string{"string"},
2006 Format: "",
2007 },
2008 },
2009 "kind": {
2010 SchemaProps: spec.SchemaProps{
2011 Description: "The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
2012 Type: []string{"string"},
2013 Format: "",
2014 },
2015 },
2016 "uid": {
2017 SchemaProps: spec.SchemaProps{
2018 Description: "UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids",
2019 Type: []string{"string"},
2020 Format: "",
2021 },
2022 },
2023 "causes": {
2024 VendorExtensible: spec.VendorExtensible{
2025 Extensions: spec.Extensions{
2026 "x-kubernetes-list-type": "atomic",
2027 },
2028 },
2029 SchemaProps: spec.SchemaProps{
2030 Description: "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.",
2031 Type: []string{"array"},
2032 Items: &spec.SchemaOrArray{
2033 Schema: &spec.Schema{
2034 SchemaProps: spec.SchemaProps{
2035 Default: map[string]interface{}{},
2036 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause"),
2037 },
2038 },
2039 },
2040 },
2041 },
2042 "retryAfterSeconds": {
2043 SchemaProps: spec.SchemaProps{
2044 Description: "If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.",
2045 Type: []string{"integer"},
2046 Format: "int32",
2047 },
2048 },
2049 },
2050 },
2051 },
2052 Dependencies: []string{
2053 "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause"},
2054 }
2055 }
2056
2057 func schema_pkg_apis_meta_v1_Table(ref common.ReferenceCallback) common.OpenAPIDefinition {
2058 return common.OpenAPIDefinition{
2059 Schema: spec.Schema{
2060 SchemaProps: spec.SchemaProps{
2061 Description: "Table is a tabular representation of a set of API resources. The server transforms the object into a set of preferred columns for quickly reviewing the objects.",
2062 Type: []string{"object"},
2063 Properties: map[string]spec.Schema{
2064 "kind": {
2065 SchemaProps: spec.SchemaProps{
2066 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
2067 Type: []string{"string"},
2068 Format: "",
2069 },
2070 },
2071 "apiVersion": {
2072 SchemaProps: spec.SchemaProps{
2073 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
2074 Type: []string{"string"},
2075 Format: "",
2076 },
2077 },
2078 "metadata": {
2079 SchemaProps: spec.SchemaProps{
2080 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
2081 Default: map[string]interface{}{},
2082 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"),
2083 },
2084 },
2085 "columnDefinitions": {
2086 VendorExtensible: spec.VendorExtensible{
2087 Extensions: spec.Extensions{
2088 "x-kubernetes-list-type": "atomic",
2089 },
2090 },
2091 SchemaProps: spec.SchemaProps{
2092 Description: "columnDefinitions describes each column in the returned items array. The number of cells per row will always match the number of column definitions.",
2093 Type: []string{"array"},
2094 Items: &spec.SchemaOrArray{
2095 Schema: &spec.Schema{
2096 SchemaProps: spec.SchemaProps{
2097 Default: map[string]interface{}{},
2098 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition"),
2099 },
2100 },
2101 },
2102 },
2103 },
2104 "rows": {
2105 VendorExtensible: spec.VendorExtensible{
2106 Extensions: spec.Extensions{
2107 "x-kubernetes-list-type": "atomic",
2108 },
2109 },
2110 SchemaProps: spec.SchemaProps{
2111 Description: "rows is the list of items in the table.",
2112 Type: []string{"array"},
2113 Items: &spec.SchemaOrArray{
2114 Schema: &spec.Schema{
2115 SchemaProps: spec.SchemaProps{
2116 Default: map[string]interface{}{},
2117 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableRow"),
2118 },
2119 },
2120 },
2121 },
2122 },
2123 },
2124 Required: []string{"columnDefinitions", "rows"},
2125 },
2126 },
2127 Dependencies: []string{
2128 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition", "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow"},
2129 }
2130 }
2131
2132 func schema_pkg_apis_meta_v1_TableColumnDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition {
2133 return common.OpenAPIDefinition{
2134 Schema: spec.Schema{
2135 SchemaProps: spec.SchemaProps{
2136 Description: "TableColumnDefinition contains information about a column returned in the Table.",
2137 Type: []string{"object"},
2138 Properties: map[string]spec.Schema{
2139 "name": {
2140 SchemaProps: spec.SchemaProps{
2141 Description: "name is a human readable name for the column.",
2142 Default: "",
2143 Type: []string{"string"},
2144 Format: "",
2145 },
2146 },
2147 "type": {
2148 SchemaProps: spec.SchemaProps{
2149 Description: "type is an OpenAPI type definition for this column, such as number, integer, string, or array. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.",
2150 Default: "",
2151 Type: []string{"string"},
2152 Format: "",
2153 },
2154 },
2155 "format": {
2156 SchemaProps: spec.SchemaProps{
2157 Description: "format is an optional OpenAPI type modifier for this column. A format modifies the type and imposes additional rules, like date or time formatting for a string. The 'name' format is applied to the primary identifier column which has type 'string' to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.",
2158 Default: "",
2159 Type: []string{"string"},
2160 Format: "",
2161 },
2162 },
2163 "description": {
2164 SchemaProps: spec.SchemaProps{
2165 Description: "description is a human readable description of this column.",
2166 Default: "",
2167 Type: []string{"string"},
2168 Format: "",
2169 },
2170 },
2171 "priority": {
2172 SchemaProps: spec.SchemaProps{
2173 Description: "priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a higher priority.",
2174 Default: 0,
2175 Type: []string{"integer"},
2176 Format: "int32",
2177 },
2178 },
2179 },
2180 Required: []string{"name", "type", "format", "description", "priority"},
2181 },
2182 },
2183 }
2184 }
2185
2186 func schema_pkg_apis_meta_v1_TableOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
2187 return common.OpenAPIDefinition{
2188 Schema: spec.Schema{
2189 SchemaProps: spec.SchemaProps{
2190 Description: "TableOptions are used when a Table is requested by the caller.",
2191 Type: []string{"object"},
2192 Properties: map[string]spec.Schema{
2193 "kind": {
2194 SchemaProps: spec.SchemaProps{
2195 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
2196 Type: []string{"string"},
2197 Format: "",
2198 },
2199 },
2200 "apiVersion": {
2201 SchemaProps: spec.SchemaProps{
2202 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
2203 Type: []string{"string"},
2204 Format: "",
2205 },
2206 },
2207 "includeObject": {
2208 SchemaProps: spec.SchemaProps{
2209 Description: "includeObject decides whether to include each object along with its columnar information. Specifying \"None\" will return no object, specifying \"Object\" will return the full object contents, and specifying \"Metadata\" (the default) will return the object's metadata in the PartialObjectMetadata kind in version v1beta1 of the meta.k8s.io API group.",
2210 Type: []string{"string"},
2211 Format: "",
2212 },
2213 },
2214 },
2215 },
2216 },
2217 }
2218 }
2219
2220 func schema_pkg_apis_meta_v1_TableRow(ref common.ReferenceCallback) common.OpenAPIDefinition {
2221 return common.OpenAPIDefinition{
2222 Schema: spec.Schema{
2223 SchemaProps: spec.SchemaProps{
2224 Description: "TableRow is an individual row in a table.",
2225 Type: []string{"object"},
2226 Properties: map[string]spec.Schema{
2227 "cells": {
2228 VendorExtensible: spec.VendorExtensible{
2229 Extensions: spec.Extensions{
2230 "x-kubernetes-list-type": "atomic",
2231 },
2232 },
2233 SchemaProps: spec.SchemaProps{
2234 Description: "cells will be as wide as the column definitions array and may contain strings, numbers (float64 or int64), booleans, simple maps, lists, or null. See the type field of the column definition for a more detailed description.",
2235 Type: []string{"array"},
2236 Items: &spec.SchemaOrArray{
2237 Schema: &spec.Schema{
2238 SchemaProps: spec.SchemaProps{
2239 Type: []string{"object"},
2240 Format: "",
2241 },
2242 },
2243 },
2244 },
2245 },
2246 "conditions": {
2247 VendorExtensible: spec.VendorExtensible{
2248 Extensions: spec.Extensions{
2249 "x-kubernetes-list-type": "atomic",
2250 },
2251 },
2252 SchemaProps: spec.SchemaProps{
2253 Description: "conditions describe additional status of a row that are relevant for a human user. These conditions apply to the row, not to the object, and will be specific to table output. The only defined condition type is 'Completed', for a row that indicates a resource that has run to completion and can be given less visual priority.",
2254 Type: []string{"array"},
2255 Items: &spec.SchemaOrArray{
2256 Schema: &spec.Schema{
2257 SchemaProps: spec.SchemaProps{
2258 Default: map[string]interface{}{},
2259 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition"),
2260 },
2261 },
2262 },
2263 },
2264 },
2265 "object": {
2266 SchemaProps: spec.SchemaProps{
2267 Description: "This field contains the requested additional information about each object based on the includeObject policy when requesting the Table. If \"None\", this field is empty, if \"Object\" this will be the default serialization of the object for the current API version, and if \"Metadata\" (the default) will contain the object metadata. Check the returned kind and apiVersion of the object before parsing. The media type of the object will always match the enclosing list - if this as a JSON table, these will be JSON encoded objects.",
2268 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"),
2269 },
2270 },
2271 },
2272 Required: []string{"cells"},
2273 },
2274 },
2275 Dependencies: []string{
2276 "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition", "k8s.io/apimachinery/pkg/runtime.RawExtension"},
2277 }
2278 }
2279
2280 func schema_pkg_apis_meta_v1_TableRowCondition(ref common.ReferenceCallback) common.OpenAPIDefinition {
2281 return common.OpenAPIDefinition{
2282 Schema: spec.Schema{
2283 SchemaProps: spec.SchemaProps{
2284 Description: "TableRowCondition allows a row to be marked with additional information.",
2285 Type: []string{"object"},
2286 Properties: map[string]spec.Schema{
2287 "type": {
2288 SchemaProps: spec.SchemaProps{
2289 Description: "Type of row condition. The only defined value is 'Completed' indicating that the object this row represents has reached a completed state and may be given less visual priority than other rows. Clients are not required to honor any conditions but should be consistent where possible about handling the conditions.",
2290 Default: "",
2291 Type: []string{"string"},
2292 Format: "",
2293 },
2294 },
2295 "status": {
2296 SchemaProps: spec.SchemaProps{
2297 Description: "Status of the condition, one of True, False, Unknown.",
2298 Default: "",
2299 Type: []string{"string"},
2300 Format: "",
2301 },
2302 },
2303 "reason": {
2304 SchemaProps: spec.SchemaProps{
2305 Description: "(brief) machine readable reason for the condition's last transition.",
2306 Type: []string{"string"},
2307 Format: "",
2308 },
2309 },
2310 "message": {
2311 SchemaProps: spec.SchemaProps{
2312 Description: "Human readable message indicating details about last transition.",
2313 Type: []string{"string"},
2314 Format: "",
2315 },
2316 },
2317 },
2318 Required: []string{"type", "status"},
2319 },
2320 },
2321 }
2322 }
2323
2324 func schema_pkg_apis_meta_v1_Time(ref common.ReferenceCallback) common.OpenAPIDefinition {
2325 return common.OpenAPIDefinition{
2326 Schema: spec.Schema{
2327 SchemaProps: spec.SchemaProps{
2328 Description: "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.",
2329 Type: v1.Time{}.OpenAPISchemaType(),
2330 Format: v1.Time{}.OpenAPISchemaFormat(),
2331 },
2332 },
2333 }
2334 }
2335
2336 func schema_pkg_apis_meta_v1_Timestamp(ref common.ReferenceCallback) common.OpenAPIDefinition {
2337 return common.OpenAPIDefinition{
2338 Schema: spec.Schema{
2339 SchemaProps: spec.SchemaProps{
2340 Description: "Timestamp is a struct that is equivalent to Time, but intended for protobuf marshalling/unmarshalling. It is generated into a serialization that matches Time. Do not use in Go structs.",
2341 Type: []string{"object"},
2342 Properties: map[string]spec.Schema{
2343 "seconds": {
2344 SchemaProps: spec.SchemaProps{
2345 Description: "Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.",
2346 Default: 0,
2347 Type: []string{"integer"},
2348 Format: "int64",
2349 },
2350 },
2351 "nanos": {
2352 SchemaProps: spec.SchemaProps{
2353 Description: "Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive. This field may be limited in precision depending on context.",
2354 Default: 0,
2355 Type: []string{"integer"},
2356 Format: "int32",
2357 },
2358 },
2359 },
2360 Required: []string{"seconds", "nanos"},
2361 },
2362 },
2363 }
2364 }
2365
2366 func schema_pkg_apis_meta_v1_TypeMeta(ref common.ReferenceCallback) common.OpenAPIDefinition {
2367 return common.OpenAPIDefinition{
2368 Schema: spec.Schema{
2369 SchemaProps: spec.SchemaProps{
2370 Description: "TypeMeta describes an individual object in an API response or request with strings representing the type of the object and its API schema version. Structures that are versioned or persisted should inline TypeMeta.",
2371 Type: []string{"object"},
2372 Properties: map[string]spec.Schema{
2373 "kind": {
2374 SchemaProps: spec.SchemaProps{
2375 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
2376 Type: []string{"string"},
2377 Format: "",
2378 },
2379 },
2380 "apiVersion": {
2381 SchemaProps: spec.SchemaProps{
2382 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
2383 Type: []string{"string"},
2384 Format: "",
2385 },
2386 },
2387 },
2388 },
2389 },
2390 }
2391 }
2392
2393 func schema_pkg_apis_meta_v1_UpdateOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
2394 return common.OpenAPIDefinition{
2395 Schema: spec.Schema{
2396 SchemaProps: spec.SchemaProps{
2397 Description: "UpdateOptions may be provided when updating an API object. All fields in UpdateOptions should also be present in PatchOptions.",
2398 Type: []string{"object"},
2399 Properties: map[string]spec.Schema{
2400 "kind": {
2401 SchemaProps: spec.SchemaProps{
2402 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
2403 Type: []string{"string"},
2404 Format: "",
2405 },
2406 },
2407 "apiVersion": {
2408 SchemaProps: spec.SchemaProps{
2409 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
2410 Type: []string{"string"},
2411 Format: "",
2412 },
2413 },
2414 "dryRun": {
2415 VendorExtensible: spec.VendorExtensible{
2416 Extensions: spec.Extensions{
2417 "x-kubernetes-list-type": "atomic",
2418 },
2419 },
2420 SchemaProps: spec.SchemaProps{
2421 Description: "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
2422 Type: []string{"array"},
2423 Items: &spec.SchemaOrArray{
2424 Schema: &spec.Schema{
2425 SchemaProps: spec.SchemaProps{
2426 Default: "",
2427 Type: []string{"string"},
2428 Format: "",
2429 },
2430 },
2431 },
2432 },
2433 },
2434 "fieldManager": {
2435 SchemaProps: spec.SchemaProps{
2436 Description: "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.",
2437 Type: []string{"string"},
2438 Format: "",
2439 },
2440 },
2441 "fieldValidation": {
2442 SchemaProps: spec.SchemaProps{
2443 Description: "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.",
2444 Type: []string{"string"},
2445 Format: "",
2446 },
2447 },
2448 },
2449 },
2450 },
2451 }
2452 }
2453
2454 func schema_pkg_apis_meta_v1_WatchEvent(ref common.ReferenceCallback) common.OpenAPIDefinition {
2455 return common.OpenAPIDefinition{
2456 Schema: spec.Schema{
2457 SchemaProps: spec.SchemaProps{
2458 Description: "Event represents a single event to a watched resource.",
2459 Type: []string{"object"},
2460 Properties: map[string]spec.Schema{
2461 "type": {
2462 SchemaProps: spec.SchemaProps{
2463 Default: "",
2464 Type: []string{"string"},
2465 Format: "",
2466 },
2467 },
2468 "object": {
2469 SchemaProps: spec.SchemaProps{
2470 Description: "Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *Status is recommended; other types may make sense\n depending on context.",
2471 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"),
2472 },
2473 },
2474 },
2475 Required: []string{"type", "object"},
2476 },
2477 },
2478 Dependencies: []string{
2479 "k8s.io/apimachinery/pkg/runtime.RawExtension"},
2480 }
2481 }
2482
2483 func schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref common.ReferenceCallback) common.OpenAPIDefinition {
2484 return common.OpenAPIDefinition{
2485 Schema: spec.Schema{
2486 SchemaProps: spec.SchemaProps{
2487 Description: "RawExtension is used to hold extensions in external versions.\n\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\n\n// Internal package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.Object `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// External package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.RawExtension `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// On the wire, the JSON will look something like this:\n\n\t{\n\t\t\"kind\":\"MyAPIObject\",\n\t\t\"apiVersion\":\"v1\",\n\t\t\"myPlugin\": {\n\t\t\t\"kind\":\"PluginA\",\n\t\t\t\"aOption\":\"foo\",\n\t\t},\n\t}\n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)",
2488 Type: []string{"object"},
2489 },
2490 },
2491 }
2492 }
2493
2494 func schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref common.ReferenceCallback) common.OpenAPIDefinition {
2495 return common.OpenAPIDefinition{
2496 Schema: spec.Schema{
2497 SchemaProps: spec.SchemaProps{
2498 Description: "TypeMeta is shared by all top level objects. The proper way to use it is to inline it in your type, like this:\n\n\ttype MyAwesomeAPIObject struct {\n\t runtime.TypeMeta `json:\",inline\"`\n\t ... // other fields\n\t}\n\nfunc (obj *MyAwesomeAPIObject) SetGroupVersionKind(gvk *metav1.GroupVersionKind) { metav1.UpdateTypeMeta(obj,gvk) }; GroupVersionKind() *GroupVersionKind\n\nTypeMeta is provided here for convenience. You may use it directly from this package or define your own with the same fields.",
2499 Type: []string{"object"},
2500 Properties: map[string]spec.Schema{
2501 "apiVersion": {
2502 SchemaProps: spec.SchemaProps{
2503 Type: []string{"string"},
2504 Format: "",
2505 },
2506 },
2507 "kind": {
2508 SchemaProps: spec.SchemaProps{
2509 Type: []string{"string"},
2510 Format: "",
2511 },
2512 },
2513 },
2514 },
2515 },
2516 }
2517 }
2518
2519 func schema_k8sio_apimachinery_pkg_runtime_Unknown(ref common.ReferenceCallback) common.OpenAPIDefinition {
2520 return common.OpenAPIDefinition{
2521 Schema: spec.Schema{
2522 SchemaProps: spec.SchemaProps{
2523 Description: "Unknown allows api objects with unknown types to be passed-through. This can be used to deal with the API objects from a plug-in. Unknown objects still have functioning TypeMeta features-- kind, version, etc. metadata and field mutatation.",
2524 Type: []string{"object"},
2525 Properties: map[string]spec.Schema{
2526 "apiVersion": {
2527 SchemaProps: spec.SchemaProps{
2528 Type: []string{"string"},
2529 Format: "",
2530 },
2531 },
2532 "kind": {
2533 SchemaProps: spec.SchemaProps{
2534 Type: []string{"string"},
2535 Format: "",
2536 },
2537 },
2538 "ContentEncoding": {
2539 SchemaProps: spec.SchemaProps{
2540 Description: "ContentEncoding is encoding used to encode 'Raw' data. Unspecified means no encoding.",
2541 Default: "",
2542 Type: []string{"string"},
2543 Format: "",
2544 },
2545 },
2546 "ContentType": {
2547 SchemaProps: spec.SchemaProps{
2548 Description: "ContentType is serialization method used to serialize 'Raw'. Unspecified means ContentTypeJSON.",
2549 Default: "",
2550 Type: []string{"string"},
2551 Format: "",
2552 },
2553 },
2554 },
2555 Required: []string{"ContentEncoding", "ContentType"},
2556 },
2557 },
2558 }
2559 }
2560
2561 func schema_k8sio_apimachinery_pkg_version_Info(ref common.ReferenceCallback) common.OpenAPIDefinition {
2562 return common.OpenAPIDefinition{
2563 Schema: spec.Schema{
2564 SchemaProps: spec.SchemaProps{
2565 Description: "Info contains versioning information. how we'll want to distribute that information.",
2566 Type: []string{"object"},
2567 Properties: map[string]spec.Schema{
2568 "major": {
2569 SchemaProps: spec.SchemaProps{
2570 Default: "",
2571 Type: []string{"string"},
2572 Format: "",
2573 },
2574 },
2575 "minor": {
2576 SchemaProps: spec.SchemaProps{
2577 Default: "",
2578 Type: []string{"string"},
2579 Format: "",
2580 },
2581 },
2582 "gitVersion": {
2583 SchemaProps: spec.SchemaProps{
2584 Default: "",
2585 Type: []string{"string"},
2586 Format: "",
2587 },
2588 },
2589 "gitCommit": {
2590 SchemaProps: spec.SchemaProps{
2591 Default: "",
2592 Type: []string{"string"},
2593 Format: "",
2594 },
2595 },
2596 "gitTreeState": {
2597 SchemaProps: spec.SchemaProps{
2598 Default: "",
2599 Type: []string{"string"},
2600 Format: "",
2601 },
2602 },
2603 "buildDate": {
2604 SchemaProps: spec.SchemaProps{
2605 Default: "",
2606 Type: []string{"string"},
2607 Format: "",
2608 },
2609 },
2610 "goVersion": {
2611 SchemaProps: spec.SchemaProps{
2612 Default: "",
2613 Type: []string{"string"},
2614 Format: "",
2615 },
2616 },
2617 "compiler": {
2618 SchemaProps: spec.SchemaProps{
2619 Default: "",
2620 Type: []string{"string"},
2621 Format: "",
2622 },
2623 },
2624 "platform": {
2625 SchemaProps: spec.SchemaProps{
2626 Default: "",
2627 Type: []string{"string"},
2628 Format: "",
2629 },
2630 },
2631 },
2632 Required: []string{"major", "minor", "gitVersion", "gitCommit", "gitTreeState", "buildDate", "goVersion", "compiler", "platform"},
2633 },
2634 },
2635 }
2636 }
2637
2638 func schema_pkg_apis_apiregistration_v1_APIService(ref common.ReferenceCallback) common.OpenAPIDefinition {
2639 return common.OpenAPIDefinition{
2640 Schema: spec.Schema{
2641 SchemaProps: spec.SchemaProps{
2642 Description: "APIService represents a server for a particular GroupVersion. Name must be \"version.group\".",
2643 Type: []string{"object"},
2644 Properties: map[string]spec.Schema{
2645 "kind": {
2646 SchemaProps: spec.SchemaProps{
2647 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
2648 Type: []string{"string"},
2649 Format: "",
2650 },
2651 },
2652 "apiVersion": {
2653 SchemaProps: spec.SchemaProps{
2654 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
2655 Type: []string{"string"},
2656 Format: "",
2657 },
2658 },
2659 "metadata": {
2660 SchemaProps: spec.SchemaProps{
2661 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
2662 Default: map[string]interface{}{},
2663 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"),
2664 },
2665 },
2666 "spec": {
2667 SchemaProps: spec.SchemaProps{
2668 Description: "Spec contains information for locating and communicating with a server",
2669 Default: map[string]interface{}{},
2670 Ref: ref("k8s.io/kube-aggregator/pkg/apis/apiregistration/v1.APIServiceSpec"),
2671 },
2672 },
2673 "status": {
2674 SchemaProps: spec.SchemaProps{
2675 Description: "Status contains derived information about an API server",
2676 Default: map[string]interface{}{},
2677 Ref: ref("k8s.io/kube-aggregator/pkg/apis/apiregistration/v1.APIServiceStatus"),
2678 },
2679 },
2680 },
2681 },
2682 },
2683 Dependencies: []string{
2684 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1.APIServiceSpec", "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1.APIServiceStatus"},
2685 }
2686 }
2687
2688 func schema_pkg_apis_apiregistration_v1_APIServiceCondition(ref common.ReferenceCallback) common.OpenAPIDefinition {
2689 return common.OpenAPIDefinition{
2690 Schema: spec.Schema{
2691 SchemaProps: spec.SchemaProps{
2692 Description: "APIServiceCondition describes the state of an APIService at a particular point",
2693 Type: []string{"object"},
2694 Properties: map[string]spec.Schema{
2695 "type": {
2696 SchemaProps: spec.SchemaProps{
2697 Description: "Type is the type of the condition.",
2698 Default: "",
2699 Type: []string{"string"},
2700 Format: "",
2701 },
2702 },
2703 "status": {
2704 SchemaProps: spec.SchemaProps{
2705 Description: "Status is the status of the condition. Can be True, False, Unknown.",
2706 Default: "",
2707 Type: []string{"string"},
2708 Format: "",
2709 },
2710 },
2711 "lastTransitionTime": {
2712 SchemaProps: spec.SchemaProps{
2713 Description: "Last time the condition transitioned from one status to another.",
2714 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
2715 },
2716 },
2717 "reason": {
2718 SchemaProps: spec.SchemaProps{
2719 Description: "Unique, one-word, CamelCase reason for the condition's last transition.",
2720 Type: []string{"string"},
2721 Format: "",
2722 },
2723 },
2724 "message": {
2725 SchemaProps: spec.SchemaProps{
2726 Description: "Human-readable message indicating details about last transition.",
2727 Type: []string{"string"},
2728 Format: "",
2729 },
2730 },
2731 },
2732 Required: []string{"type", "status"},
2733 },
2734 },
2735 Dependencies: []string{
2736 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
2737 }
2738 }
2739
2740 func schema_pkg_apis_apiregistration_v1_APIServiceList(ref common.ReferenceCallback) common.OpenAPIDefinition {
2741 return common.OpenAPIDefinition{
2742 Schema: spec.Schema{
2743 SchemaProps: spec.SchemaProps{
2744 Description: "APIServiceList is a list of APIService objects.",
2745 Type: []string{"object"},
2746 Properties: map[string]spec.Schema{
2747 "kind": {
2748 SchemaProps: spec.SchemaProps{
2749 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
2750 Type: []string{"string"},
2751 Format: "",
2752 },
2753 },
2754 "apiVersion": {
2755 SchemaProps: spec.SchemaProps{
2756 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
2757 Type: []string{"string"},
2758 Format: "",
2759 },
2760 },
2761 "metadata": {
2762 SchemaProps: spec.SchemaProps{
2763 Description: "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
2764 Default: map[string]interface{}{},
2765 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"),
2766 },
2767 },
2768 "items": {
2769 SchemaProps: spec.SchemaProps{
2770 Description: "Items is the list of APIService",
2771 Type: []string{"array"},
2772 Items: &spec.SchemaOrArray{
2773 Schema: &spec.Schema{
2774 SchemaProps: spec.SchemaProps{
2775 Default: map[string]interface{}{},
2776 Ref: ref("k8s.io/kube-aggregator/pkg/apis/apiregistration/v1.APIService"),
2777 },
2778 },
2779 },
2780 },
2781 },
2782 },
2783 Required: []string{"items"},
2784 },
2785 },
2786 Dependencies: []string{
2787 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1.APIService"},
2788 }
2789 }
2790
2791 func schema_pkg_apis_apiregistration_v1_APIServiceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
2792 return common.OpenAPIDefinition{
2793 Schema: spec.Schema{
2794 SchemaProps: spec.SchemaProps{
2795 Description: "APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification.",
2796 Type: []string{"object"},
2797 Properties: map[string]spec.Schema{
2798 "service": {
2799 SchemaProps: spec.SchemaProps{
2800 Description: "Service is a reference to the service for this API server. It must communicate on port 443. If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled.",
2801 Ref: ref("k8s.io/kube-aggregator/pkg/apis/apiregistration/v1.ServiceReference"),
2802 },
2803 },
2804 "group": {
2805 SchemaProps: spec.SchemaProps{
2806 Description: "Group is the API group name this server hosts",
2807 Type: []string{"string"},
2808 Format: "",
2809 },
2810 },
2811 "version": {
2812 SchemaProps: spec.SchemaProps{
2813 Description: "Version is the API version this server hosts. For example, \"v1\"",
2814 Type: []string{"string"},
2815 Format: "",
2816 },
2817 },
2818 "insecureSkipTLSVerify": {
2819 SchemaProps: spec.SchemaProps{
2820 Description: "InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead.",
2821 Type: []string{"boolean"},
2822 Format: "",
2823 },
2824 },
2825 "caBundle": {
2826 VendorExtensible: spec.VendorExtensible{
2827 Extensions: spec.Extensions{
2828 "x-kubernetes-list-type": "atomic",
2829 },
2830 },
2831 SchemaProps: spec.SchemaProps{
2832 Description: "CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used.",
2833 Type: []string{"string"},
2834 Format: "byte",
2835 },
2836 },
2837 "groupPriorityMinimum": {
2838 SchemaProps: spec.SchemaProps{
2839 Description: "GroupPriorityMinimum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMinimum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s",
2840 Default: 0,
2841 Type: []string{"integer"},
2842 Format: "int32",
2843 },
2844 },
2845 "versionPriority": {
2846 SchemaProps: spec.SchemaProps{
2847 Description: "VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.",
2848 Default: 0,
2849 Type: []string{"integer"},
2850 Format: "int32",
2851 },
2852 },
2853 },
2854 Required: []string{"groupPriorityMinimum", "versionPriority"},
2855 },
2856 },
2857 Dependencies: []string{
2858 "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1.ServiceReference"},
2859 }
2860 }
2861
2862 func schema_pkg_apis_apiregistration_v1_APIServiceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
2863 return common.OpenAPIDefinition{
2864 Schema: spec.Schema{
2865 SchemaProps: spec.SchemaProps{
2866 Description: "APIServiceStatus contains derived information about an API server",
2867 Type: []string{"object"},
2868 Properties: map[string]spec.Schema{
2869 "conditions": {
2870 VendorExtensible: spec.VendorExtensible{
2871 Extensions: spec.Extensions{
2872 "x-kubernetes-list-map-keys": []interface{}{
2873 "type",
2874 },
2875 "x-kubernetes-list-type": "map",
2876 "x-kubernetes-patch-merge-key": "type",
2877 "x-kubernetes-patch-strategy": "merge",
2878 },
2879 },
2880 SchemaProps: spec.SchemaProps{
2881 Description: "Current service state of apiService.",
2882 Type: []string{"array"},
2883 Items: &spec.SchemaOrArray{
2884 Schema: &spec.Schema{
2885 SchemaProps: spec.SchemaProps{
2886 Default: map[string]interface{}{},
2887 Ref: ref("k8s.io/kube-aggregator/pkg/apis/apiregistration/v1.APIServiceCondition"),
2888 },
2889 },
2890 },
2891 },
2892 },
2893 },
2894 },
2895 },
2896 Dependencies: []string{
2897 "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1.APIServiceCondition"},
2898 }
2899 }
2900
2901 func schema_pkg_apis_apiregistration_v1_ServiceReference(ref common.ReferenceCallback) common.OpenAPIDefinition {
2902 return common.OpenAPIDefinition{
2903 Schema: spec.Schema{
2904 SchemaProps: spec.SchemaProps{
2905 Description: "ServiceReference holds a reference to Service.legacy.k8s.io",
2906 Type: []string{"object"},
2907 Properties: map[string]spec.Schema{
2908 "namespace": {
2909 SchemaProps: spec.SchemaProps{
2910 Description: "Namespace is the namespace of the service",
2911 Type: []string{"string"},
2912 Format: "",
2913 },
2914 },
2915 "name": {
2916 SchemaProps: spec.SchemaProps{
2917 Description: "Name is the name of the service",
2918 Type: []string{"string"},
2919 Format: "",
2920 },
2921 },
2922 "port": {
2923 SchemaProps: spec.SchemaProps{
2924 Description: "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).",
2925 Type: []string{"integer"},
2926 Format: "int32",
2927 },
2928 },
2929 },
2930 },
2931 },
2932 }
2933 }
2934
2935 func schema_pkg_apis_apiregistration_v1beta1_APIService(ref common.ReferenceCallback) common.OpenAPIDefinition {
2936 return common.OpenAPIDefinition{
2937 Schema: spec.Schema{
2938 SchemaProps: spec.SchemaProps{
2939 Description: "APIService represents a server for a particular GroupVersion. Name must be \"version.group\".",
2940 Type: []string{"object"},
2941 Properties: map[string]spec.Schema{
2942 "kind": {
2943 SchemaProps: spec.SchemaProps{
2944 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
2945 Type: []string{"string"},
2946 Format: "",
2947 },
2948 },
2949 "apiVersion": {
2950 SchemaProps: spec.SchemaProps{
2951 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
2952 Type: []string{"string"},
2953 Format: "",
2954 },
2955 },
2956 "metadata": {
2957 SchemaProps: spec.SchemaProps{
2958 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
2959 Default: map[string]interface{}{},
2960 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"),
2961 },
2962 },
2963 "spec": {
2964 SchemaProps: spec.SchemaProps{
2965 Description: "Spec contains information for locating and communicating with a server",
2966 Default: map[string]interface{}{},
2967 Ref: ref("k8s.io/kube-aggregator/pkg/apis/apiregistration/v1beta1.APIServiceSpec"),
2968 },
2969 },
2970 "status": {
2971 SchemaProps: spec.SchemaProps{
2972 Description: "Status contains derived information about an API server",
2973 Default: map[string]interface{}{},
2974 Ref: ref("k8s.io/kube-aggregator/pkg/apis/apiregistration/v1beta1.APIServiceStatus"),
2975 },
2976 },
2977 },
2978 },
2979 },
2980 Dependencies: []string{
2981 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1beta1.APIServiceSpec", "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1beta1.APIServiceStatus"},
2982 }
2983 }
2984
2985 func schema_pkg_apis_apiregistration_v1beta1_APIServiceCondition(ref common.ReferenceCallback) common.OpenAPIDefinition {
2986 return common.OpenAPIDefinition{
2987 Schema: spec.Schema{
2988 SchemaProps: spec.SchemaProps{
2989 Description: "APIServiceCondition describes the state of an APIService at a particular point",
2990 Type: []string{"object"},
2991 Properties: map[string]spec.Schema{
2992 "type": {
2993 SchemaProps: spec.SchemaProps{
2994 Description: "Type is the type of the condition.",
2995 Default: "",
2996 Type: []string{"string"},
2997 Format: "",
2998 },
2999 },
3000 "status": {
3001 SchemaProps: spec.SchemaProps{
3002 Description: "Status is the status of the condition. Can be True, False, Unknown.",
3003 Default: "",
3004 Type: []string{"string"},
3005 Format: "",
3006 },
3007 },
3008 "lastTransitionTime": {
3009 SchemaProps: spec.SchemaProps{
3010 Description: "Last time the condition transitioned from one status to another.",
3011 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
3012 },
3013 },
3014 "reason": {
3015 SchemaProps: spec.SchemaProps{
3016 Description: "Unique, one-word, CamelCase reason for the condition's last transition.",
3017 Type: []string{"string"},
3018 Format: "",
3019 },
3020 },
3021 "message": {
3022 SchemaProps: spec.SchemaProps{
3023 Description: "Human-readable message indicating details about last transition.",
3024 Type: []string{"string"},
3025 Format: "",
3026 },
3027 },
3028 },
3029 Required: []string{"type", "status"},
3030 },
3031 },
3032 Dependencies: []string{
3033 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
3034 }
3035 }
3036
3037 func schema_pkg_apis_apiregistration_v1beta1_APIServiceList(ref common.ReferenceCallback) common.OpenAPIDefinition {
3038 return common.OpenAPIDefinition{
3039 Schema: spec.Schema{
3040 SchemaProps: spec.SchemaProps{
3041 Description: "APIServiceList is a list of APIService objects.",
3042 Type: []string{"object"},
3043 Properties: map[string]spec.Schema{
3044 "kind": {
3045 SchemaProps: spec.SchemaProps{
3046 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
3047 Type: []string{"string"},
3048 Format: "",
3049 },
3050 },
3051 "apiVersion": {
3052 SchemaProps: spec.SchemaProps{
3053 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
3054 Type: []string{"string"},
3055 Format: "",
3056 },
3057 },
3058 "metadata": {
3059 SchemaProps: spec.SchemaProps{
3060 Description: "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
3061 Default: map[string]interface{}{},
3062 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"),
3063 },
3064 },
3065 "items": {
3066 SchemaProps: spec.SchemaProps{
3067 Description: "Items is the list of APIService",
3068 Type: []string{"array"},
3069 Items: &spec.SchemaOrArray{
3070 Schema: &spec.Schema{
3071 SchemaProps: spec.SchemaProps{
3072 Default: map[string]interface{}{},
3073 Ref: ref("k8s.io/kube-aggregator/pkg/apis/apiregistration/v1beta1.APIService"),
3074 },
3075 },
3076 },
3077 },
3078 },
3079 },
3080 Required: []string{"items"},
3081 },
3082 },
3083 Dependencies: []string{
3084 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1beta1.APIService"},
3085 }
3086 }
3087
3088 func schema_pkg_apis_apiregistration_v1beta1_APIServiceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
3089 return common.OpenAPIDefinition{
3090 Schema: spec.Schema{
3091 SchemaProps: spec.SchemaProps{
3092 Description: "APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification.",
3093 Type: []string{"object"},
3094 Properties: map[string]spec.Schema{
3095 "service": {
3096 SchemaProps: spec.SchemaProps{
3097 Description: "Service is a reference to the service for this API server. It must communicate on port 443. If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled.",
3098 Ref: ref("k8s.io/kube-aggregator/pkg/apis/apiregistration/v1beta1.ServiceReference"),
3099 },
3100 },
3101 "group": {
3102 SchemaProps: spec.SchemaProps{
3103 Description: "Group is the API group name this server hosts",
3104 Type: []string{"string"},
3105 Format: "",
3106 },
3107 },
3108 "version": {
3109 SchemaProps: spec.SchemaProps{
3110 Description: "Version is the API version this server hosts. For example, \"v1\"",
3111 Type: []string{"string"},
3112 Format: "",
3113 },
3114 },
3115 "insecureSkipTLSVerify": {
3116 SchemaProps: spec.SchemaProps{
3117 Description: "InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead.",
3118 Type: []string{"boolean"},
3119 Format: "",
3120 },
3121 },
3122 "caBundle": {
3123 VendorExtensible: spec.VendorExtensible{
3124 Extensions: spec.Extensions{
3125 "x-kubernetes-list-type": "atomic",
3126 },
3127 },
3128 SchemaProps: spec.SchemaProps{
3129 Description: "CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used.",
3130 Type: []string{"string"},
3131 Format: "byte",
3132 },
3133 },
3134 "groupPriorityMinimum": {
3135 SchemaProps: spec.SchemaProps{
3136 Description: "GroupPriorityMinimum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMinimum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s",
3137 Default: 0,
3138 Type: []string{"integer"},
3139 Format: "int32",
3140 },
3141 },
3142 "versionPriority": {
3143 SchemaProps: spec.SchemaProps{
3144 Description: "VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.",
3145 Default: 0,
3146 Type: []string{"integer"},
3147 Format: "int32",
3148 },
3149 },
3150 },
3151 Required: []string{"groupPriorityMinimum", "versionPriority"},
3152 },
3153 },
3154 Dependencies: []string{
3155 "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1beta1.ServiceReference"},
3156 }
3157 }
3158
3159 func schema_pkg_apis_apiregistration_v1beta1_APIServiceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
3160 return common.OpenAPIDefinition{
3161 Schema: spec.Schema{
3162 SchemaProps: spec.SchemaProps{
3163 Description: "APIServiceStatus contains derived information about an API server",
3164 Type: []string{"object"},
3165 Properties: map[string]spec.Schema{
3166 "conditions": {
3167 VendorExtensible: spec.VendorExtensible{
3168 Extensions: spec.Extensions{
3169 "x-kubernetes-list-map-keys": []interface{}{
3170 "type",
3171 },
3172 "x-kubernetes-list-type": "map",
3173 "x-kubernetes-patch-merge-key": "type",
3174 "x-kubernetes-patch-strategy": "merge",
3175 },
3176 },
3177 SchemaProps: spec.SchemaProps{
3178 Description: "Current service state of apiService.",
3179 Type: []string{"array"},
3180 Items: &spec.SchemaOrArray{
3181 Schema: &spec.Schema{
3182 SchemaProps: spec.SchemaProps{
3183 Default: map[string]interface{}{},
3184 Ref: ref("k8s.io/kube-aggregator/pkg/apis/apiregistration/v1beta1.APIServiceCondition"),
3185 },
3186 },
3187 },
3188 },
3189 },
3190 },
3191 },
3192 },
3193 Dependencies: []string{
3194 "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1beta1.APIServiceCondition"},
3195 }
3196 }
3197
3198 func schema_pkg_apis_apiregistration_v1beta1_ServiceReference(ref common.ReferenceCallback) common.OpenAPIDefinition {
3199 return common.OpenAPIDefinition{
3200 Schema: spec.Schema{
3201 SchemaProps: spec.SchemaProps{
3202 Description: "ServiceReference holds a reference to Service.legacy.k8s.io",
3203 Type: []string{"object"},
3204 Properties: map[string]spec.Schema{
3205 "namespace": {
3206 SchemaProps: spec.SchemaProps{
3207 Description: "Namespace is the namespace of the service",
3208 Type: []string{"string"},
3209 Format: "",
3210 },
3211 },
3212 "name": {
3213 SchemaProps: spec.SchemaProps{
3214 Description: "Name is the name of the service",
3215 Type: []string{"string"},
3216 Format: "",
3217 },
3218 },
3219 "port": {
3220 SchemaProps: spec.SchemaProps{
3221 Description: "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).",
3222 Type: []string{"integer"},
3223 Format: "int32",
3224 },
3225 },
3226 },
3227 },
3228 },
3229 }
3230 }
3231
View as plain text