1
2
3
4
19
20
21
22 package openapi
23
24 import (
25 v1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
26 v1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
27 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
28 common "k8s.io/kube-openapi/pkg/common"
29 spec "k8s.io/kube-openapi/pkg/validation/spec"
30 )
31
32 func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition {
33 return map[string]common.OpenAPIDefinition{
34 "k8s.io/api/autoscaling/v1.ContainerResourceMetricSource": schema_k8sio_api_autoscaling_v1_ContainerResourceMetricSource(ref),
35 "k8s.io/api/autoscaling/v1.ContainerResourceMetricStatus": schema_k8sio_api_autoscaling_v1_ContainerResourceMetricStatus(ref),
36 "k8s.io/api/autoscaling/v1.CrossVersionObjectReference": schema_k8sio_api_autoscaling_v1_CrossVersionObjectReference(ref),
37 "k8s.io/api/autoscaling/v1.ExternalMetricSource": schema_k8sio_api_autoscaling_v1_ExternalMetricSource(ref),
38 "k8s.io/api/autoscaling/v1.ExternalMetricStatus": schema_k8sio_api_autoscaling_v1_ExternalMetricStatus(ref),
39 "k8s.io/api/autoscaling/v1.HorizontalPodAutoscaler": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscaler(ref),
40 "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerCondition": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerCondition(ref),
41 "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerList": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerList(ref),
42 "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerSpec": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerSpec(ref),
43 "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerStatus": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerStatus(ref),
44 "k8s.io/api/autoscaling/v1.MetricSpec": schema_k8sio_api_autoscaling_v1_MetricSpec(ref),
45 "k8s.io/api/autoscaling/v1.MetricStatus": schema_k8sio_api_autoscaling_v1_MetricStatus(ref),
46 "k8s.io/api/autoscaling/v1.ObjectMetricSource": schema_k8sio_api_autoscaling_v1_ObjectMetricSource(ref),
47 "k8s.io/api/autoscaling/v1.ObjectMetricStatus": schema_k8sio_api_autoscaling_v1_ObjectMetricStatus(ref),
48 "k8s.io/api/autoscaling/v1.PodsMetricSource": schema_k8sio_api_autoscaling_v1_PodsMetricSource(ref),
49 "k8s.io/api/autoscaling/v1.PodsMetricStatus": schema_k8sio_api_autoscaling_v1_PodsMetricStatus(ref),
50 "k8s.io/api/autoscaling/v1.ResourceMetricSource": schema_k8sio_api_autoscaling_v1_ResourceMetricSource(ref),
51 "k8s.io/api/autoscaling/v1.ResourceMetricStatus": schema_k8sio_api_autoscaling_v1_ResourceMetricStatus(ref),
52 "k8s.io/api/autoscaling/v1.Scale": schema_k8sio_api_autoscaling_v1_Scale(ref),
53 "k8s.io/api/autoscaling/v1.ScaleSpec": schema_k8sio_api_autoscaling_v1_ScaleSpec(ref),
54 "k8s.io/api/autoscaling/v1.ScaleStatus": schema_k8sio_api_autoscaling_v1_ScaleStatus(ref),
55 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.ConversionRequest": schema_pkg_apis_apiextensions_v1_ConversionRequest(ref),
56 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.ConversionResponse": schema_pkg_apis_apiextensions_v1_ConversionResponse(ref),
57 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.ConversionReview": schema_pkg_apis_apiextensions_v1_ConversionReview(ref),
58 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceColumnDefinition": schema_pkg_apis_apiextensions_v1_CustomResourceColumnDefinition(ref),
59 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceConversion": schema_pkg_apis_apiextensions_v1_CustomResourceConversion(ref),
60 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceDefinition": schema_pkg_apis_apiextensions_v1_CustomResourceDefinition(ref),
61 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceDefinitionCondition": schema_pkg_apis_apiextensions_v1_CustomResourceDefinitionCondition(ref),
62 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceDefinitionList": schema_pkg_apis_apiextensions_v1_CustomResourceDefinitionList(ref),
63 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceDefinitionNames": schema_pkg_apis_apiextensions_v1_CustomResourceDefinitionNames(ref),
64 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceDefinitionSpec": schema_pkg_apis_apiextensions_v1_CustomResourceDefinitionSpec(ref),
65 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceDefinitionStatus": schema_pkg_apis_apiextensions_v1_CustomResourceDefinitionStatus(ref),
66 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceDefinitionVersion": schema_pkg_apis_apiextensions_v1_CustomResourceDefinitionVersion(ref),
67 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceSubresourceScale": schema_pkg_apis_apiextensions_v1_CustomResourceSubresourceScale(ref),
68 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceSubresourceStatus": schema_pkg_apis_apiextensions_v1_CustomResourceSubresourceStatus(ref),
69 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceSubresources": schema_pkg_apis_apiextensions_v1_CustomResourceSubresources(ref),
70 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceValidation": schema_pkg_apis_apiextensions_v1_CustomResourceValidation(ref),
71 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.ExternalDocumentation": schema_pkg_apis_apiextensions_v1_ExternalDocumentation(ref),
72 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSON": schema_pkg_apis_apiextensions_v1_JSON(ref),
73 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSONSchemaProps": schema_pkg_apis_apiextensions_v1_JSONSchemaProps(ref),
74 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSONSchemaPropsOrArray": schema_pkg_apis_apiextensions_v1_JSONSchemaPropsOrArray(ref),
75 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSONSchemaPropsOrBool": schema_pkg_apis_apiextensions_v1_JSONSchemaPropsOrBool(ref),
76 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSONSchemaPropsOrStringArray": schema_pkg_apis_apiextensions_v1_JSONSchemaPropsOrStringArray(ref),
77 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.SelectableField": schema_pkg_apis_apiextensions_v1_SelectableField(ref),
78 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.ServiceReference": schema_pkg_apis_apiextensions_v1_ServiceReference(ref),
79 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.ValidationRule": schema_pkg_apis_apiextensions_v1_ValidationRule(ref),
80 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.WebhookClientConfig": schema_pkg_apis_apiextensions_v1_WebhookClientConfig(ref),
81 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.WebhookConversion": schema_pkg_apis_apiextensions_v1_WebhookConversion(ref),
82 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.ConversionRequest": schema_pkg_apis_apiextensions_v1beta1_ConversionRequest(ref),
83 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.ConversionResponse": schema_pkg_apis_apiextensions_v1beta1_ConversionResponse(ref),
84 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.ConversionReview": schema_pkg_apis_apiextensions_v1beta1_ConversionReview(ref),
85 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceColumnDefinition": schema_pkg_apis_apiextensions_v1beta1_CustomResourceColumnDefinition(ref),
86 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceConversion": schema_pkg_apis_apiextensions_v1beta1_CustomResourceConversion(ref),
87 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceDefinition": schema_pkg_apis_apiextensions_v1beta1_CustomResourceDefinition(ref),
88 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceDefinitionCondition": schema_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionCondition(ref),
89 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceDefinitionList": schema_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionList(ref),
90 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceDefinitionNames": schema_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionNames(ref),
91 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceDefinitionSpec": schema_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionSpec(ref),
92 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceDefinitionStatus": schema_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionStatus(ref),
93 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceDefinitionVersion": schema_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionVersion(ref),
94 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceSubresourceScale": schema_pkg_apis_apiextensions_v1beta1_CustomResourceSubresourceScale(ref),
95 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceSubresourceStatus": schema_pkg_apis_apiextensions_v1beta1_CustomResourceSubresourceStatus(ref),
96 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceSubresources": schema_pkg_apis_apiextensions_v1beta1_CustomResourceSubresources(ref),
97 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceValidation": schema_pkg_apis_apiextensions_v1beta1_CustomResourceValidation(ref),
98 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.ExternalDocumentation": schema_pkg_apis_apiextensions_v1beta1_ExternalDocumentation(ref),
99 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.JSON": schema_pkg_apis_apiextensions_v1beta1_JSON(ref),
100 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.JSONSchemaProps": schema_pkg_apis_apiextensions_v1beta1_JSONSchemaProps(ref),
101 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.JSONSchemaPropsOrArray": schema_pkg_apis_apiextensions_v1beta1_JSONSchemaPropsOrArray(ref),
102 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.JSONSchemaPropsOrBool": schema_pkg_apis_apiextensions_v1beta1_JSONSchemaPropsOrBool(ref),
103 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.JSONSchemaPropsOrStringArray": schema_pkg_apis_apiextensions_v1beta1_JSONSchemaPropsOrStringArray(ref),
104 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.SelectableField": schema_pkg_apis_apiextensions_v1beta1_SelectableField(ref),
105 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.ServiceReference": schema_pkg_apis_apiextensions_v1beta1_ServiceReference(ref),
106 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.ValidationRule": schema_pkg_apis_apiextensions_v1beta1_ValidationRule(ref),
107 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.WebhookClientConfig": schema_pkg_apis_apiextensions_v1beta1_WebhookClientConfig(ref),
108 "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup": schema_pkg_apis_meta_v1_APIGroup(ref),
109 "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroupList": schema_pkg_apis_meta_v1_APIGroupList(ref),
110 "k8s.io/apimachinery/pkg/apis/meta/v1.APIResource": schema_pkg_apis_meta_v1_APIResource(ref),
111 "k8s.io/apimachinery/pkg/apis/meta/v1.APIResourceList": schema_pkg_apis_meta_v1_APIResourceList(ref),
112 "k8s.io/apimachinery/pkg/apis/meta/v1.APIVersions": schema_pkg_apis_meta_v1_APIVersions(ref),
113 "k8s.io/apimachinery/pkg/apis/meta/v1.ApplyOptions": schema_pkg_apis_meta_v1_ApplyOptions(ref),
114 "k8s.io/apimachinery/pkg/apis/meta/v1.Condition": schema_pkg_apis_meta_v1_Condition(ref),
115 "k8s.io/apimachinery/pkg/apis/meta/v1.CreateOptions": schema_pkg_apis_meta_v1_CreateOptions(ref),
116 "k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions": schema_pkg_apis_meta_v1_DeleteOptions(ref),
117 "k8s.io/apimachinery/pkg/apis/meta/v1.Duration": schema_pkg_apis_meta_v1_Duration(ref),
118 "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1": schema_pkg_apis_meta_v1_FieldsV1(ref),
119 "k8s.io/apimachinery/pkg/apis/meta/v1.GetOptions": schema_pkg_apis_meta_v1_GetOptions(ref),
120 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupKind": schema_pkg_apis_meta_v1_GroupKind(ref),
121 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupResource": schema_pkg_apis_meta_v1_GroupResource(ref),
122 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersion": schema_pkg_apis_meta_v1_GroupVersion(ref),
123 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery": schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref),
124 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionKind": schema_pkg_apis_meta_v1_GroupVersionKind(ref),
125 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionResource": schema_pkg_apis_meta_v1_GroupVersionResource(ref),
126 "k8s.io/apimachinery/pkg/apis/meta/v1.InternalEvent": schema_pkg_apis_meta_v1_InternalEvent(ref),
127 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector": schema_pkg_apis_meta_v1_LabelSelector(ref),
128 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement": schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref),
129 "k8s.io/apimachinery/pkg/apis/meta/v1.List": schema_pkg_apis_meta_v1_List(ref),
130 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta": schema_pkg_apis_meta_v1_ListMeta(ref),
131 "k8s.io/apimachinery/pkg/apis/meta/v1.ListOptions": schema_pkg_apis_meta_v1_ListOptions(ref),
132 "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry": schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref),
133 "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime": schema_pkg_apis_meta_v1_MicroTime(ref),
134 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta": schema_pkg_apis_meta_v1_ObjectMeta(ref),
135 "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference": schema_pkg_apis_meta_v1_OwnerReference(ref),
136 "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata": schema_pkg_apis_meta_v1_PartialObjectMetadata(ref),
137 "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadataList": schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref),
138 "k8s.io/apimachinery/pkg/apis/meta/v1.Patch": schema_pkg_apis_meta_v1_Patch(ref),
139 "k8s.io/apimachinery/pkg/apis/meta/v1.PatchOptions": schema_pkg_apis_meta_v1_PatchOptions(ref),
140 "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions": schema_pkg_apis_meta_v1_Preconditions(ref),
141 "k8s.io/apimachinery/pkg/apis/meta/v1.RootPaths": schema_pkg_apis_meta_v1_RootPaths(ref),
142 "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR": schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref),
143 "k8s.io/apimachinery/pkg/apis/meta/v1.Status": schema_pkg_apis_meta_v1_Status(ref),
144 "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause": schema_pkg_apis_meta_v1_StatusCause(ref),
145 "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails": schema_pkg_apis_meta_v1_StatusDetails(ref),
146 "k8s.io/apimachinery/pkg/apis/meta/v1.Table": schema_pkg_apis_meta_v1_Table(ref),
147 "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition": schema_pkg_apis_meta_v1_TableColumnDefinition(ref),
148 "k8s.io/apimachinery/pkg/apis/meta/v1.TableOptions": schema_pkg_apis_meta_v1_TableOptions(ref),
149 "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow": schema_pkg_apis_meta_v1_TableRow(ref),
150 "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition": schema_pkg_apis_meta_v1_TableRowCondition(ref),
151 "k8s.io/apimachinery/pkg/apis/meta/v1.Time": schema_pkg_apis_meta_v1_Time(ref),
152 "k8s.io/apimachinery/pkg/apis/meta/v1.Timestamp": schema_pkg_apis_meta_v1_Timestamp(ref),
153 "k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta": schema_pkg_apis_meta_v1_TypeMeta(ref),
154 "k8s.io/apimachinery/pkg/apis/meta/v1.UpdateOptions": schema_pkg_apis_meta_v1_UpdateOptions(ref),
155 "k8s.io/apimachinery/pkg/apis/meta/v1.WatchEvent": schema_pkg_apis_meta_v1_WatchEvent(ref),
156 "k8s.io/apimachinery/pkg/runtime.RawExtension": schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref),
157 "k8s.io/apimachinery/pkg/runtime.TypeMeta": schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref),
158 "k8s.io/apimachinery/pkg/runtime.Unknown": schema_k8sio_apimachinery_pkg_runtime_Unknown(ref),
159 "k8s.io/apimachinery/pkg/version.Info": schema_k8sio_apimachinery_pkg_version_Info(ref),
160 }
161 }
162
163 func schema_k8sio_api_autoscaling_v1_ContainerResourceMetricSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
164 return common.OpenAPIDefinition{
165 Schema: spec.Schema{
166 SchemaProps: spec.SchemaProps{
167 Description: "ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in the requests and limits, describing a single container in each of the pods of the current scale target(e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built into Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.",
168 Type: []string{"object"},
169 Properties: map[string]spec.Schema{
170 "name": {
171 SchemaProps: spec.SchemaProps{
172 Description: "name is the name of the resource in question.",
173 Default: "",
174 Type: []string{"string"},
175 Format: "",
176 },
177 },
178 "targetAverageUtilization": {
179 SchemaProps: spec.SchemaProps{
180 Description: "targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.",
181 Type: []string{"integer"},
182 Format: "int32",
183 },
184 },
185 "targetAverageValue": {
186 SchemaProps: spec.SchemaProps{
187 Description: "targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type.",
188 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"),
189 },
190 },
191 "container": {
192 SchemaProps: spec.SchemaProps{
193 Description: "container is the name of the container in the pods of the scaling target.",
194 Default: "",
195 Type: []string{"string"},
196 Format: "",
197 },
198 },
199 },
200 Required: []string{"name", "container"},
201 },
202 },
203 Dependencies: []string{
204 "k8s.io/apimachinery/pkg/api/resource.Quantity"},
205 }
206 }
207
208 func schema_k8sio_api_autoscaling_v1_ContainerResourceMetricStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
209 return common.OpenAPIDefinition{
210 Schema: spec.Schema{
211 SchemaProps: spec.SchemaProps{
212 Description: "ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
213 Type: []string{"object"},
214 Properties: map[string]spec.Schema{
215 "name": {
216 SchemaProps: spec.SchemaProps{
217 Description: "name is the name of the resource in question.",
218 Default: "",
219 Type: []string{"string"},
220 Format: "",
221 },
222 },
223 "currentAverageUtilization": {
224 SchemaProps: spec.SchemaProps{
225 Description: "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification.",
226 Type: []string{"integer"},
227 Format: "int32",
228 },
229 },
230 "currentAverageValue": {
231 SchemaProps: spec.SchemaProps{
232 Description: "currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification.",
233 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"),
234 },
235 },
236 "container": {
237 SchemaProps: spec.SchemaProps{
238 Description: "container is the name of the container in the pods of the scaling taget",
239 Default: "",
240 Type: []string{"string"},
241 Format: "",
242 },
243 },
244 },
245 Required: []string{"name", "currentAverageValue", "container"},
246 },
247 },
248 Dependencies: []string{
249 "k8s.io/apimachinery/pkg/api/resource.Quantity"},
250 }
251 }
252
253 func schema_k8sio_api_autoscaling_v1_CrossVersionObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition {
254 return common.OpenAPIDefinition{
255 Schema: spec.Schema{
256 SchemaProps: spec.SchemaProps{
257 Description: "CrossVersionObjectReference contains enough information to let you identify the referred resource.",
258 Type: []string{"object"},
259 Properties: map[string]spec.Schema{
260 "kind": {
261 SchemaProps: spec.SchemaProps{
262 Description: "kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
263 Default: "",
264 Type: []string{"string"},
265 Format: "",
266 },
267 },
268 "name": {
269 SchemaProps: spec.SchemaProps{
270 Description: "name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
271 Default: "",
272 Type: []string{"string"},
273 Format: "",
274 },
275 },
276 "apiVersion": {
277 SchemaProps: spec.SchemaProps{
278 Description: "apiVersion is the API version of the referent",
279 Type: []string{"string"},
280 Format: "",
281 },
282 },
283 },
284 Required: []string{"kind", "name"},
285 },
286 VendorExtensible: spec.VendorExtensible{
287 Extensions: spec.Extensions{
288 "x-kubernetes-map-type": "atomic",
289 },
290 },
291 },
292 }
293 }
294
295 func schema_k8sio_api_autoscaling_v1_ExternalMetricSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
296 return common.OpenAPIDefinition{
297 Schema: spec.Schema{
298 SchemaProps: spec.SchemaProps{
299 Description: "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).",
300 Type: []string{"object"},
301 Properties: map[string]spec.Schema{
302 "metricName": {
303 SchemaProps: spec.SchemaProps{
304 Description: "metricName is the name of the metric in question.",
305 Default: "",
306 Type: []string{"string"},
307 Format: "",
308 },
309 },
310 "metricSelector": {
311 SchemaProps: spec.SchemaProps{
312 Description: "metricSelector is used to identify a specific time series within a given metric.",
313 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"),
314 },
315 },
316 "targetValue": {
317 SchemaProps: spec.SchemaProps{
318 Description: "targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue.",
319 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"),
320 },
321 },
322 "targetAverageValue": {
323 SchemaProps: spec.SchemaProps{
324 Description: "targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue.",
325 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"),
326 },
327 },
328 },
329 Required: []string{"metricName"},
330 },
331 },
332 Dependencies: []string{
333 "k8s.io/apimachinery/pkg/api/resource.Quantity", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"},
334 }
335 }
336
337 func schema_k8sio_api_autoscaling_v1_ExternalMetricStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
338 return common.OpenAPIDefinition{
339 Schema: spec.Schema{
340 SchemaProps: spec.SchemaProps{
341 Description: "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.",
342 Type: []string{"object"},
343 Properties: map[string]spec.Schema{
344 "metricName": {
345 SchemaProps: spec.SchemaProps{
346 Description: "metricName is the name of a metric used for autoscaling in metric system.",
347 Default: "",
348 Type: []string{"string"},
349 Format: "",
350 },
351 },
352 "metricSelector": {
353 SchemaProps: spec.SchemaProps{
354 Description: "metricSelector is used to identify a specific time series within a given metric.",
355 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"),
356 },
357 },
358 "currentValue": {
359 SchemaProps: spec.SchemaProps{
360 Description: "currentValue is the current value of the metric (as a quantity)",
361 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"),
362 },
363 },
364 "currentAverageValue": {
365 SchemaProps: spec.SchemaProps{
366 Description: "currentAverageValue is the current value of metric averaged over autoscaled pods.",
367 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"),
368 },
369 },
370 },
371 Required: []string{"metricName", "currentValue"},
372 },
373 },
374 Dependencies: []string{
375 "k8s.io/apimachinery/pkg/api/resource.Quantity", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"},
376 }
377 }
378
379 func schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscaler(ref common.ReferenceCallback) common.OpenAPIDefinition {
380 return common.OpenAPIDefinition{
381 Schema: spec.Schema{
382 SchemaProps: spec.SchemaProps{
383 Description: "configuration of a horizontal pod autoscaler.",
384 Type: []string{"object"},
385 Properties: map[string]spec.Schema{
386 "kind": {
387 SchemaProps: spec.SchemaProps{
388 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",
389 Type: []string{"string"},
390 Format: "",
391 },
392 },
393 "apiVersion": {
394 SchemaProps: spec.SchemaProps{
395 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",
396 Type: []string{"string"},
397 Format: "",
398 },
399 },
400 "metadata": {
401 SchemaProps: spec.SchemaProps{
402 Description: "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
403 Default: map[string]interface{}{},
404 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"),
405 },
406 },
407 "spec": {
408 SchemaProps: spec.SchemaProps{
409 Description: "spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.",
410 Default: map[string]interface{}{},
411 Ref: ref("k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerSpec"),
412 },
413 },
414 "status": {
415 SchemaProps: spec.SchemaProps{
416 Description: "status is the current information about the autoscaler.",
417 Default: map[string]interface{}{},
418 Ref: ref("k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerStatus"),
419 },
420 },
421 },
422 },
423 },
424 Dependencies: []string{
425 "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerSpec", "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
426 }
427 }
428
429 func schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerCondition(ref common.ReferenceCallback) common.OpenAPIDefinition {
430 return common.OpenAPIDefinition{
431 Schema: spec.Schema{
432 SchemaProps: spec.SchemaProps{
433 Description: "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.",
434 Type: []string{"object"},
435 Properties: map[string]spec.Schema{
436 "type": {
437 SchemaProps: spec.SchemaProps{
438 Description: "type describes the current condition",
439 Default: "",
440 Type: []string{"string"},
441 Format: "",
442 },
443 },
444 "status": {
445 SchemaProps: spec.SchemaProps{
446 Description: "status is the status of the condition (True, False, Unknown)",
447 Default: "",
448 Type: []string{"string"},
449 Format: "",
450 },
451 },
452 "lastTransitionTime": {
453 SchemaProps: spec.SchemaProps{
454 Description: "lastTransitionTime is the last time the condition transitioned from one status to another",
455 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
456 },
457 },
458 "reason": {
459 SchemaProps: spec.SchemaProps{
460 Description: "reason is the reason for the condition's last transition.",
461 Type: []string{"string"},
462 Format: "",
463 },
464 },
465 "message": {
466 SchemaProps: spec.SchemaProps{
467 Description: "message is a human-readable explanation containing details about the transition",
468 Type: []string{"string"},
469 Format: "",
470 },
471 },
472 },
473 Required: []string{"type", "status"},
474 },
475 },
476 Dependencies: []string{
477 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
478 }
479 }
480
481 func schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerList(ref common.ReferenceCallback) common.OpenAPIDefinition {
482 return common.OpenAPIDefinition{
483 Schema: spec.Schema{
484 SchemaProps: spec.SchemaProps{
485 Description: "list of horizontal pod autoscaler objects.",
486 Type: []string{"object"},
487 Properties: map[string]spec.Schema{
488 "kind": {
489 SchemaProps: spec.SchemaProps{
490 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",
491 Type: []string{"string"},
492 Format: "",
493 },
494 },
495 "apiVersion": {
496 SchemaProps: spec.SchemaProps{
497 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",
498 Type: []string{"string"},
499 Format: "",
500 },
501 },
502 "metadata": {
503 SchemaProps: spec.SchemaProps{
504 Description: "Standard list metadata.",
505 Default: map[string]interface{}{},
506 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"),
507 },
508 },
509 "items": {
510 SchemaProps: spec.SchemaProps{
511 Description: "items is the list of horizontal pod autoscaler objects.",
512 Type: []string{"array"},
513 Items: &spec.SchemaOrArray{
514 Schema: &spec.Schema{
515 SchemaProps: spec.SchemaProps{
516 Default: map[string]interface{}{},
517 Ref: ref("k8s.io/api/autoscaling/v1.HorizontalPodAutoscaler"),
518 },
519 },
520 },
521 },
522 },
523 },
524 Required: []string{"items"},
525 },
526 },
527 Dependencies: []string{
528 "k8s.io/api/autoscaling/v1.HorizontalPodAutoscaler", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
529 }
530 }
531
532 func schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
533 return common.OpenAPIDefinition{
534 Schema: spec.Schema{
535 SchemaProps: spec.SchemaProps{
536 Description: "specification of a horizontal pod autoscaler.",
537 Type: []string{"object"},
538 Properties: map[string]spec.Schema{
539 "scaleTargetRef": {
540 SchemaProps: spec.SchemaProps{
541 Description: "reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource.",
542 Default: map[string]interface{}{},
543 Ref: ref("k8s.io/api/autoscaling/v1.CrossVersionObjectReference"),
544 },
545 },
546 "minReplicas": {
547 SchemaProps: spec.SchemaProps{
548 Description: "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.",
549 Type: []string{"integer"},
550 Format: "int32",
551 },
552 },
553 "maxReplicas": {
554 SchemaProps: spec.SchemaProps{
555 Description: "maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.",
556 Default: 0,
557 Type: []string{"integer"},
558 Format: "int32",
559 },
560 },
561 "targetCPUUtilizationPercentage": {
562 SchemaProps: spec.SchemaProps{
563 Description: "targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.",
564 Type: []string{"integer"},
565 Format: "int32",
566 },
567 },
568 },
569 Required: []string{"scaleTargetRef", "maxReplicas"},
570 },
571 },
572 Dependencies: []string{
573 "k8s.io/api/autoscaling/v1.CrossVersionObjectReference"},
574 }
575 }
576
577 func schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
578 return common.OpenAPIDefinition{
579 Schema: spec.Schema{
580 SchemaProps: spec.SchemaProps{
581 Description: "current status of a horizontal pod autoscaler",
582 Type: []string{"object"},
583 Properties: map[string]spec.Schema{
584 "observedGeneration": {
585 SchemaProps: spec.SchemaProps{
586 Description: "observedGeneration is the most recent generation observed by this autoscaler.",
587 Type: []string{"integer"},
588 Format: "int64",
589 },
590 },
591 "lastScaleTime": {
592 SchemaProps: spec.SchemaProps{
593 Description: "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.",
594 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
595 },
596 },
597 "currentReplicas": {
598 SchemaProps: spec.SchemaProps{
599 Description: "currentReplicas is the current number of replicas of pods managed by this autoscaler.",
600 Default: 0,
601 Type: []string{"integer"},
602 Format: "int32",
603 },
604 },
605 "desiredReplicas": {
606 SchemaProps: spec.SchemaProps{
607 Description: "desiredReplicas is the desired number of replicas of pods managed by this autoscaler.",
608 Default: 0,
609 Type: []string{"integer"},
610 Format: "int32",
611 },
612 },
613 "currentCPUUtilizationPercentage": {
614 SchemaProps: spec.SchemaProps{
615 Description: "currentCPUUtilizationPercentage is the current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU.",
616 Type: []string{"integer"},
617 Format: "int32",
618 },
619 },
620 },
621 Required: []string{"currentReplicas", "desiredReplicas"},
622 },
623 },
624 Dependencies: []string{
625 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
626 }
627 }
628
629 func schema_k8sio_api_autoscaling_v1_MetricSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
630 return common.OpenAPIDefinition{
631 Schema: spec.Schema{
632 SchemaProps: spec.SchemaProps{
633 Description: "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).",
634 Type: []string{"object"},
635 Properties: map[string]spec.Schema{
636 "type": {
637 SchemaProps: spec.SchemaProps{
638 Description: "type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled\n\nPossible enum values:\n - `\"ContainerResource\"` is a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics (the \"pods\" source).\n - `\"External\"` is a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).\n - `\"Object\"` is a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).\n - `\"Pods\"` is a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.\n - `\"Resource\"` is a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics (the \"pods\" source).",
639 Default: "",
640 Type: []string{"string"},
641 Format: "",
642 Enum: []interface{}{"ContainerResource", "External", "Object", "Pods", "Resource"},
643 },
644 },
645 "object": {
646 SchemaProps: spec.SchemaProps{
647 Description: "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).",
648 Ref: ref("k8s.io/api/autoscaling/v1.ObjectMetricSource"),
649 },
650 },
651 "pods": {
652 SchemaProps: spec.SchemaProps{
653 Description: "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.",
654 Ref: ref("k8s.io/api/autoscaling/v1.PodsMetricSource"),
655 },
656 },
657 "resource": {
658 SchemaProps: spec.SchemaProps{
659 Description: "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
660 Ref: ref("k8s.io/api/autoscaling/v1.ResourceMetricSource"),
661 },
662 },
663 "containerResource": {
664 SchemaProps: spec.SchemaProps{
665 Description: "containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag.",
666 Ref: ref("k8s.io/api/autoscaling/v1.ContainerResourceMetricSource"),
667 },
668 },
669 "external": {
670 SchemaProps: spec.SchemaProps{
671 Description: "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).",
672 Ref: ref("k8s.io/api/autoscaling/v1.ExternalMetricSource"),
673 },
674 },
675 },
676 Required: []string{"type"},
677 },
678 },
679 Dependencies: []string{
680 "k8s.io/api/autoscaling/v1.ContainerResourceMetricSource", "k8s.io/api/autoscaling/v1.ExternalMetricSource", "k8s.io/api/autoscaling/v1.ObjectMetricSource", "k8s.io/api/autoscaling/v1.PodsMetricSource", "k8s.io/api/autoscaling/v1.ResourceMetricSource"},
681 }
682 }
683
684 func schema_k8sio_api_autoscaling_v1_MetricStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
685 return common.OpenAPIDefinition{
686 Schema: spec.Schema{
687 SchemaProps: spec.SchemaProps{
688 Description: "MetricStatus describes the last-read state of a single metric.",
689 Type: []string{"object"},
690 Properties: map[string]spec.Schema{
691 "type": {
692 SchemaProps: spec.SchemaProps{
693 Description: "type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled\n\nPossible enum values:\n - `\"ContainerResource\"` is a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics (the \"pods\" source).\n - `\"External\"` is a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).\n - `\"Object\"` is a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).\n - `\"Pods\"` is a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.\n - `\"Resource\"` is a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics (the \"pods\" source).",
694 Default: "",
695 Type: []string{"string"},
696 Format: "",
697 Enum: []interface{}{"ContainerResource", "External", "Object", "Pods", "Resource"},
698 },
699 },
700 "object": {
701 SchemaProps: spec.SchemaProps{
702 Description: "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).",
703 Ref: ref("k8s.io/api/autoscaling/v1.ObjectMetricStatus"),
704 },
705 },
706 "pods": {
707 SchemaProps: spec.SchemaProps{
708 Description: "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.",
709 Ref: ref("k8s.io/api/autoscaling/v1.PodsMetricStatus"),
710 },
711 },
712 "resource": {
713 SchemaProps: spec.SchemaProps{
714 Description: "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
715 Ref: ref("k8s.io/api/autoscaling/v1.ResourceMetricStatus"),
716 },
717 },
718 "containerResource": {
719 SchemaProps: spec.SchemaProps{
720 Description: "containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
721 Ref: ref("k8s.io/api/autoscaling/v1.ContainerResourceMetricStatus"),
722 },
723 },
724 "external": {
725 SchemaProps: spec.SchemaProps{
726 Description: "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).",
727 Ref: ref("k8s.io/api/autoscaling/v1.ExternalMetricStatus"),
728 },
729 },
730 },
731 Required: []string{"type"},
732 },
733 },
734 Dependencies: []string{
735 "k8s.io/api/autoscaling/v1.ContainerResourceMetricStatus", "k8s.io/api/autoscaling/v1.ExternalMetricStatus", "k8s.io/api/autoscaling/v1.ObjectMetricStatus", "k8s.io/api/autoscaling/v1.PodsMetricStatus", "k8s.io/api/autoscaling/v1.ResourceMetricStatus"},
736 }
737 }
738
739 func schema_k8sio_api_autoscaling_v1_ObjectMetricSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
740 return common.OpenAPIDefinition{
741 Schema: spec.Schema{
742 SchemaProps: spec.SchemaProps{
743 Description: "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).",
744 Type: []string{"object"},
745 Properties: map[string]spec.Schema{
746 "target": {
747 SchemaProps: spec.SchemaProps{
748 Description: "target is the described Kubernetes object.",
749 Default: map[string]interface{}{},
750 Ref: ref("k8s.io/api/autoscaling/v1.CrossVersionObjectReference"),
751 },
752 },
753 "metricName": {
754 SchemaProps: spec.SchemaProps{
755 Description: "metricName is the name of the metric in question.",
756 Default: "",
757 Type: []string{"string"},
758 Format: "",
759 },
760 },
761 "targetValue": {
762 SchemaProps: spec.SchemaProps{
763 Description: "targetValue is the target value of the metric (as a quantity).",
764 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"),
765 },
766 },
767 "selector": {
768 SchemaProps: spec.SchemaProps{
769 Description: "selector is the string-encoded form of a standard kubernetes label selector for the given metric. When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics.",
770 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"),
771 },
772 },
773 "averageValue": {
774 SchemaProps: spec.SchemaProps{
775 Description: "averageValue is the target value of the average of the metric across all relevant pods (as a quantity)",
776 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"),
777 },
778 },
779 },
780 Required: []string{"target", "metricName", "targetValue"},
781 },
782 },
783 Dependencies: []string{
784 "k8s.io/api/autoscaling/v1.CrossVersionObjectReference", "k8s.io/apimachinery/pkg/api/resource.Quantity", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"},
785 }
786 }
787
788 func schema_k8sio_api_autoscaling_v1_ObjectMetricStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
789 return common.OpenAPIDefinition{
790 Schema: spec.Schema{
791 SchemaProps: spec.SchemaProps{
792 Description: "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).",
793 Type: []string{"object"},
794 Properties: map[string]spec.Schema{
795 "target": {
796 SchemaProps: spec.SchemaProps{
797 Description: "target is the described Kubernetes object.",
798 Default: map[string]interface{}{},
799 Ref: ref("k8s.io/api/autoscaling/v1.CrossVersionObjectReference"),
800 },
801 },
802 "metricName": {
803 SchemaProps: spec.SchemaProps{
804 Description: "metricName is the name of the metric in question.",
805 Default: "",
806 Type: []string{"string"},
807 Format: "",
808 },
809 },
810 "currentValue": {
811 SchemaProps: spec.SchemaProps{
812 Description: "currentValue is the current value of the metric (as a quantity).",
813 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"),
814 },
815 },
816 "selector": {
817 SchemaProps: spec.SchemaProps{
818 Description: "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics.",
819 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"),
820 },
821 },
822 "averageValue": {
823 SchemaProps: spec.SchemaProps{
824 Description: "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)",
825 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"),
826 },
827 },
828 },
829 Required: []string{"target", "metricName", "currentValue"},
830 },
831 },
832 Dependencies: []string{
833 "k8s.io/api/autoscaling/v1.CrossVersionObjectReference", "k8s.io/apimachinery/pkg/api/resource.Quantity", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"},
834 }
835 }
836
837 func schema_k8sio_api_autoscaling_v1_PodsMetricSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
838 return common.OpenAPIDefinition{
839 Schema: spec.Schema{
840 SchemaProps: spec.SchemaProps{
841 Description: "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.",
842 Type: []string{"object"},
843 Properties: map[string]spec.Schema{
844 "metricName": {
845 SchemaProps: spec.SchemaProps{
846 Description: "metricName is the name of the metric in question",
847 Default: "",
848 Type: []string{"string"},
849 Format: "",
850 },
851 },
852 "targetAverageValue": {
853 SchemaProps: spec.SchemaProps{
854 Description: "targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)",
855 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"),
856 },
857 },
858 "selector": {
859 SchemaProps: spec.SchemaProps{
860 Description: "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics.",
861 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"),
862 },
863 },
864 },
865 Required: []string{"metricName", "targetAverageValue"},
866 },
867 },
868 Dependencies: []string{
869 "k8s.io/apimachinery/pkg/api/resource.Quantity", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"},
870 }
871 }
872
873 func schema_k8sio_api_autoscaling_v1_PodsMetricStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
874 return common.OpenAPIDefinition{
875 Schema: spec.Schema{
876 SchemaProps: spec.SchemaProps{
877 Description: "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).",
878 Type: []string{"object"},
879 Properties: map[string]spec.Schema{
880 "metricName": {
881 SchemaProps: spec.SchemaProps{
882 Description: "metricName is the name of the metric in question",
883 Default: "",
884 Type: []string{"string"},
885 Format: "",
886 },
887 },
888 "currentAverageValue": {
889 SchemaProps: spec.SchemaProps{
890 Description: "currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity)",
891 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"),
892 },
893 },
894 "selector": {
895 SchemaProps: spec.SchemaProps{
896 Description: "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics.",
897 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"),
898 },
899 },
900 },
901 Required: []string{"metricName", "currentAverageValue"},
902 },
903 },
904 Dependencies: []string{
905 "k8s.io/apimachinery/pkg/api/resource.Quantity", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"},
906 }
907 }
908
909 func schema_k8sio_api_autoscaling_v1_ResourceMetricSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
910 return common.OpenAPIDefinition{
911 Schema: spec.Schema{
912 SchemaProps: spec.SchemaProps{
913 Description: "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.",
914 Type: []string{"object"},
915 Properties: map[string]spec.Schema{
916 "name": {
917 SchemaProps: spec.SchemaProps{
918 Description: "name is the name of the resource in question.",
919 Default: "",
920 Type: []string{"string"},
921 Format: "",
922 },
923 },
924 "targetAverageUtilization": {
925 SchemaProps: spec.SchemaProps{
926 Description: "targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.",
927 Type: []string{"integer"},
928 Format: "int32",
929 },
930 },
931 "targetAverageValue": {
932 SchemaProps: spec.SchemaProps{
933 Description: "targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type.",
934 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"),
935 },
936 },
937 },
938 Required: []string{"name"},
939 },
940 },
941 Dependencies: []string{
942 "k8s.io/apimachinery/pkg/api/resource.Quantity"},
943 }
944 }
945
946 func schema_k8sio_api_autoscaling_v1_ResourceMetricStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
947 return common.OpenAPIDefinition{
948 Schema: spec.Schema{
949 SchemaProps: spec.SchemaProps{
950 Description: "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
951 Type: []string{"object"},
952 Properties: map[string]spec.Schema{
953 "name": {
954 SchemaProps: spec.SchemaProps{
955 Description: "name is the name of the resource in question.",
956 Default: "",
957 Type: []string{"string"},
958 Format: "",
959 },
960 },
961 "currentAverageUtilization": {
962 SchemaProps: spec.SchemaProps{
963 Description: "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification.",
964 Type: []string{"integer"},
965 Format: "int32",
966 },
967 },
968 "currentAverageValue": {
969 SchemaProps: spec.SchemaProps{
970 Description: "currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification.",
971 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"),
972 },
973 },
974 },
975 Required: []string{"name", "currentAverageValue"},
976 },
977 },
978 Dependencies: []string{
979 "k8s.io/apimachinery/pkg/api/resource.Quantity"},
980 }
981 }
982
983 func schema_k8sio_api_autoscaling_v1_Scale(ref common.ReferenceCallback) common.OpenAPIDefinition {
984 return common.OpenAPIDefinition{
985 Schema: spec.Schema{
986 SchemaProps: spec.SchemaProps{
987 Description: "Scale represents a scaling request for a resource.",
988 Type: []string{"object"},
989 Properties: map[string]spec.Schema{
990 "kind": {
991 SchemaProps: spec.SchemaProps{
992 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",
993 Type: []string{"string"},
994 Format: "",
995 },
996 },
997 "apiVersion": {
998 SchemaProps: spec.SchemaProps{
999 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",
1000 Type: []string{"string"},
1001 Format: "",
1002 },
1003 },
1004 "metadata": {
1005 SchemaProps: spec.SchemaProps{
1006 Description: "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.",
1007 Default: map[string]interface{}{},
1008 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"),
1009 },
1010 },
1011 "spec": {
1012 SchemaProps: spec.SchemaProps{
1013 Description: "spec defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.",
1014 Default: map[string]interface{}{},
1015 Ref: ref("k8s.io/api/autoscaling/v1.ScaleSpec"),
1016 },
1017 },
1018 "status": {
1019 SchemaProps: spec.SchemaProps{
1020 Description: "status is the current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.",
1021 Default: map[string]interface{}{},
1022 Ref: ref("k8s.io/api/autoscaling/v1.ScaleStatus"),
1023 },
1024 },
1025 },
1026 },
1027 },
1028 Dependencies: []string{
1029 "k8s.io/api/autoscaling/v1.ScaleSpec", "k8s.io/api/autoscaling/v1.ScaleStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
1030 }
1031 }
1032
1033 func schema_k8sio_api_autoscaling_v1_ScaleSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
1034 return common.OpenAPIDefinition{
1035 Schema: spec.Schema{
1036 SchemaProps: spec.SchemaProps{
1037 Description: "ScaleSpec describes the attributes of a scale subresource.",
1038 Type: []string{"object"},
1039 Properties: map[string]spec.Schema{
1040 "replicas": {
1041 SchemaProps: spec.SchemaProps{
1042 Description: "replicas is the desired number of instances for the scaled object.",
1043 Type: []string{"integer"},
1044 Format: "int32",
1045 },
1046 },
1047 },
1048 },
1049 },
1050 }
1051 }
1052
1053 func schema_k8sio_api_autoscaling_v1_ScaleStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
1054 return common.OpenAPIDefinition{
1055 Schema: spec.Schema{
1056 SchemaProps: spec.SchemaProps{
1057 Description: "ScaleStatus represents the current status of a scale subresource.",
1058 Type: []string{"object"},
1059 Properties: map[string]spec.Schema{
1060 "replicas": {
1061 SchemaProps: spec.SchemaProps{
1062 Description: "replicas is the actual number of observed instances of the scaled object.",
1063 Default: 0,
1064 Type: []string{"integer"},
1065 Format: "int32",
1066 },
1067 },
1068 "selector": {
1069 SchemaProps: spec.SchemaProps{
1070 Description: "selector is the label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/",
1071 Type: []string{"string"},
1072 Format: "",
1073 },
1074 },
1075 },
1076 Required: []string{"replicas"},
1077 },
1078 },
1079 }
1080 }
1081
1082 func schema_pkg_apis_apiextensions_v1_ConversionRequest(ref common.ReferenceCallback) common.OpenAPIDefinition {
1083 return common.OpenAPIDefinition{
1084 Schema: spec.Schema{
1085 SchemaProps: spec.SchemaProps{
1086 Description: "ConversionRequest describes the conversion request parameters.",
1087 Type: []string{"object"},
1088 Properties: map[string]spec.Schema{
1089 "uid": {
1090 SchemaProps: spec.SchemaProps{
1091 Description: "uid is an identifier for the individual request/response. It allows distinguishing instances of requests which are otherwise identical (parallel requests, etc). The UID is meant to track the round trip (request/response) between the Kubernetes API server and the webhook, not the user request. It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging.",
1092 Default: "",
1093 Type: []string{"string"},
1094 Format: "",
1095 },
1096 },
1097 "desiredAPIVersion": {
1098 SchemaProps: spec.SchemaProps{
1099 Description: "desiredAPIVersion is the version to convert given objects to. e.g. \"myapi.example.com/v1\"",
1100 Default: "",
1101 Type: []string{"string"},
1102 Format: "",
1103 },
1104 },
1105 "objects": {
1106 VendorExtensible: spec.VendorExtensible{
1107 Extensions: spec.Extensions{
1108 "x-kubernetes-list-type": "atomic",
1109 },
1110 },
1111 SchemaProps: spec.SchemaProps{
1112 Description: "objects is the list of custom resource objects to be converted.",
1113 Type: []string{"array"},
1114 Items: &spec.SchemaOrArray{
1115 Schema: &spec.Schema{
1116 SchemaProps: spec.SchemaProps{
1117 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"),
1118 },
1119 },
1120 },
1121 },
1122 },
1123 },
1124 Required: []string{"uid", "desiredAPIVersion", "objects"},
1125 },
1126 },
1127 Dependencies: []string{
1128 "k8s.io/apimachinery/pkg/runtime.RawExtension"},
1129 }
1130 }
1131
1132 func schema_pkg_apis_apiextensions_v1_ConversionResponse(ref common.ReferenceCallback) common.OpenAPIDefinition {
1133 return common.OpenAPIDefinition{
1134 Schema: spec.Schema{
1135 SchemaProps: spec.SchemaProps{
1136 Description: "ConversionResponse describes a conversion response.",
1137 Type: []string{"object"},
1138 Properties: map[string]spec.Schema{
1139 "uid": {
1140 SchemaProps: spec.SchemaProps{
1141 Description: "uid is an identifier for the individual request/response. This should be copied over from the corresponding `request.uid`.",
1142 Default: "",
1143 Type: []string{"string"},
1144 Format: "",
1145 },
1146 },
1147 "convertedObjects": {
1148 VendorExtensible: spec.VendorExtensible{
1149 Extensions: spec.Extensions{
1150 "x-kubernetes-list-type": "atomic",
1151 },
1152 },
1153 SchemaProps: spec.SchemaProps{
1154 Description: "convertedObjects is the list of converted version of `request.objects` if the `result` is successful, otherwise empty. The webhook is expected to set `apiVersion` of these objects to the `request.desiredAPIVersion`. The list must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace). The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.",
1155 Type: []string{"array"},
1156 Items: &spec.SchemaOrArray{
1157 Schema: &spec.Schema{
1158 SchemaProps: spec.SchemaProps{
1159 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"),
1160 },
1161 },
1162 },
1163 },
1164 },
1165 "result": {
1166 SchemaProps: spec.SchemaProps{
1167 Description: "result contains the result of conversion with extra details if the conversion failed. `result.status` determines if the conversion failed or succeeded. The `result.status` field is required and represents the success or failure of the conversion. A successful conversion must set `result.status` to `Success`. A failed conversion must set `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message` will be used to construct an error message for the end user.",
1168 Default: map[string]interface{}{},
1169 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Status"),
1170 },
1171 },
1172 },
1173 Required: []string{"uid", "convertedObjects", "result"},
1174 },
1175 },
1176 Dependencies: []string{
1177 "k8s.io/apimachinery/pkg/apis/meta/v1.Status", "k8s.io/apimachinery/pkg/runtime.RawExtension"},
1178 }
1179 }
1180
1181 func schema_pkg_apis_apiextensions_v1_ConversionReview(ref common.ReferenceCallback) common.OpenAPIDefinition {
1182 return common.OpenAPIDefinition{
1183 Schema: spec.Schema{
1184 SchemaProps: spec.SchemaProps{
1185 Description: "ConversionReview describes a conversion request/response.",
1186 Type: []string{"object"},
1187 Properties: map[string]spec.Schema{
1188 "kind": {
1189 SchemaProps: spec.SchemaProps{
1190 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",
1191 Type: []string{"string"},
1192 Format: "",
1193 },
1194 },
1195 "apiVersion": {
1196 SchemaProps: spec.SchemaProps{
1197 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",
1198 Type: []string{"string"},
1199 Format: "",
1200 },
1201 },
1202 "request": {
1203 SchemaProps: spec.SchemaProps{
1204 Description: "request describes the attributes for the conversion request.",
1205 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.ConversionRequest"),
1206 },
1207 },
1208 "response": {
1209 SchemaProps: spec.SchemaProps{
1210 Description: "response describes the attributes for the conversion response.",
1211 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.ConversionResponse"),
1212 },
1213 },
1214 },
1215 },
1216 },
1217 Dependencies: []string{
1218 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.ConversionRequest", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.ConversionResponse"},
1219 }
1220 }
1221
1222 func schema_pkg_apis_apiextensions_v1_CustomResourceColumnDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition {
1223 return common.OpenAPIDefinition{
1224 Schema: spec.Schema{
1225 SchemaProps: spec.SchemaProps{
1226 Description: "CustomResourceColumnDefinition specifies a column for server side printing.",
1227 Type: []string{"object"},
1228 Properties: map[string]spec.Schema{
1229 "name": {
1230 SchemaProps: spec.SchemaProps{
1231 Description: "name is a human readable name for the column.",
1232 Default: "",
1233 Type: []string{"string"},
1234 Format: "",
1235 },
1236 },
1237 "type": {
1238 SchemaProps: spec.SchemaProps{
1239 Description: "type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.",
1240 Default: "",
1241 Type: []string{"string"},
1242 Format: "",
1243 },
1244 },
1245 "format": {
1246 SchemaProps: spec.SchemaProps{
1247 Description: "format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column 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 details.",
1248 Type: []string{"string"},
1249 Format: "",
1250 },
1251 },
1252 "description": {
1253 SchemaProps: spec.SchemaProps{
1254 Description: "description is a human readable description of this column.",
1255 Type: []string{"string"},
1256 Format: "",
1257 },
1258 },
1259 "priority": {
1260 SchemaProps: spec.SchemaProps{
1261 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 priority greater than 0.",
1262 Type: []string{"integer"},
1263 Format: "int32",
1264 },
1265 },
1266 "jsonPath": {
1267 SchemaProps: spec.SchemaProps{
1268 Description: "jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column.",
1269 Default: "",
1270 Type: []string{"string"},
1271 Format: "",
1272 },
1273 },
1274 },
1275 Required: []string{"name", "type", "jsonPath"},
1276 },
1277 },
1278 }
1279 }
1280
1281 func schema_pkg_apis_apiextensions_v1_CustomResourceConversion(ref common.ReferenceCallback) common.OpenAPIDefinition {
1282 return common.OpenAPIDefinition{
1283 Schema: spec.Schema{
1284 SchemaProps: spec.SchemaProps{
1285 Description: "CustomResourceConversion describes how to convert different versions of a CR.",
1286 Type: []string{"object"},
1287 Properties: map[string]spec.Schema{
1288 "strategy": {
1289 SchemaProps: spec.SchemaProps{
1290 Description: "strategy specifies how custom resources are converted between versions. Allowed values are: - `\"None\"`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `\"Webhook\"`: API Server will call to an external webhook to do the conversion. Additional information\n is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set.",
1291 Default: "",
1292 Type: []string{"string"},
1293 Format: "",
1294 },
1295 },
1296 "webhook": {
1297 SchemaProps: spec.SchemaProps{
1298 Description: "webhook describes how to call the conversion webhook. Required when `strategy` is set to `\"Webhook\"`.",
1299 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.WebhookConversion"),
1300 },
1301 },
1302 },
1303 Required: []string{"strategy"},
1304 },
1305 },
1306 Dependencies: []string{
1307 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.WebhookConversion"},
1308 }
1309 }
1310
1311 func schema_pkg_apis_apiextensions_v1_CustomResourceDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition {
1312 return common.OpenAPIDefinition{
1313 Schema: spec.Schema{
1314 SchemaProps: spec.SchemaProps{
1315 Description: "CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>.",
1316 Type: []string{"object"},
1317 Properties: map[string]spec.Schema{
1318 "kind": {
1319 SchemaProps: spec.SchemaProps{
1320 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",
1321 Type: []string{"string"},
1322 Format: "",
1323 },
1324 },
1325 "apiVersion": {
1326 SchemaProps: spec.SchemaProps{
1327 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",
1328 Type: []string{"string"},
1329 Format: "",
1330 },
1331 },
1332 "metadata": {
1333 SchemaProps: spec.SchemaProps{
1334 Description: "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
1335 Default: map[string]interface{}{},
1336 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"),
1337 },
1338 },
1339 "spec": {
1340 SchemaProps: spec.SchemaProps{
1341 Description: "spec describes how the user wants the resources to appear",
1342 Default: map[string]interface{}{},
1343 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceDefinitionSpec"),
1344 },
1345 },
1346 "status": {
1347 SchemaProps: spec.SchemaProps{
1348 Description: "status indicates the actual state of the CustomResourceDefinition",
1349 Default: map[string]interface{}{},
1350 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceDefinitionStatus"),
1351 },
1352 },
1353 },
1354 Required: []string{"spec"},
1355 },
1356 },
1357 Dependencies: []string{
1358 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceDefinitionSpec", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceDefinitionStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
1359 }
1360 }
1361
1362 func schema_pkg_apis_apiextensions_v1_CustomResourceDefinitionCondition(ref common.ReferenceCallback) common.OpenAPIDefinition {
1363 return common.OpenAPIDefinition{
1364 Schema: spec.Schema{
1365 SchemaProps: spec.SchemaProps{
1366 Description: "CustomResourceDefinitionCondition contains details for the current condition of this pod.",
1367 Type: []string{"object"},
1368 Properties: map[string]spec.Schema{
1369 "type": {
1370 SchemaProps: spec.SchemaProps{
1371 Description: "type is the type of the condition. Types include Established, NamesAccepted and Terminating.",
1372 Default: "",
1373 Type: []string{"string"},
1374 Format: "",
1375 },
1376 },
1377 "status": {
1378 SchemaProps: spec.SchemaProps{
1379 Description: "status is the status of the condition. Can be True, False, Unknown.",
1380 Default: "",
1381 Type: []string{"string"},
1382 Format: "",
1383 },
1384 },
1385 "lastTransitionTime": {
1386 SchemaProps: spec.SchemaProps{
1387 Description: "lastTransitionTime last time the condition transitioned from one status to another.",
1388 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
1389 },
1390 },
1391 "reason": {
1392 SchemaProps: spec.SchemaProps{
1393 Description: "reason is a unique, one-word, CamelCase reason for the condition's last transition.",
1394 Type: []string{"string"},
1395 Format: "",
1396 },
1397 },
1398 "message": {
1399 SchemaProps: spec.SchemaProps{
1400 Description: "message is a human-readable message indicating details about last transition.",
1401 Type: []string{"string"},
1402 Format: "",
1403 },
1404 },
1405 },
1406 Required: []string{"type", "status"},
1407 },
1408 },
1409 Dependencies: []string{
1410 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
1411 }
1412 }
1413
1414 func schema_pkg_apis_apiextensions_v1_CustomResourceDefinitionList(ref common.ReferenceCallback) common.OpenAPIDefinition {
1415 return common.OpenAPIDefinition{
1416 Schema: spec.Schema{
1417 SchemaProps: spec.SchemaProps{
1418 Description: "CustomResourceDefinitionList is a list of CustomResourceDefinition objects.",
1419 Type: []string{"object"},
1420 Properties: map[string]spec.Schema{
1421 "kind": {
1422 SchemaProps: spec.SchemaProps{
1423 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",
1424 Type: []string{"string"},
1425 Format: "",
1426 },
1427 },
1428 "apiVersion": {
1429 SchemaProps: spec.SchemaProps{
1430 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",
1431 Type: []string{"string"},
1432 Format: "",
1433 },
1434 },
1435 "metadata": {
1436 SchemaProps: spec.SchemaProps{
1437 Description: "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
1438 Default: map[string]interface{}{},
1439 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"),
1440 },
1441 },
1442 "items": {
1443 SchemaProps: spec.SchemaProps{
1444 Description: "items list individual CustomResourceDefinition objects",
1445 Type: []string{"array"},
1446 Items: &spec.SchemaOrArray{
1447 Schema: &spec.Schema{
1448 SchemaProps: spec.SchemaProps{
1449 Default: map[string]interface{}{},
1450 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceDefinition"),
1451 },
1452 },
1453 },
1454 },
1455 },
1456 },
1457 Required: []string{"items"},
1458 },
1459 },
1460 Dependencies: []string{
1461 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceDefinition", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
1462 }
1463 }
1464
1465 func schema_pkg_apis_apiextensions_v1_CustomResourceDefinitionNames(ref common.ReferenceCallback) common.OpenAPIDefinition {
1466 return common.OpenAPIDefinition{
1467 Schema: spec.Schema{
1468 SchemaProps: spec.SchemaProps{
1469 Description: "CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition",
1470 Type: []string{"object"},
1471 Properties: map[string]spec.Schema{
1472 "plural": {
1473 SchemaProps: spec.SchemaProps{
1474 Description: "plural is the plural name of the resource to serve. The custom resources are served under `/apis/<group>/<version>/.../<plural>`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). Must be all lowercase.",
1475 Default: "",
1476 Type: []string{"string"},
1477 Format: "",
1478 },
1479 },
1480 "singular": {
1481 SchemaProps: spec.SchemaProps{
1482 Description: "singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.",
1483 Type: []string{"string"},
1484 Format: "",
1485 },
1486 },
1487 "shortNames": {
1488 VendorExtensible: spec.VendorExtensible{
1489 Extensions: spec.Extensions{
1490 "x-kubernetes-list-type": "atomic",
1491 },
1492 },
1493 SchemaProps: spec.SchemaProps{
1494 Description: "shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get <shortname>`. It must be all lowercase.",
1495 Type: []string{"array"},
1496 Items: &spec.SchemaOrArray{
1497 Schema: &spec.Schema{
1498 SchemaProps: spec.SchemaProps{
1499 Default: "",
1500 Type: []string{"string"},
1501 Format: "",
1502 },
1503 },
1504 },
1505 },
1506 },
1507 "kind": {
1508 SchemaProps: spec.SchemaProps{
1509 Description: "kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls.",
1510 Default: "",
1511 Type: []string{"string"},
1512 Format: "",
1513 },
1514 },
1515 "listKind": {
1516 SchemaProps: spec.SchemaProps{
1517 Description: "listKind is the serialized kind of the list for this resource. Defaults to \"`kind`List\".",
1518 Type: []string{"string"},
1519 Format: "",
1520 },
1521 },
1522 "categories": {
1523 VendorExtensible: spec.VendorExtensible{
1524 Extensions: spec.Extensions{
1525 "x-kubernetes-list-type": "atomic",
1526 },
1527 },
1528 SchemaProps: spec.SchemaProps{
1529 Description: "categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`.",
1530 Type: []string{"array"},
1531 Items: &spec.SchemaOrArray{
1532 Schema: &spec.Schema{
1533 SchemaProps: spec.SchemaProps{
1534 Default: "",
1535 Type: []string{"string"},
1536 Format: "",
1537 },
1538 },
1539 },
1540 },
1541 },
1542 },
1543 Required: []string{"plural", "kind"},
1544 },
1545 },
1546 }
1547 }
1548
1549 func schema_pkg_apis_apiextensions_v1_CustomResourceDefinitionSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
1550 return common.OpenAPIDefinition{
1551 Schema: spec.Schema{
1552 SchemaProps: spec.SchemaProps{
1553 Description: "CustomResourceDefinitionSpec describes how a user wants their resource to appear",
1554 Type: []string{"object"},
1555 Properties: map[string]spec.Schema{
1556 "group": {
1557 SchemaProps: spec.SchemaProps{
1558 Description: "group is the API group of the defined custom resource. The custom resources are served under `/apis/<group>/...`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).",
1559 Default: "",
1560 Type: []string{"string"},
1561 Format: "",
1562 },
1563 },
1564 "names": {
1565 SchemaProps: spec.SchemaProps{
1566 Description: "names specify the resource and kind names for the custom resource.",
1567 Default: map[string]interface{}{},
1568 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceDefinitionNames"),
1569 },
1570 },
1571 "scope": {
1572 SchemaProps: spec.SchemaProps{
1573 Description: "scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`.",
1574 Default: "",
1575 Type: []string{"string"},
1576 Format: "",
1577 },
1578 },
1579 "versions": {
1580 VendorExtensible: spec.VendorExtensible{
1581 Extensions: spec.Extensions{
1582 "x-kubernetes-list-type": "atomic",
1583 },
1584 },
1585 SchemaProps: spec.SchemaProps{
1586 Description: "versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. 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.",
1587 Type: []string{"array"},
1588 Items: &spec.SchemaOrArray{
1589 Schema: &spec.Schema{
1590 SchemaProps: spec.SchemaProps{
1591 Default: map[string]interface{}{},
1592 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceDefinitionVersion"),
1593 },
1594 },
1595 },
1596 },
1597 },
1598 "conversion": {
1599 SchemaProps: spec.SchemaProps{
1600 Description: "conversion defines conversion settings for the CRD.",
1601 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceConversion"),
1602 },
1603 },
1604 "preserveUnknownFields": {
1605 SchemaProps: spec.SchemaProps{
1606 Description: "preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning for details.",
1607 Type: []string{"boolean"},
1608 Format: "",
1609 },
1610 },
1611 },
1612 Required: []string{"group", "names", "scope", "versions"},
1613 },
1614 },
1615 Dependencies: []string{
1616 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceConversion", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceDefinitionNames", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceDefinitionVersion"},
1617 }
1618 }
1619
1620 func schema_pkg_apis_apiextensions_v1_CustomResourceDefinitionStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
1621 return common.OpenAPIDefinition{
1622 Schema: spec.Schema{
1623 SchemaProps: spec.SchemaProps{
1624 Description: "CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition",
1625 Type: []string{"object"},
1626 Properties: map[string]spec.Schema{
1627 "conditions": {
1628 VendorExtensible: spec.VendorExtensible{
1629 Extensions: spec.Extensions{
1630 "x-kubernetes-list-map-keys": []interface{}{
1631 "type",
1632 },
1633 "x-kubernetes-list-type": "map",
1634 },
1635 },
1636 SchemaProps: spec.SchemaProps{
1637 Description: "conditions indicate state for particular aspects of a CustomResourceDefinition",
1638 Type: []string{"array"},
1639 Items: &spec.SchemaOrArray{
1640 Schema: &spec.Schema{
1641 SchemaProps: spec.SchemaProps{
1642 Default: map[string]interface{}{},
1643 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceDefinitionCondition"),
1644 },
1645 },
1646 },
1647 },
1648 },
1649 "acceptedNames": {
1650 SchemaProps: spec.SchemaProps{
1651 Description: "acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec.",
1652 Default: map[string]interface{}{},
1653 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceDefinitionNames"),
1654 },
1655 },
1656 "storedVersions": {
1657 VendorExtensible: spec.VendorExtensible{
1658 Extensions: spec.Extensions{
1659 "x-kubernetes-list-type": "atomic",
1660 },
1661 },
1662 SchemaProps: spec.SchemaProps{
1663 Description: "storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list.",
1664 Type: []string{"array"},
1665 Items: &spec.SchemaOrArray{
1666 Schema: &spec.Schema{
1667 SchemaProps: spec.SchemaProps{
1668 Default: "",
1669 Type: []string{"string"},
1670 Format: "",
1671 },
1672 },
1673 },
1674 },
1675 },
1676 },
1677 },
1678 },
1679 Dependencies: []string{
1680 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceDefinitionCondition", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceDefinitionNames"},
1681 }
1682 }
1683
1684 func schema_pkg_apis_apiextensions_v1_CustomResourceDefinitionVersion(ref common.ReferenceCallback) common.OpenAPIDefinition {
1685 return common.OpenAPIDefinition{
1686 Schema: spec.Schema{
1687 SchemaProps: spec.SchemaProps{
1688 Description: "CustomResourceDefinitionVersion describes a version for CRD.",
1689 Type: []string{"object"},
1690 Properties: map[string]spec.Schema{
1691 "name": {
1692 SchemaProps: spec.SchemaProps{
1693 Description: "name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true.",
1694 Default: "",
1695 Type: []string{"string"},
1696 Format: "",
1697 },
1698 },
1699 "served": {
1700 SchemaProps: spec.SchemaProps{
1701 Description: "served is a flag enabling/disabling this version from being served via REST APIs",
1702 Default: false,
1703 Type: []string{"boolean"},
1704 Format: "",
1705 },
1706 },
1707 "storage": {
1708 SchemaProps: spec.SchemaProps{
1709 Description: "storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true.",
1710 Default: false,
1711 Type: []string{"boolean"},
1712 Format: "",
1713 },
1714 },
1715 "deprecated": {
1716 SchemaProps: spec.SchemaProps{
1717 Description: "deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false.",
1718 Type: []string{"boolean"},
1719 Format: "",
1720 },
1721 },
1722 "deprecationWarning": {
1723 SchemaProps: spec.SchemaProps{
1724 Description: "deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists.",
1725 Type: []string{"string"},
1726 Format: "",
1727 },
1728 },
1729 "schema": {
1730 SchemaProps: spec.SchemaProps{
1731 Description: "schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource.",
1732 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceValidation"),
1733 },
1734 },
1735 "subresources": {
1736 SchemaProps: spec.SchemaProps{
1737 Description: "subresources specify what subresources this version of the defined custom resource have.",
1738 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceSubresources"),
1739 },
1740 },
1741 "additionalPrinterColumns": {
1742 VendorExtensible: spec.VendorExtensible{
1743 Extensions: spec.Extensions{
1744 "x-kubernetes-list-type": "atomic",
1745 },
1746 },
1747 SchemaProps: spec.SchemaProps{
1748 Description: "additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used.",
1749 Type: []string{"array"},
1750 Items: &spec.SchemaOrArray{
1751 Schema: &spec.Schema{
1752 SchemaProps: spec.SchemaProps{
1753 Default: map[string]interface{}{},
1754 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceColumnDefinition"),
1755 },
1756 },
1757 },
1758 },
1759 },
1760 "selectableFields": {
1761 VendorExtensible: spec.VendorExtensible{
1762 Extensions: spec.Extensions{
1763 "x-kubernetes-list-type": "atomic",
1764 },
1765 },
1766 SchemaProps: spec.SchemaProps{
1767 Description: "selectableFields specifies paths to fields that may be used as field selectors. A maximum of 8 selectable fields are allowed. See https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors",
1768 Type: []string{"array"},
1769 Items: &spec.SchemaOrArray{
1770 Schema: &spec.Schema{
1771 SchemaProps: spec.SchemaProps{
1772 Default: map[string]interface{}{},
1773 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.SelectableField"),
1774 },
1775 },
1776 },
1777 },
1778 },
1779 },
1780 Required: []string{"name", "served", "storage"},
1781 },
1782 },
1783 Dependencies: []string{
1784 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceColumnDefinition", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceSubresources", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceValidation", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.SelectableField"},
1785 }
1786 }
1787
1788 func schema_pkg_apis_apiextensions_v1_CustomResourceSubresourceScale(ref common.ReferenceCallback) common.OpenAPIDefinition {
1789 return common.OpenAPIDefinition{
1790 Schema: spec.Schema{
1791 SchemaProps: spec.SchemaProps{
1792 Description: "CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.",
1793 Type: []string{"object"},
1794 Properties: map[string]spec.Schema{
1795 "specReplicasPath": {
1796 SchemaProps: spec.SchemaProps{
1797 Description: "specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET.",
1798 Default: "",
1799 Type: []string{"string"},
1800 Format: "",
1801 },
1802 },
1803 "statusReplicasPath": {
1804 SchemaProps: spec.SchemaProps{
1805 Description: "statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0.",
1806 Default: "",
1807 Type: []string{"string"},
1808 Format: "",
1809 },
1810 },
1811 "labelSelectorPath": {
1812 SchemaProps: spec.SchemaProps{
1813 Description: "labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string.",
1814 Type: []string{"string"},
1815 Format: "",
1816 },
1817 },
1818 },
1819 Required: []string{"specReplicasPath", "statusReplicasPath"},
1820 },
1821 },
1822 }
1823 }
1824
1825 func schema_pkg_apis_apiextensions_v1_CustomResourceSubresourceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
1826 return common.OpenAPIDefinition{
1827 Schema: spec.Schema{
1828 SchemaProps: spec.SchemaProps{
1829 Description: "CustomResourceSubresourceStatus defines how to serve the status subresource for CustomResources. Status is represented by the `.status` JSON path inside of a CustomResource. When set, * exposes a /status subresource for the custom resource * PUT requests to the /status subresource take a custom resource object, and ignore changes to anything except the status stanza * PUT/POST/PATCH requests to the custom resource ignore changes to the status stanza",
1830 Type: []string{"object"},
1831 },
1832 },
1833 }
1834 }
1835
1836 func schema_pkg_apis_apiextensions_v1_CustomResourceSubresources(ref common.ReferenceCallback) common.OpenAPIDefinition {
1837 return common.OpenAPIDefinition{
1838 Schema: spec.Schema{
1839 SchemaProps: spec.SchemaProps{
1840 Description: "CustomResourceSubresources defines the status and scale subresources for CustomResources.",
1841 Type: []string{"object"},
1842 Properties: map[string]spec.Schema{
1843 "status": {
1844 SchemaProps: spec.SchemaProps{
1845 Description: "status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.",
1846 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceSubresourceStatus"),
1847 },
1848 },
1849 "scale": {
1850 SchemaProps: spec.SchemaProps{
1851 Description: "scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object.",
1852 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceSubresourceScale"),
1853 },
1854 },
1855 },
1856 },
1857 },
1858 Dependencies: []string{
1859 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceSubresourceScale", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.CustomResourceSubresourceStatus"},
1860 }
1861 }
1862
1863 func schema_pkg_apis_apiextensions_v1_CustomResourceValidation(ref common.ReferenceCallback) common.OpenAPIDefinition {
1864 return common.OpenAPIDefinition{
1865 Schema: spec.Schema{
1866 SchemaProps: spec.SchemaProps{
1867 Description: "CustomResourceValidation is a list of validation methods for CustomResources.",
1868 Type: []string{"object"},
1869 Properties: map[string]spec.Schema{
1870 "openAPIV3Schema": {
1871 SchemaProps: spec.SchemaProps{
1872 Description: "openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.",
1873 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSONSchemaProps"),
1874 },
1875 },
1876 },
1877 },
1878 },
1879 Dependencies: []string{
1880 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSONSchemaProps"},
1881 }
1882 }
1883
1884 func schema_pkg_apis_apiextensions_v1_ExternalDocumentation(ref common.ReferenceCallback) common.OpenAPIDefinition {
1885 return common.OpenAPIDefinition{
1886 Schema: spec.Schema{
1887 SchemaProps: spec.SchemaProps{
1888 Description: "ExternalDocumentation allows referencing an external resource for extended documentation.",
1889 Type: []string{"object"},
1890 Properties: map[string]spec.Schema{
1891 "description": {
1892 SchemaProps: spec.SchemaProps{
1893 Type: []string{"string"},
1894 Format: "",
1895 },
1896 },
1897 "url": {
1898 SchemaProps: spec.SchemaProps{
1899 Type: []string{"string"},
1900 Format: "",
1901 },
1902 },
1903 },
1904 },
1905 },
1906 }
1907 }
1908
1909 func schema_pkg_apis_apiextensions_v1_JSON(ref common.ReferenceCallback) common.OpenAPIDefinition {
1910 return common.OpenAPIDefinition{
1911 Schema: spec.Schema{
1912 SchemaProps: spec.SchemaProps{
1913 Description: "JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.",
1914 Type: v1.JSON{}.OpenAPISchemaType(),
1915 Format: v1.JSON{}.OpenAPISchemaFormat(),
1916 },
1917 },
1918 }
1919 }
1920
1921 func schema_pkg_apis_apiextensions_v1_JSONSchemaProps(ref common.ReferenceCallback) common.OpenAPIDefinition {
1922 return common.OpenAPIDefinition{
1923 Schema: spec.Schema{
1924 SchemaProps: spec.SchemaProps{
1925 Description: "JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).",
1926 Type: []string{"object"},
1927 Properties: map[string]spec.Schema{
1928 "id": {
1929 SchemaProps: spec.SchemaProps{
1930 Type: []string{"string"},
1931 Format: "",
1932 },
1933 },
1934 "$schema": {
1935 SchemaProps: spec.SchemaProps{
1936 Type: []string{"string"},
1937 Format: "",
1938 },
1939 },
1940 "$ref": {
1941 SchemaProps: spec.SchemaProps{
1942 Type: []string{"string"},
1943 Format: "",
1944 },
1945 },
1946 "description": {
1947 SchemaProps: spec.SchemaProps{
1948 Type: []string{"string"},
1949 Format: "",
1950 },
1951 },
1952 "type": {
1953 SchemaProps: spec.SchemaProps{
1954 Type: []string{"string"},
1955 Format: "",
1956 },
1957 },
1958 "format": {
1959 SchemaProps: spec.SchemaProps{
1960 Description: "format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:\n\n- bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like \"0321751043\" or \"978-0321751041\" - isbn10: an ISBN10 number string like \"0321751043\" - isbn13: an ISBN13 number string like \"978-0321751041\" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\\d{3}[- ]?\\d{2}[- ]?\\d{4}$ - hexcolor: an hexadecimal color code like \"#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like \"rgb(255,255,2559\" - byte: base64 encoded binary data - password: any kind of string - date: a date string like \"2006-01-02\" as defined by full-date in RFC3339 - duration: a duration string like \"22 ns\" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like \"2014-12-15T19:30:20.000Z\" as defined by date-time in RFC3339.",
1961 Type: []string{"string"},
1962 Format: "",
1963 },
1964 },
1965 "title": {
1966 SchemaProps: spec.SchemaProps{
1967 Type: []string{"string"},
1968 Format: "",
1969 },
1970 },
1971 "default": {
1972 SchemaProps: spec.SchemaProps{
1973 Description: "default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false.",
1974 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSON"),
1975 },
1976 },
1977 "maximum": {
1978 SchemaProps: spec.SchemaProps{
1979 Type: []string{"number"},
1980 Format: "double",
1981 },
1982 },
1983 "exclusiveMaximum": {
1984 SchemaProps: spec.SchemaProps{
1985 Type: []string{"boolean"},
1986 Format: "",
1987 },
1988 },
1989 "minimum": {
1990 SchemaProps: spec.SchemaProps{
1991 Type: []string{"number"},
1992 Format: "double",
1993 },
1994 },
1995 "exclusiveMinimum": {
1996 SchemaProps: spec.SchemaProps{
1997 Type: []string{"boolean"},
1998 Format: "",
1999 },
2000 },
2001 "maxLength": {
2002 SchemaProps: spec.SchemaProps{
2003 Type: []string{"integer"},
2004 Format: "int64",
2005 },
2006 },
2007 "minLength": {
2008 SchemaProps: spec.SchemaProps{
2009 Type: []string{"integer"},
2010 Format: "int64",
2011 },
2012 },
2013 "pattern": {
2014 SchemaProps: spec.SchemaProps{
2015 Type: []string{"string"},
2016 Format: "",
2017 },
2018 },
2019 "maxItems": {
2020 SchemaProps: spec.SchemaProps{
2021 Type: []string{"integer"},
2022 Format: "int64",
2023 },
2024 },
2025 "minItems": {
2026 SchemaProps: spec.SchemaProps{
2027 Type: []string{"integer"},
2028 Format: "int64",
2029 },
2030 },
2031 "uniqueItems": {
2032 SchemaProps: spec.SchemaProps{
2033 Type: []string{"boolean"},
2034 Format: "",
2035 },
2036 },
2037 "multipleOf": {
2038 SchemaProps: spec.SchemaProps{
2039 Type: []string{"number"},
2040 Format: "double",
2041 },
2042 },
2043 "enum": {
2044 VendorExtensible: spec.VendorExtensible{
2045 Extensions: spec.Extensions{
2046 "x-kubernetes-list-type": "atomic",
2047 },
2048 },
2049 SchemaProps: spec.SchemaProps{
2050 Type: []string{"array"},
2051 Items: &spec.SchemaOrArray{
2052 Schema: &spec.Schema{
2053 SchemaProps: spec.SchemaProps{
2054 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSON"),
2055 },
2056 },
2057 },
2058 },
2059 },
2060 "maxProperties": {
2061 SchemaProps: spec.SchemaProps{
2062 Type: []string{"integer"},
2063 Format: "int64",
2064 },
2065 },
2066 "minProperties": {
2067 SchemaProps: spec.SchemaProps{
2068 Type: []string{"integer"},
2069 Format: "int64",
2070 },
2071 },
2072 "required": {
2073 VendorExtensible: spec.VendorExtensible{
2074 Extensions: spec.Extensions{
2075 "x-kubernetes-list-type": "atomic",
2076 },
2077 },
2078 SchemaProps: spec.SchemaProps{
2079 Type: []string{"array"},
2080 Items: &spec.SchemaOrArray{
2081 Schema: &spec.Schema{
2082 SchemaProps: spec.SchemaProps{
2083 Default: "",
2084 Type: []string{"string"},
2085 Format: "",
2086 },
2087 },
2088 },
2089 },
2090 },
2091 "items": {
2092 SchemaProps: spec.SchemaProps{
2093 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSONSchemaPropsOrArray"),
2094 },
2095 },
2096 "allOf": {
2097 VendorExtensible: spec.VendorExtensible{
2098 Extensions: spec.Extensions{
2099 "x-kubernetes-list-type": "atomic",
2100 },
2101 },
2102 SchemaProps: spec.SchemaProps{
2103 Type: []string{"array"},
2104 Items: &spec.SchemaOrArray{
2105 Schema: &spec.Schema{
2106 SchemaProps: spec.SchemaProps{
2107 Default: map[string]interface{}{},
2108 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSONSchemaProps"),
2109 },
2110 },
2111 },
2112 },
2113 },
2114 "oneOf": {
2115 VendorExtensible: spec.VendorExtensible{
2116 Extensions: spec.Extensions{
2117 "x-kubernetes-list-type": "atomic",
2118 },
2119 },
2120 SchemaProps: spec.SchemaProps{
2121 Type: []string{"array"},
2122 Items: &spec.SchemaOrArray{
2123 Schema: &spec.Schema{
2124 SchemaProps: spec.SchemaProps{
2125 Default: map[string]interface{}{},
2126 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSONSchemaProps"),
2127 },
2128 },
2129 },
2130 },
2131 },
2132 "anyOf": {
2133 VendorExtensible: spec.VendorExtensible{
2134 Extensions: spec.Extensions{
2135 "x-kubernetes-list-type": "atomic",
2136 },
2137 },
2138 SchemaProps: spec.SchemaProps{
2139 Type: []string{"array"},
2140 Items: &spec.SchemaOrArray{
2141 Schema: &spec.Schema{
2142 SchemaProps: spec.SchemaProps{
2143 Default: map[string]interface{}{},
2144 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSONSchemaProps"),
2145 },
2146 },
2147 },
2148 },
2149 },
2150 "not": {
2151 SchemaProps: spec.SchemaProps{
2152 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSONSchemaProps"),
2153 },
2154 },
2155 "properties": {
2156 SchemaProps: spec.SchemaProps{
2157 Type: []string{"object"},
2158 AdditionalProperties: &spec.SchemaOrBool{
2159 Allows: true,
2160 Schema: &spec.Schema{
2161 SchemaProps: spec.SchemaProps{
2162 Default: map[string]interface{}{},
2163 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSONSchemaProps"),
2164 },
2165 },
2166 },
2167 },
2168 },
2169 "additionalProperties": {
2170 SchemaProps: spec.SchemaProps{
2171 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSONSchemaPropsOrBool"),
2172 },
2173 },
2174 "patternProperties": {
2175 SchemaProps: spec.SchemaProps{
2176 Type: []string{"object"},
2177 AdditionalProperties: &spec.SchemaOrBool{
2178 Allows: true,
2179 Schema: &spec.Schema{
2180 SchemaProps: spec.SchemaProps{
2181 Default: map[string]interface{}{},
2182 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSONSchemaProps"),
2183 },
2184 },
2185 },
2186 },
2187 },
2188 "dependencies": {
2189 SchemaProps: spec.SchemaProps{
2190 Type: []string{"object"},
2191 AdditionalProperties: &spec.SchemaOrBool{
2192 Allows: true,
2193 Schema: &spec.Schema{
2194 SchemaProps: spec.SchemaProps{
2195 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSONSchemaPropsOrStringArray"),
2196 },
2197 },
2198 },
2199 },
2200 },
2201 "additionalItems": {
2202 SchemaProps: spec.SchemaProps{
2203 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSONSchemaPropsOrBool"),
2204 },
2205 },
2206 "definitions": {
2207 SchemaProps: spec.SchemaProps{
2208 Type: []string{"object"},
2209 AdditionalProperties: &spec.SchemaOrBool{
2210 Allows: true,
2211 Schema: &spec.Schema{
2212 SchemaProps: spec.SchemaProps{
2213 Default: map[string]interface{}{},
2214 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSONSchemaProps"),
2215 },
2216 },
2217 },
2218 },
2219 },
2220 "externalDocs": {
2221 SchemaProps: spec.SchemaProps{
2222 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.ExternalDocumentation"),
2223 },
2224 },
2225 "example": {
2226 SchemaProps: spec.SchemaProps{
2227 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSON"),
2228 },
2229 },
2230 "nullable": {
2231 SchemaProps: spec.SchemaProps{
2232 Type: []string{"boolean"},
2233 Format: "",
2234 },
2235 },
2236 "x-kubernetes-preserve-unknown-fields": {
2237 SchemaProps: spec.SchemaProps{
2238 Description: "x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden.",
2239 Type: []string{"boolean"},
2240 Format: "",
2241 },
2242 },
2243 "x-kubernetes-embedded-resource": {
2244 SchemaProps: spec.SchemaProps{
2245 Description: "x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata).",
2246 Type: []string{"boolean"},
2247 Format: "",
2248 },
2249 },
2250 "x-kubernetes-int-or-string": {
2251 SchemaProps: spec.SchemaProps{
2252 Description: "x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns:\n\n1) anyOf:\n - type: integer\n - type: string\n2) allOf:\n - anyOf:\n - type: integer\n - type: string\n - ... zero or more",
2253 Type: []string{"boolean"},
2254 Format: "",
2255 },
2256 },
2257 "x-kubernetes-list-map-keys": {
2258 VendorExtensible: spec.VendorExtensible{
2259 Extensions: spec.Extensions{
2260 "x-kubernetes-list-type": "atomic",
2261 },
2262 },
2263 SchemaProps: spec.SchemaProps{
2264 Description: "x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map.\n\nThis tag MUST only be used on lists that have the \"x-kubernetes-list-type\" extension set to \"map\". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported).\n\nThe properties specified must either be required or have a default value, to ensure those properties are present for all list items.",
2265 Type: []string{"array"},
2266 Items: &spec.SchemaOrArray{
2267 Schema: &spec.Schema{
2268 SchemaProps: spec.SchemaProps{
2269 Default: "",
2270 Type: []string{"string"},
2271 Format: "",
2272 },
2273 },
2274 },
2275 },
2276 },
2277 "x-kubernetes-list-type": {
2278 SchemaProps: spec.SchemaProps{
2279 Description: "x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values:\n\n1) `atomic`: the list is treated as a single entity, like a scalar.\n Atomic lists will be entirely replaced when updated. This extension\n may be used on any type of list (struct, scalar, ...).\n2) `set`:\n Sets are lists that must not have multiple items with the same value. Each\n value must be a scalar, an object with x-kubernetes-map-type `atomic` or an\n array with x-kubernetes-list-type `atomic`.\n3) `map`:\n These lists are like maps in that their elements have a non-index key\n used to identify them. Order is preserved upon merge. The map tag\n must only be used on a list with elements of type object.\nDefaults to atomic for arrays.",
2280 Type: []string{"string"},
2281 Format: "",
2282 },
2283 },
2284 "x-kubernetes-map-type": {
2285 SchemaProps: spec.SchemaProps{
2286 Description: "x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values:\n\n1) `granular`:\n These maps are actual maps (key-value pairs) and each fields are independent\n from each other (they can each be manipulated by separate actors). This is\n the default behaviour for all maps.\n2) `atomic`: the list is treated as a single entity, like a scalar.\n Atomic maps will be entirely replaced when updated.",
2287 Type: []string{"string"},
2288 Format: "",
2289 },
2290 },
2291 "x-kubernetes-validations": {
2292 VendorExtensible: spec.VendorExtensible{
2293 Extensions: spec.Extensions{
2294 "x-kubernetes-list-map-keys": []interface{}{
2295 "rule",
2296 },
2297 "x-kubernetes-list-type": "map",
2298 "x-kubernetes-patch-merge-key": "rule",
2299 "x-kubernetes-patch-strategy": "merge",
2300 },
2301 },
2302 SchemaProps: spec.SchemaProps{
2303 Description: "x-kubernetes-validations describes a list of validation rules written in the CEL expression language. This field is an alpha-level. Using this field requires the feature gate `CustomResourceValidationExpressions` to be enabled.",
2304 Type: []string{"array"},
2305 Items: &spec.SchemaOrArray{
2306 Schema: &spec.Schema{
2307 SchemaProps: spec.SchemaProps{
2308 Default: map[string]interface{}{},
2309 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.ValidationRule"),
2310 },
2311 },
2312 },
2313 },
2314 },
2315 },
2316 },
2317 },
2318 Dependencies: []string{
2319 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.ExternalDocumentation", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSON", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSONSchemaProps", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSONSchemaPropsOrArray", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSONSchemaPropsOrBool", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSONSchemaPropsOrStringArray", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.ValidationRule"},
2320 }
2321 }
2322
2323 func schema_pkg_apis_apiextensions_v1_JSONSchemaPropsOrArray(ref common.ReferenceCallback) common.OpenAPIDefinition {
2324 return common.OpenAPIDefinition{
2325 Schema: spec.Schema{
2326 SchemaProps: spec.SchemaProps{
2327 Description: "JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes.",
2328 Type: v1.JSONSchemaPropsOrArray{}.OpenAPISchemaType(),
2329 Format: v1.JSONSchemaPropsOrArray{}.OpenAPISchemaFormat(),
2330 },
2331 },
2332 }
2333 }
2334
2335 func schema_pkg_apis_apiextensions_v1_JSONSchemaPropsOrBool(ref common.ReferenceCallback) common.OpenAPIDefinition {
2336 return common.OpenAPIDefinition{
2337 Schema: spec.Schema{
2338 SchemaProps: spec.SchemaProps{
2339 Description: "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property.",
2340 Type: v1.JSONSchemaPropsOrBool{}.OpenAPISchemaType(),
2341 Format: v1.JSONSchemaPropsOrBool{}.OpenAPISchemaFormat(),
2342 },
2343 },
2344 }
2345 }
2346
2347 func schema_pkg_apis_apiextensions_v1_JSONSchemaPropsOrStringArray(ref common.ReferenceCallback) common.OpenAPIDefinition {
2348 return common.OpenAPIDefinition{
2349 Schema: spec.Schema{
2350 SchemaProps: spec.SchemaProps{
2351 Description: "JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string array.",
2352 Type: v1.JSONSchemaPropsOrStringArray{}.OpenAPISchemaType(),
2353 Format: v1.JSONSchemaPropsOrStringArray{}.OpenAPISchemaFormat(),
2354 },
2355 },
2356 }
2357 }
2358
2359 func schema_pkg_apis_apiextensions_v1_SelectableField(ref common.ReferenceCallback) common.OpenAPIDefinition {
2360 return common.OpenAPIDefinition{
2361 Schema: spec.Schema{
2362 SchemaProps: spec.SchemaProps{
2363 Description: "SelectableField specifies the JSON path of a field that may be used with field selectors.",
2364 Type: []string{"object"},
2365 Properties: map[string]spec.Schema{
2366 "jsonPath": {
2367 SchemaProps: spec.SchemaProps{
2368 Description: "jsonPath is a simple JSON path which is evaluated against each custom resource to produce a field selector value. Only JSON paths without the array notation are allowed. Must point to a field of type string, boolean or integer. Types with enum values and strings with formats are allowed. If jsonPath refers to absent field in a resource, the jsonPath evaluates to an empty string. Must not point to metdata fields. Required.",
2369 Default: "",
2370 Type: []string{"string"},
2371 Format: "",
2372 },
2373 },
2374 },
2375 Required: []string{"jsonPath"},
2376 },
2377 },
2378 }
2379 }
2380
2381 func schema_pkg_apis_apiextensions_v1_ServiceReference(ref common.ReferenceCallback) common.OpenAPIDefinition {
2382 return common.OpenAPIDefinition{
2383 Schema: spec.Schema{
2384 SchemaProps: spec.SchemaProps{
2385 Description: "ServiceReference holds a reference to Service.legacy.k8s.io",
2386 Type: []string{"object"},
2387 Properties: map[string]spec.Schema{
2388 "namespace": {
2389 SchemaProps: spec.SchemaProps{
2390 Description: "namespace is the namespace of the service. Required",
2391 Default: "",
2392 Type: []string{"string"},
2393 Format: "",
2394 },
2395 },
2396 "name": {
2397 SchemaProps: spec.SchemaProps{
2398 Description: "name is the name of the service. Required",
2399 Default: "",
2400 Type: []string{"string"},
2401 Format: "",
2402 },
2403 },
2404 "path": {
2405 SchemaProps: spec.SchemaProps{
2406 Description: "path is an optional URL path at which the webhook will be contacted.",
2407 Type: []string{"string"},
2408 Format: "",
2409 },
2410 },
2411 "port": {
2412 SchemaProps: spec.SchemaProps{
2413 Description: "port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility.",
2414 Type: []string{"integer"},
2415 Format: "int32",
2416 },
2417 },
2418 },
2419 Required: []string{"namespace", "name"},
2420 },
2421 },
2422 }
2423 }
2424
2425 func schema_pkg_apis_apiextensions_v1_ValidationRule(ref common.ReferenceCallback) common.OpenAPIDefinition {
2426 return common.OpenAPIDefinition{
2427 Schema: spec.Schema{
2428 SchemaProps: spec.SchemaProps{
2429 Description: "ValidationRule describes a validation rule written in the CEL expression language.",
2430 Type: []string{"object"},
2431 Properties: map[string]spec.Schema{
2432 "rule": {
2433 SchemaProps: spec.SchemaProps{
2434 Description: "Rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the x-kubernetes-validations extension in the schema. The `self` variable in the CEL expression is bound to the scoped value. Example: - Rule scoped to the root of a resource with a status subresource: {\"rule\": \"self.status.actual <= self.spec.maxDesired\"}\n\nIf the Rule is scoped to an object with properties, the accessible properties of the object are field selectable via `self.field` and field presence can be checked via `has(self.field)`. Null valued fields are treated as absent fields in CEL expressions. If the Rule is scoped to an object with additionalProperties (i.e. a map) the value of the map are accessible via `self[mapKey]`, map containment can be checked via `mapKey in self` and all entries of the map are accessible via CEL macros and functions such as `self.all(...)`. If the Rule is scoped to an array, the elements of the array are accessible via `self[i]` and also by macros and functions. If the Rule is scoped to a scalar, `self` is bound to the scalar value. Examples: - Rule scoped to a map of objects: {\"rule\": \"self.components['Widget'].priority < 10\"} - Rule scoped to a list of integers: {\"rule\": \"self.values.all(value, value >= 0 && value < 100)\"} - Rule scoped to a string value: {\"rule\": \"self.startsWith('kube')\"}\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object and from any x-kubernetes-embedded-resource annotated objects. No other metadata properties are accessible.\n\nUnknown data preserved in custom resources via x-kubernetes-preserve-unknown-fields is not accessible in CEL expressions. This includes: - Unknown field values that are preserved by object schemas with x-kubernetes-preserve-unknown-fields. - Object properties where the property schema is of an \"unknown type\". An \"unknown type\" is recursively defined as:\n - A schema with no type and x-kubernetes-preserve-unknown-fields set to true\n - An array where the items schema is of an \"unknown type\"\n - An object where the additionalProperties schema is of an \"unknown type\"\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Rule accessing a property named \"namespace\": {\"rule\": \"self.__namespace__ > 0\"}\n - Rule accessing a property named \"x-prop\": {\"rule\": \"self.x__dash__prop > 0\"}\n - Rule accessing a property named \"redact__d\": {\"rule\": \"self.redact__underscores__d > 0\"}\n\nEquality on arrays with x-kubernetes-list-type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\n\nIf `rule` makes use of the `oldSelf` variable it is implicitly a `transition rule`.\n\nBy default, the `oldSelf` variable is the same type as `self`. When `optionalOldSelf` is true, the `oldSelf` variable is a CEL optional\n variable whose value() is the same type as `self`.\nSee the documentation for the `optionalOldSelf` field for details.\n\nTransition rules by default are applied only on UPDATE requests and are skipped if an old value could not be found. You can opt a transition rule into unconditional evaluation by setting `optionalOldSelf` to true.",
2435 Default: "",
2436 Type: []string{"string"},
2437 Format: "",
2438 },
2439 },
2440 "message": {
2441 SchemaProps: spec.SchemaProps{
2442 Description: "Message represents the message displayed when validation fails. The message is required if the Rule contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\"",
2443 Type: []string{"string"},
2444 Format: "",
2445 },
2446 },
2447 "messageExpression": {
2448 SchemaProps: spec.SchemaProps{
2449 Description: "MessageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a rule, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the rule; the only difference is the return type. Example: \"x must be less than max (\"+string(self.max)+\")\"",
2450 Type: []string{"string"},
2451 Format: "",
2452 },
2453 },
2454 "reason": {
2455 SchemaProps: spec.SchemaProps{
2456 Description: "reason provides a machine-readable validation failure reason that is returned to the caller when a request fails this validation rule. The HTTP status code returned to the caller will match the reason of the reason of the first failed validation rule. The currently supported reasons are: \"FieldValueInvalid\", \"FieldValueForbidden\", \"FieldValueRequired\", \"FieldValueDuplicate\". If not set, default to use \"FieldValueInvalid\". All future added reasons must be accepted by clients when reading this value and unknown reasons should be treated as FieldValueInvalid.\n\nPossible enum values:\n - `\"FieldValueDuplicate\"` is used to report collisions of values that must be unique (e.g. unique IDs).\n - `\"FieldValueForbidden\"` is used to report valid (as per formatting rules) values which would be accepted under some conditions, but which are not permitted by the current conditions (such as security policy).\n - `\"FieldValueInvalid\"` is used to report malformed values (e.g. failed regex match, too long, out of bounds).\n - `\"FieldValueRequired\"` is used to report required values that are not provided (e.g. empty strings, null values, or empty arrays).",
2457 Type: []string{"string"},
2458 Format: "",
2459 Enum: []interface{}{"FieldValueDuplicate", "FieldValueForbidden", "FieldValueInvalid", "FieldValueRequired"},
2460 },
2461 },
2462 "fieldPath": {
2463 SchemaProps: spec.SchemaProps{
2464 Description: "fieldPath represents the field path returned when the validation fails. It must be a relative JSON path (i.e. with array notation) scoped to the location of this x-kubernetes-validations extension in the schema and refer to an existing field. e.g. when validation checks if a specific attribute `foo` under a map `testMap`, the fieldPath could be set to `.testMap.foo` If the validation checks two lists must have unique attributes, the fieldPath could be set to either of the list: e.g. `.testList` It does not support list numeric index. It supports child operation to refer to an existing field currently. Refer to [JSONPath support in Kubernetes](https://kubernetes.io/docs/reference/kubectl/jsonpath/) for more info. Numeric index of array is not supported. For field name which contains special characters, use `['specialName']` to refer the field name. e.g. for attribute `foo.34$` appears in a list `testList`, the fieldPath could be set to `.testList['foo.34$']`",
2465 Type: []string{"string"},
2466 Format: "",
2467 },
2468 },
2469 "optionalOldSelf": {
2470 SchemaProps: spec.SchemaProps{
2471 Description: "optionalOldSelf is used to opt a transition rule into evaluation even when the object is first created, or if the old object is missing the value.\n\nWhen enabled `oldSelf` will be a CEL optional whose value will be `None` if there is no old value, or when the object is initially created.\n\nYou may check for presence of oldSelf using `oldSelf.hasValue()` and unwrap it after checking using `oldSelf.value()`. Check the CEL documentation for Optional types for more information: https://pkg.go.dev/github.com/google/cel-go/cel#OptionalTypes\n\nMay not be set unless `oldSelf` is used in `rule`.",
2472 Type: []string{"boolean"},
2473 Format: "",
2474 },
2475 },
2476 },
2477 Required: []string{"rule"},
2478 },
2479 },
2480 }
2481 }
2482
2483 func schema_pkg_apis_apiextensions_v1_WebhookClientConfig(ref common.ReferenceCallback) common.OpenAPIDefinition {
2484 return common.OpenAPIDefinition{
2485 Schema: spec.Schema{
2486 SchemaProps: spec.SchemaProps{
2487 Description: "WebhookClientConfig contains the information to make a TLS connection with the webhook.",
2488 Type: []string{"object"},
2489 Properties: map[string]spec.Schema{
2490 "url": {
2491 SchemaProps: spec.SchemaProps{
2492 Description: "url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.",
2493 Type: []string{"string"},
2494 Format: "",
2495 },
2496 },
2497 "service": {
2498 SchemaProps: spec.SchemaProps{
2499 Description: "service is a reference to the service for this webhook. Either service or url must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`.",
2500 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.ServiceReference"),
2501 },
2502 },
2503 "caBundle": {
2504 SchemaProps: spec.SchemaProps{
2505 Description: "caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.",
2506 Type: []string{"string"},
2507 Format: "byte",
2508 },
2509 },
2510 },
2511 },
2512 },
2513 Dependencies: []string{
2514 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.ServiceReference"},
2515 }
2516 }
2517
2518 func schema_pkg_apis_apiextensions_v1_WebhookConversion(ref common.ReferenceCallback) common.OpenAPIDefinition {
2519 return common.OpenAPIDefinition{
2520 Schema: spec.Schema{
2521 SchemaProps: spec.SchemaProps{
2522 Description: "WebhookConversion describes how to call a conversion webhook",
2523 Type: []string{"object"},
2524 Properties: map[string]spec.Schema{
2525 "clientConfig": {
2526 SchemaProps: spec.SchemaProps{
2527 Description: "clientConfig is the instructions for how to call the webhook if strategy is `Webhook`.",
2528 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.WebhookClientConfig"),
2529 },
2530 },
2531 "conversionReviewVersions": {
2532 VendorExtensible: spec.VendorExtensible{
2533 Extensions: spec.Extensions{
2534 "x-kubernetes-list-type": "atomic",
2535 },
2536 },
2537 SchemaProps: spec.SchemaProps{
2538 Description: "conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail.",
2539 Type: []string{"array"},
2540 Items: &spec.SchemaOrArray{
2541 Schema: &spec.Schema{
2542 SchemaProps: spec.SchemaProps{
2543 Default: "",
2544 Type: []string{"string"},
2545 Format: "",
2546 },
2547 },
2548 },
2549 },
2550 },
2551 },
2552 Required: []string{"conversionReviewVersions"},
2553 },
2554 },
2555 Dependencies: []string{
2556 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.WebhookClientConfig"},
2557 }
2558 }
2559
2560 func schema_pkg_apis_apiextensions_v1beta1_ConversionRequest(ref common.ReferenceCallback) common.OpenAPIDefinition {
2561 return common.OpenAPIDefinition{
2562 Schema: spec.Schema{
2563 SchemaProps: spec.SchemaProps{
2564 Description: "ConversionRequest describes the conversion request parameters.",
2565 Type: []string{"object"},
2566 Properties: map[string]spec.Schema{
2567 "uid": {
2568 SchemaProps: spec.SchemaProps{
2569 Description: "uid is an identifier for the individual request/response. It allows distinguishing instances of requests which are otherwise identical (parallel requests, etc). The UID is meant to track the round trip (request/response) between the Kubernetes API server and the webhook, not the user request. It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging.",
2570 Default: "",
2571 Type: []string{"string"},
2572 Format: "",
2573 },
2574 },
2575 "desiredAPIVersion": {
2576 SchemaProps: spec.SchemaProps{
2577 Description: "desiredAPIVersion is the version to convert given objects to. e.g. \"myapi.example.com/v1\"",
2578 Default: "",
2579 Type: []string{"string"},
2580 Format: "",
2581 },
2582 },
2583 "objects": {
2584 VendorExtensible: spec.VendorExtensible{
2585 Extensions: spec.Extensions{
2586 "x-kubernetes-list-type": "atomic",
2587 },
2588 },
2589 SchemaProps: spec.SchemaProps{
2590 Description: "objects is the list of custom resource objects to be converted.",
2591 Type: []string{"array"},
2592 Items: &spec.SchemaOrArray{
2593 Schema: &spec.Schema{
2594 SchemaProps: spec.SchemaProps{
2595 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"),
2596 },
2597 },
2598 },
2599 },
2600 },
2601 },
2602 Required: []string{"uid", "desiredAPIVersion", "objects"},
2603 },
2604 },
2605 Dependencies: []string{
2606 "k8s.io/apimachinery/pkg/runtime.RawExtension"},
2607 }
2608 }
2609
2610 func schema_pkg_apis_apiextensions_v1beta1_ConversionResponse(ref common.ReferenceCallback) common.OpenAPIDefinition {
2611 return common.OpenAPIDefinition{
2612 Schema: spec.Schema{
2613 SchemaProps: spec.SchemaProps{
2614 Description: "ConversionResponse describes a conversion response.",
2615 Type: []string{"object"},
2616 Properties: map[string]spec.Schema{
2617 "uid": {
2618 SchemaProps: spec.SchemaProps{
2619 Description: "uid is an identifier for the individual request/response. This should be copied over from the corresponding `request.uid`.",
2620 Default: "",
2621 Type: []string{"string"},
2622 Format: "",
2623 },
2624 },
2625 "convertedObjects": {
2626 VendorExtensible: spec.VendorExtensible{
2627 Extensions: spec.Extensions{
2628 "x-kubernetes-list-type": "atomic",
2629 },
2630 },
2631 SchemaProps: spec.SchemaProps{
2632 Description: "convertedObjects is the list of converted version of `request.objects` if the `result` is successful, otherwise empty. The webhook is expected to set `apiVersion` of these objects to the `request.desiredAPIVersion`. The list must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace). The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.",
2633 Type: []string{"array"},
2634 Items: &spec.SchemaOrArray{
2635 Schema: &spec.Schema{
2636 SchemaProps: spec.SchemaProps{
2637 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"),
2638 },
2639 },
2640 },
2641 },
2642 },
2643 "result": {
2644 SchemaProps: spec.SchemaProps{
2645 Description: "result contains the result of conversion with extra details if the conversion failed. `result.status` determines if the conversion failed or succeeded. The `result.status` field is required and represents the success or failure of the conversion. A successful conversion must set `result.status` to `Success`. A failed conversion must set `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message` will be used to construct an error message for the end user.",
2646 Default: map[string]interface{}{},
2647 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Status"),
2648 },
2649 },
2650 },
2651 Required: []string{"uid", "convertedObjects", "result"},
2652 },
2653 },
2654 Dependencies: []string{
2655 "k8s.io/apimachinery/pkg/apis/meta/v1.Status", "k8s.io/apimachinery/pkg/runtime.RawExtension"},
2656 }
2657 }
2658
2659 func schema_pkg_apis_apiextensions_v1beta1_ConversionReview(ref common.ReferenceCallback) common.OpenAPIDefinition {
2660 return common.OpenAPIDefinition{
2661 Schema: spec.Schema{
2662 SchemaProps: spec.SchemaProps{
2663 Description: "ConversionReview describes a conversion request/response.",
2664 Type: []string{"object"},
2665 Properties: map[string]spec.Schema{
2666 "kind": {
2667 SchemaProps: spec.SchemaProps{
2668 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",
2669 Type: []string{"string"},
2670 Format: "",
2671 },
2672 },
2673 "apiVersion": {
2674 SchemaProps: spec.SchemaProps{
2675 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",
2676 Type: []string{"string"},
2677 Format: "",
2678 },
2679 },
2680 "request": {
2681 SchemaProps: spec.SchemaProps{
2682 Description: "request describes the attributes for the conversion request.",
2683 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.ConversionRequest"),
2684 },
2685 },
2686 "response": {
2687 SchemaProps: spec.SchemaProps{
2688 Description: "response describes the attributes for the conversion response.",
2689 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.ConversionResponse"),
2690 },
2691 },
2692 },
2693 },
2694 },
2695 Dependencies: []string{
2696 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.ConversionRequest", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.ConversionResponse"},
2697 }
2698 }
2699
2700 func schema_pkg_apis_apiextensions_v1beta1_CustomResourceColumnDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition {
2701 return common.OpenAPIDefinition{
2702 Schema: spec.Schema{
2703 SchemaProps: spec.SchemaProps{
2704 Description: "CustomResourceColumnDefinition specifies a column for server side printing.",
2705 Type: []string{"object"},
2706 Properties: map[string]spec.Schema{
2707 "name": {
2708 SchemaProps: spec.SchemaProps{
2709 Description: "name is a human readable name for the column.",
2710 Default: "",
2711 Type: []string{"string"},
2712 Format: "",
2713 },
2714 },
2715 "type": {
2716 SchemaProps: spec.SchemaProps{
2717 Description: "type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.",
2718 Default: "",
2719 Type: []string{"string"},
2720 Format: "",
2721 },
2722 },
2723 "format": {
2724 SchemaProps: spec.SchemaProps{
2725 Description: "format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column 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 details.",
2726 Type: []string{"string"},
2727 Format: "",
2728 },
2729 },
2730 "description": {
2731 SchemaProps: spec.SchemaProps{
2732 Description: "description is a human readable description of this column.",
2733 Type: []string{"string"},
2734 Format: "",
2735 },
2736 },
2737 "priority": {
2738 SchemaProps: spec.SchemaProps{
2739 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 priority greater than 0.",
2740 Type: []string{"integer"},
2741 Format: "int32",
2742 },
2743 },
2744 "JSONPath": {
2745 SchemaProps: spec.SchemaProps{
2746 Description: "JSONPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column.",
2747 Default: "",
2748 Type: []string{"string"},
2749 Format: "",
2750 },
2751 },
2752 },
2753 Required: []string{"name", "type", "JSONPath"},
2754 },
2755 },
2756 }
2757 }
2758
2759 func schema_pkg_apis_apiextensions_v1beta1_CustomResourceConversion(ref common.ReferenceCallback) common.OpenAPIDefinition {
2760 return common.OpenAPIDefinition{
2761 Schema: spec.Schema{
2762 SchemaProps: spec.SchemaProps{
2763 Description: "CustomResourceConversion describes how to convert different versions of a CR.",
2764 Type: []string{"object"},
2765 Properties: map[string]spec.Schema{
2766 "strategy": {
2767 SchemaProps: spec.SchemaProps{
2768 Description: "strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information\n is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set.",
2769 Default: "",
2770 Type: []string{"string"},
2771 Format: "",
2772 },
2773 },
2774 "webhookClientConfig": {
2775 SchemaProps: spec.SchemaProps{
2776 Description: "webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`. Required when `strategy` is set to `Webhook`.",
2777 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.WebhookClientConfig"),
2778 },
2779 },
2780 "conversionReviewVersions": {
2781 VendorExtensible: spec.VendorExtensible{
2782 Extensions: spec.Extensions{
2783 "x-kubernetes-list-type": "atomic",
2784 },
2785 },
2786 SchemaProps: spec.SchemaProps{
2787 Description: "conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Defaults to `[\"v1beta1\"]`.",
2788 Type: []string{"array"},
2789 Items: &spec.SchemaOrArray{
2790 Schema: &spec.Schema{
2791 SchemaProps: spec.SchemaProps{
2792 Default: "",
2793 Type: []string{"string"},
2794 Format: "",
2795 },
2796 },
2797 },
2798 },
2799 },
2800 },
2801 Required: []string{"strategy"},
2802 },
2803 },
2804 Dependencies: []string{
2805 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.WebhookClientConfig"},
2806 }
2807 }
2808
2809 func schema_pkg_apis_apiextensions_v1beta1_CustomResourceDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition {
2810 return common.OpenAPIDefinition{
2811 Schema: spec.Schema{
2812 SchemaProps: spec.SchemaProps{
2813 Description: "CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. Deprecated in v1.16, planned for removal in v1.22. Use apiextensions.k8s.io/v1 CustomResourceDefinition instead.",
2814 Type: []string{"object"},
2815 Properties: map[string]spec.Schema{
2816 "kind": {
2817 SchemaProps: spec.SchemaProps{
2818 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",
2819 Type: []string{"string"},
2820 Format: "",
2821 },
2822 },
2823 "apiVersion": {
2824 SchemaProps: spec.SchemaProps{
2825 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",
2826 Type: []string{"string"},
2827 Format: "",
2828 },
2829 },
2830 "metadata": {
2831 SchemaProps: spec.SchemaProps{
2832 Description: "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
2833 Default: map[string]interface{}{},
2834 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"),
2835 },
2836 },
2837 "spec": {
2838 SchemaProps: spec.SchemaProps{
2839 Description: "spec describes how the user wants the resources to appear",
2840 Default: map[string]interface{}{},
2841 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceDefinitionSpec"),
2842 },
2843 },
2844 "status": {
2845 SchemaProps: spec.SchemaProps{
2846 Description: "status indicates the actual state of the CustomResourceDefinition",
2847 Default: map[string]interface{}{},
2848 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceDefinitionStatus"),
2849 },
2850 },
2851 },
2852 Required: []string{"spec"},
2853 },
2854 },
2855 Dependencies: []string{
2856 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceDefinitionSpec", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceDefinitionStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
2857 }
2858 }
2859
2860 func schema_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionCondition(ref common.ReferenceCallback) common.OpenAPIDefinition {
2861 return common.OpenAPIDefinition{
2862 Schema: spec.Schema{
2863 SchemaProps: spec.SchemaProps{
2864 Description: "CustomResourceDefinitionCondition contains details for the current condition of this pod.",
2865 Type: []string{"object"},
2866 Properties: map[string]spec.Schema{
2867 "type": {
2868 SchemaProps: spec.SchemaProps{
2869 Description: "type is the type of the condition. Types include Established, NamesAccepted and Terminating.",
2870 Default: "",
2871 Type: []string{"string"},
2872 Format: "",
2873 },
2874 },
2875 "status": {
2876 SchemaProps: spec.SchemaProps{
2877 Description: "status is the status of the condition. Can be True, False, Unknown.",
2878 Default: "",
2879 Type: []string{"string"},
2880 Format: "",
2881 },
2882 },
2883 "lastTransitionTime": {
2884 SchemaProps: spec.SchemaProps{
2885 Description: "lastTransitionTime last time the condition transitioned from one status to another.",
2886 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
2887 },
2888 },
2889 "reason": {
2890 SchemaProps: spec.SchemaProps{
2891 Description: "reason is a unique, one-word, CamelCase reason for the condition's last transition.",
2892 Type: []string{"string"},
2893 Format: "",
2894 },
2895 },
2896 "message": {
2897 SchemaProps: spec.SchemaProps{
2898 Description: "message is a human-readable message indicating details about last transition.",
2899 Type: []string{"string"},
2900 Format: "",
2901 },
2902 },
2903 },
2904 Required: []string{"type", "status"},
2905 },
2906 },
2907 Dependencies: []string{
2908 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
2909 }
2910 }
2911
2912 func schema_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionList(ref common.ReferenceCallback) common.OpenAPIDefinition {
2913 return common.OpenAPIDefinition{
2914 Schema: spec.Schema{
2915 SchemaProps: spec.SchemaProps{
2916 Description: "CustomResourceDefinitionList is a list of CustomResourceDefinition objects.",
2917 Type: []string{"object"},
2918 Properties: map[string]spec.Schema{
2919 "kind": {
2920 SchemaProps: spec.SchemaProps{
2921 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",
2922 Type: []string{"string"},
2923 Format: "",
2924 },
2925 },
2926 "apiVersion": {
2927 SchemaProps: spec.SchemaProps{
2928 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",
2929 Type: []string{"string"},
2930 Format: "",
2931 },
2932 },
2933 "metadata": {
2934 SchemaProps: spec.SchemaProps{
2935 Description: "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
2936 Default: map[string]interface{}{},
2937 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"),
2938 },
2939 },
2940 "items": {
2941 SchemaProps: spec.SchemaProps{
2942 Description: "items list individual CustomResourceDefinition objects",
2943 Type: []string{"array"},
2944 Items: &spec.SchemaOrArray{
2945 Schema: &spec.Schema{
2946 SchemaProps: spec.SchemaProps{
2947 Default: map[string]interface{}{},
2948 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceDefinition"),
2949 },
2950 },
2951 },
2952 },
2953 },
2954 },
2955 Required: []string{"items"},
2956 },
2957 },
2958 Dependencies: []string{
2959 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceDefinition", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
2960 }
2961 }
2962
2963 func schema_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionNames(ref common.ReferenceCallback) common.OpenAPIDefinition {
2964 return common.OpenAPIDefinition{
2965 Schema: spec.Schema{
2966 SchemaProps: spec.SchemaProps{
2967 Description: "CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition",
2968 Type: []string{"object"},
2969 Properties: map[string]spec.Schema{
2970 "plural": {
2971 SchemaProps: spec.SchemaProps{
2972 Description: "plural is the plural name of the resource to serve. The custom resources are served under `/apis/<group>/<version>/.../<plural>`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). Must be all lowercase.",
2973 Default: "",
2974 Type: []string{"string"},
2975 Format: "",
2976 },
2977 },
2978 "singular": {
2979 SchemaProps: spec.SchemaProps{
2980 Description: "singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.",
2981 Type: []string{"string"},
2982 Format: "",
2983 },
2984 },
2985 "shortNames": {
2986 VendorExtensible: spec.VendorExtensible{
2987 Extensions: spec.Extensions{
2988 "x-kubernetes-list-type": "atomic",
2989 },
2990 },
2991 SchemaProps: spec.SchemaProps{
2992 Description: "shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get <shortname>`. It must be all lowercase.",
2993 Type: []string{"array"},
2994 Items: &spec.SchemaOrArray{
2995 Schema: &spec.Schema{
2996 SchemaProps: spec.SchemaProps{
2997 Default: "",
2998 Type: []string{"string"},
2999 Format: "",
3000 },
3001 },
3002 },
3003 },
3004 },
3005 "kind": {
3006 SchemaProps: spec.SchemaProps{
3007 Description: "kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls.",
3008 Default: "",
3009 Type: []string{"string"},
3010 Format: "",
3011 },
3012 },
3013 "listKind": {
3014 SchemaProps: spec.SchemaProps{
3015 Description: "listKind is the serialized kind of the list for this resource. Defaults to \"`kind`List\".",
3016 Type: []string{"string"},
3017 Format: "",
3018 },
3019 },
3020 "categories": {
3021 VendorExtensible: spec.VendorExtensible{
3022 Extensions: spec.Extensions{
3023 "x-kubernetes-list-type": "atomic",
3024 },
3025 },
3026 SchemaProps: spec.SchemaProps{
3027 Description: "categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`.",
3028 Type: []string{"array"},
3029 Items: &spec.SchemaOrArray{
3030 Schema: &spec.Schema{
3031 SchemaProps: spec.SchemaProps{
3032 Default: "",
3033 Type: []string{"string"},
3034 Format: "",
3035 },
3036 },
3037 },
3038 },
3039 },
3040 },
3041 Required: []string{"plural", "kind"},
3042 },
3043 },
3044 }
3045 }
3046
3047 func schema_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
3048 return common.OpenAPIDefinition{
3049 Schema: spec.Schema{
3050 SchemaProps: spec.SchemaProps{
3051 Description: "CustomResourceDefinitionSpec describes how a user wants their resource to appear",
3052 Type: []string{"object"},
3053 Properties: map[string]spec.Schema{
3054 "group": {
3055 SchemaProps: spec.SchemaProps{
3056 Description: "group is the API group of the defined custom resource. The custom resources are served under `/apis/<group>/...`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).",
3057 Default: "",
3058 Type: []string{"string"},
3059 Format: "",
3060 },
3061 },
3062 "version": {
3063 SchemaProps: spec.SchemaProps{
3064 Description: "version is the API version of the defined custom resource. The custom resources are served under `/apis/<group>/<version>/...`. Must match the name of the first item in the `versions` list if `version` and `versions` are both specified. Optional if `versions` is specified. Deprecated: use `versions` instead.",
3065 Type: []string{"string"},
3066 Format: "",
3067 },
3068 },
3069 "names": {
3070 SchemaProps: spec.SchemaProps{
3071 Description: "names specify the resource and kind names for the custom resource.",
3072 Default: map[string]interface{}{},
3073 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceDefinitionNames"),
3074 },
3075 },
3076 "scope": {
3077 SchemaProps: spec.SchemaProps{
3078 Description: "scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. Default is `Namespaced`.",
3079 Default: "",
3080 Type: []string{"string"},
3081 Format: "",
3082 },
3083 },
3084 "validation": {
3085 SchemaProps: spec.SchemaProps{
3086 Description: "validation describes the schema used for validation and pruning of the custom resource. If present, this validation schema is used to validate all versions. Top-level and per-version schemas are mutually exclusive.",
3087 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceValidation"),
3088 },
3089 },
3090 "subresources": {
3091 SchemaProps: spec.SchemaProps{
3092 Description: "subresources specify what subresources the defined custom resource has. If present, this field configures subresources for all versions. Top-level and per-version subresources are mutually exclusive.",
3093 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceSubresources"),
3094 },
3095 },
3096 "versions": {
3097 VendorExtensible: spec.VendorExtensible{
3098 Extensions: spec.Extensions{
3099 "x-kubernetes-list-type": "atomic",
3100 },
3101 },
3102 SchemaProps: spec.SchemaProps{
3103 Description: "versions is the list of all API versions of the defined custom resource. Optional if `version` is specified. The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified. Version names are used to compute the order in which served versions are listed in API discovery. 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.",
3104 Type: []string{"array"},
3105 Items: &spec.SchemaOrArray{
3106 Schema: &spec.Schema{
3107 SchemaProps: spec.SchemaProps{
3108 Default: map[string]interface{}{},
3109 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceDefinitionVersion"),
3110 },
3111 },
3112 },
3113 },
3114 },
3115 "additionalPrinterColumns": {
3116 VendorExtensible: spec.VendorExtensible{
3117 Extensions: spec.Extensions{
3118 "x-kubernetes-list-type": "atomic",
3119 },
3120 },
3121 SchemaProps: spec.SchemaProps{
3122 Description: "additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If present, this field configures columns for all versions. Top-level and per-version columns are mutually exclusive. If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.",
3123 Type: []string{"array"},
3124 Items: &spec.SchemaOrArray{
3125 Schema: &spec.Schema{
3126 SchemaProps: spec.SchemaProps{
3127 Default: map[string]interface{}{},
3128 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceColumnDefinition"),
3129 },
3130 },
3131 },
3132 },
3133 },
3134 "selectableFields": {
3135 VendorExtensible: spec.VendorExtensible{
3136 Extensions: spec.Extensions{
3137 "x-kubernetes-list-type": "atomic",
3138 },
3139 },
3140 SchemaProps: spec.SchemaProps{
3141 Description: "selectableFields specifies paths to fields that may be used as field selectors. See https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors",
3142 Type: []string{"array"},
3143 Items: &spec.SchemaOrArray{
3144 Schema: &spec.Schema{
3145 SchemaProps: spec.SchemaProps{
3146 Default: map[string]interface{}{},
3147 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.SelectableField"),
3148 },
3149 },
3150 },
3151 },
3152 },
3153 "conversion": {
3154 SchemaProps: spec.SchemaProps{
3155 Description: "conversion defines conversion settings for the CRD.",
3156 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceConversion"),
3157 },
3158 },
3159 "preserveUnknownFields": {
3160 SchemaProps: spec.SchemaProps{
3161 Description: "preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. If false, schemas must be defined for all versions. Defaults to true in v1beta for backwards compatibility. Deprecated: will be required to be false in v1. Preservation of unknown fields can be specified in the validation schema using the `x-kubernetes-preserve-unknown-fields: true` extension. See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning for details.",
3162 Type: []string{"boolean"},
3163 Format: "",
3164 },
3165 },
3166 },
3167 Required: []string{"group", "names", "scope"},
3168 },
3169 },
3170 Dependencies: []string{
3171 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceColumnDefinition", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceConversion", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceDefinitionNames", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceDefinitionVersion", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceSubresources", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceValidation", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.SelectableField"},
3172 }
3173 }
3174
3175 func schema_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
3176 return common.OpenAPIDefinition{
3177 Schema: spec.Schema{
3178 SchemaProps: spec.SchemaProps{
3179 Description: "CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition",
3180 Type: []string{"object"},
3181 Properties: map[string]spec.Schema{
3182 "conditions": {
3183 VendorExtensible: spec.VendorExtensible{
3184 Extensions: spec.Extensions{
3185 "x-kubernetes-list-map-keys": []interface{}{
3186 "type",
3187 },
3188 "x-kubernetes-list-type": "map",
3189 },
3190 },
3191 SchemaProps: spec.SchemaProps{
3192 Description: "conditions indicate state for particular aspects of a CustomResourceDefinition",
3193 Type: []string{"array"},
3194 Items: &spec.SchemaOrArray{
3195 Schema: &spec.Schema{
3196 SchemaProps: spec.SchemaProps{
3197 Default: map[string]interface{}{},
3198 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceDefinitionCondition"),
3199 },
3200 },
3201 },
3202 },
3203 },
3204 "acceptedNames": {
3205 SchemaProps: spec.SchemaProps{
3206 Description: "acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec.",
3207 Default: map[string]interface{}{},
3208 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceDefinitionNames"),
3209 },
3210 },
3211 "storedVersions": {
3212 VendorExtensible: spec.VendorExtensible{
3213 Extensions: spec.Extensions{
3214 "x-kubernetes-list-type": "atomic",
3215 },
3216 },
3217 SchemaProps: spec.SchemaProps{
3218 Description: "storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list.",
3219 Type: []string{"array"},
3220 Items: &spec.SchemaOrArray{
3221 Schema: &spec.Schema{
3222 SchemaProps: spec.SchemaProps{
3223 Default: "",
3224 Type: []string{"string"},
3225 Format: "",
3226 },
3227 },
3228 },
3229 },
3230 },
3231 },
3232 },
3233 },
3234 Dependencies: []string{
3235 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceDefinitionCondition", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceDefinitionNames"},
3236 }
3237 }
3238
3239 func schema_pkg_apis_apiextensions_v1beta1_CustomResourceDefinitionVersion(ref common.ReferenceCallback) common.OpenAPIDefinition {
3240 return common.OpenAPIDefinition{
3241 Schema: spec.Schema{
3242 SchemaProps: spec.SchemaProps{
3243 Description: "CustomResourceDefinitionVersion describes a version for CRD.",
3244 Type: []string{"object"},
3245 Properties: map[string]spec.Schema{
3246 "name": {
3247 SchemaProps: spec.SchemaProps{
3248 Description: "name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true.",
3249 Default: "",
3250 Type: []string{"string"},
3251 Format: "",
3252 },
3253 },
3254 "served": {
3255 SchemaProps: spec.SchemaProps{
3256 Description: "served is a flag enabling/disabling this version from being served via REST APIs",
3257 Default: false,
3258 Type: []string{"boolean"},
3259 Format: "",
3260 },
3261 },
3262 "storage": {
3263 SchemaProps: spec.SchemaProps{
3264 Description: "storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true.",
3265 Default: false,
3266 Type: []string{"boolean"},
3267 Format: "",
3268 },
3269 },
3270 "deprecated": {
3271 SchemaProps: spec.SchemaProps{
3272 Description: "deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false.",
3273 Type: []string{"boolean"},
3274 Format: "",
3275 },
3276 },
3277 "deprecationWarning": {
3278 SchemaProps: spec.SchemaProps{
3279 Description: "deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists.",
3280 Type: []string{"string"},
3281 Format: "",
3282 },
3283 },
3284 "schema": {
3285 SchemaProps: spec.SchemaProps{
3286 Description: "schema describes the schema used for validation and pruning of this version of the custom resource. Top-level and per-version schemas are mutually exclusive. Per-version schemas must not all be set to identical values (top-level validation schema should be used instead).",
3287 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceValidation"),
3288 },
3289 },
3290 "subresources": {
3291 SchemaProps: spec.SchemaProps{
3292 Description: "subresources specify what subresources this version of the defined custom resource have. Top-level and per-version subresources are mutually exclusive. Per-version subresources must not all be set to identical values (top-level subresources should be used instead).",
3293 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceSubresources"),
3294 },
3295 },
3296 "additionalPrinterColumns": {
3297 VendorExtensible: spec.VendorExtensible{
3298 Extensions: spec.Extensions{
3299 "x-kubernetes-list-type": "atomic",
3300 },
3301 },
3302 SchemaProps: spec.SchemaProps{
3303 Description: "additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. Top-level and per-version columns are mutually exclusive. Per-version columns must not all be set to identical values (top-level columns should be used instead). If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.",
3304 Type: []string{"array"},
3305 Items: &spec.SchemaOrArray{
3306 Schema: &spec.Schema{
3307 SchemaProps: spec.SchemaProps{
3308 Default: map[string]interface{}{},
3309 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceColumnDefinition"),
3310 },
3311 },
3312 },
3313 },
3314 },
3315 "selectableFields": {
3316 VendorExtensible: spec.VendorExtensible{
3317 Extensions: spec.Extensions{
3318 "x-kubernetes-list-type": "atomic",
3319 },
3320 },
3321 SchemaProps: spec.SchemaProps{
3322 Description: "selectableFields specifies paths to fields that may be used as field selectors. See https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors",
3323 Type: []string{"array"},
3324 Items: &spec.SchemaOrArray{
3325 Schema: &spec.Schema{
3326 SchemaProps: spec.SchemaProps{
3327 Default: map[string]interface{}{},
3328 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.SelectableField"),
3329 },
3330 },
3331 },
3332 },
3333 },
3334 },
3335 Required: []string{"name", "served", "storage"},
3336 },
3337 },
3338 Dependencies: []string{
3339 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceColumnDefinition", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceSubresources", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceValidation", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.SelectableField"},
3340 }
3341 }
3342
3343 func schema_pkg_apis_apiextensions_v1beta1_CustomResourceSubresourceScale(ref common.ReferenceCallback) common.OpenAPIDefinition {
3344 return common.OpenAPIDefinition{
3345 Schema: spec.Schema{
3346 SchemaProps: spec.SchemaProps{
3347 Description: "CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.",
3348 Type: []string{"object"},
3349 Properties: map[string]spec.Schema{
3350 "specReplicasPath": {
3351 SchemaProps: spec.SchemaProps{
3352 Description: "specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET.",
3353 Default: "",
3354 Type: []string{"string"},
3355 Format: "",
3356 },
3357 },
3358 "statusReplicasPath": {
3359 SchemaProps: spec.SchemaProps{
3360 Description: "statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0.",
3361 Default: "",
3362 Type: []string{"string"},
3363 Format: "",
3364 },
3365 },
3366 "labelSelectorPath": {
3367 SchemaProps: spec.SchemaProps{
3368 Description: "labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string.",
3369 Type: []string{"string"},
3370 Format: "",
3371 },
3372 },
3373 },
3374 Required: []string{"specReplicasPath", "statusReplicasPath"},
3375 },
3376 },
3377 }
3378 }
3379
3380 func schema_pkg_apis_apiextensions_v1beta1_CustomResourceSubresourceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
3381 return common.OpenAPIDefinition{
3382 Schema: spec.Schema{
3383 SchemaProps: spec.SchemaProps{
3384 Description: "CustomResourceSubresourceStatus defines how to serve the status subresource for CustomResources. Status is represented by the `.status` JSON path inside of a CustomResource. When set, * exposes a /status subresource for the custom resource * PUT requests to the /status subresource take a custom resource object, and ignore changes to anything except the status stanza * PUT/POST/PATCH requests to the custom resource ignore changes to the status stanza",
3385 Type: []string{"object"},
3386 },
3387 },
3388 }
3389 }
3390
3391 func schema_pkg_apis_apiextensions_v1beta1_CustomResourceSubresources(ref common.ReferenceCallback) common.OpenAPIDefinition {
3392 return common.OpenAPIDefinition{
3393 Schema: spec.Schema{
3394 SchemaProps: spec.SchemaProps{
3395 Description: "CustomResourceSubresources defines the status and scale subresources for CustomResources.",
3396 Type: []string{"object"},
3397 Properties: map[string]spec.Schema{
3398 "status": {
3399 SchemaProps: spec.SchemaProps{
3400 Description: "status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.",
3401 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceSubresourceStatus"),
3402 },
3403 },
3404 "scale": {
3405 SchemaProps: spec.SchemaProps{
3406 Description: "scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object.",
3407 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceSubresourceScale"),
3408 },
3409 },
3410 },
3411 },
3412 },
3413 Dependencies: []string{
3414 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceSubresourceScale", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.CustomResourceSubresourceStatus"},
3415 }
3416 }
3417
3418 func schema_pkg_apis_apiextensions_v1beta1_CustomResourceValidation(ref common.ReferenceCallback) common.OpenAPIDefinition {
3419 return common.OpenAPIDefinition{
3420 Schema: spec.Schema{
3421 SchemaProps: spec.SchemaProps{
3422 Description: "CustomResourceValidation is a list of validation methods for CustomResources.",
3423 Type: []string{"object"},
3424 Properties: map[string]spec.Schema{
3425 "openAPIV3Schema": {
3426 SchemaProps: spec.SchemaProps{
3427 Description: "openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.",
3428 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.JSONSchemaProps"),
3429 },
3430 },
3431 },
3432 },
3433 },
3434 Dependencies: []string{
3435 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.JSONSchemaProps"},
3436 }
3437 }
3438
3439 func schema_pkg_apis_apiextensions_v1beta1_ExternalDocumentation(ref common.ReferenceCallback) common.OpenAPIDefinition {
3440 return common.OpenAPIDefinition{
3441 Schema: spec.Schema{
3442 SchemaProps: spec.SchemaProps{
3443 Description: "ExternalDocumentation allows referencing an external resource for extended documentation.",
3444 Type: []string{"object"},
3445 Properties: map[string]spec.Schema{
3446 "description": {
3447 SchemaProps: spec.SchemaProps{
3448 Type: []string{"string"},
3449 Format: "",
3450 },
3451 },
3452 "url": {
3453 SchemaProps: spec.SchemaProps{
3454 Type: []string{"string"},
3455 Format: "",
3456 },
3457 },
3458 },
3459 },
3460 },
3461 }
3462 }
3463
3464 func schema_pkg_apis_apiextensions_v1beta1_JSON(ref common.ReferenceCallback) common.OpenAPIDefinition {
3465 return common.OpenAPIDefinition{
3466 Schema: spec.Schema{
3467 SchemaProps: spec.SchemaProps{
3468 Description: "JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.",
3469 Type: v1beta1.JSON{}.OpenAPISchemaType(),
3470 Format: v1beta1.JSON{}.OpenAPISchemaFormat(),
3471 },
3472 },
3473 }
3474 }
3475
3476 func schema_pkg_apis_apiextensions_v1beta1_JSONSchemaProps(ref common.ReferenceCallback) common.OpenAPIDefinition {
3477 return common.OpenAPIDefinition{
3478 Schema: spec.Schema{
3479 SchemaProps: spec.SchemaProps{
3480 Description: "JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).",
3481 Type: []string{"object"},
3482 Properties: map[string]spec.Schema{
3483 "id": {
3484 SchemaProps: spec.SchemaProps{
3485 Type: []string{"string"},
3486 Format: "",
3487 },
3488 },
3489 "$schema": {
3490 SchemaProps: spec.SchemaProps{
3491 Type: []string{"string"},
3492 Format: "",
3493 },
3494 },
3495 "$ref": {
3496 SchemaProps: spec.SchemaProps{
3497 Type: []string{"string"},
3498 Format: "",
3499 },
3500 },
3501 "description": {
3502 SchemaProps: spec.SchemaProps{
3503 Type: []string{"string"},
3504 Format: "",
3505 },
3506 },
3507 "type": {
3508 SchemaProps: spec.SchemaProps{
3509 Type: []string{"string"},
3510 Format: "",
3511 },
3512 },
3513 "format": {
3514 SchemaProps: spec.SchemaProps{
3515 Description: "format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:\n\n- bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like \"0321751043\" or \"978-0321751041\" - isbn10: an ISBN10 number string like \"0321751043\" - isbn13: an ISBN13 number string like \"978-0321751041\" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\\d{3}[- ]?\\d{2}[- ]?\\d{4}$ - hexcolor: an hexadecimal color code like \"#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like \"rgb(255,255,2559\" - byte: base64 encoded binary data - password: any kind of string - date: a date string like \"2006-01-02\" as defined by full-date in RFC3339 - duration: a duration string like \"22 ns\" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like \"2014-12-15T19:30:20.000Z\" as defined by date-time in RFC3339.",
3516 Type: []string{"string"},
3517 Format: "",
3518 },
3519 },
3520 "title": {
3521 SchemaProps: spec.SchemaProps{
3522 Type: []string{"string"},
3523 Format: "",
3524 },
3525 },
3526 "default": {
3527 SchemaProps: spec.SchemaProps{
3528 Description: "default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. CustomResourceDefinitions with defaults must be created using the v1 (or newer) CustomResourceDefinition API.",
3529 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.JSON"),
3530 },
3531 },
3532 "maximum": {
3533 SchemaProps: spec.SchemaProps{
3534 Type: []string{"number"},
3535 Format: "double",
3536 },
3537 },
3538 "exclusiveMaximum": {
3539 SchemaProps: spec.SchemaProps{
3540 Type: []string{"boolean"},
3541 Format: "",
3542 },
3543 },
3544 "minimum": {
3545 SchemaProps: spec.SchemaProps{
3546 Type: []string{"number"},
3547 Format: "double",
3548 },
3549 },
3550 "exclusiveMinimum": {
3551 SchemaProps: spec.SchemaProps{
3552 Type: []string{"boolean"},
3553 Format: "",
3554 },
3555 },
3556 "maxLength": {
3557 SchemaProps: spec.SchemaProps{
3558 Type: []string{"integer"},
3559 Format: "int64",
3560 },
3561 },
3562 "minLength": {
3563 SchemaProps: spec.SchemaProps{
3564 Type: []string{"integer"},
3565 Format: "int64",
3566 },
3567 },
3568 "pattern": {
3569 SchemaProps: spec.SchemaProps{
3570 Type: []string{"string"},
3571 Format: "",
3572 },
3573 },
3574 "maxItems": {
3575 SchemaProps: spec.SchemaProps{
3576 Type: []string{"integer"},
3577 Format: "int64",
3578 },
3579 },
3580 "minItems": {
3581 SchemaProps: spec.SchemaProps{
3582 Type: []string{"integer"},
3583 Format: "int64",
3584 },
3585 },
3586 "uniqueItems": {
3587 SchemaProps: spec.SchemaProps{
3588 Type: []string{"boolean"},
3589 Format: "",
3590 },
3591 },
3592 "multipleOf": {
3593 SchemaProps: spec.SchemaProps{
3594 Type: []string{"number"},
3595 Format: "double",
3596 },
3597 },
3598 "enum": {
3599 VendorExtensible: spec.VendorExtensible{
3600 Extensions: spec.Extensions{
3601 "x-kubernetes-list-type": "atomic",
3602 },
3603 },
3604 SchemaProps: spec.SchemaProps{
3605 Type: []string{"array"},
3606 Items: &spec.SchemaOrArray{
3607 Schema: &spec.Schema{
3608 SchemaProps: spec.SchemaProps{
3609 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.JSON"),
3610 },
3611 },
3612 },
3613 },
3614 },
3615 "maxProperties": {
3616 SchemaProps: spec.SchemaProps{
3617 Type: []string{"integer"},
3618 Format: "int64",
3619 },
3620 },
3621 "minProperties": {
3622 SchemaProps: spec.SchemaProps{
3623 Type: []string{"integer"},
3624 Format: "int64",
3625 },
3626 },
3627 "required": {
3628 VendorExtensible: spec.VendorExtensible{
3629 Extensions: spec.Extensions{
3630 "x-kubernetes-list-type": "atomic",
3631 },
3632 },
3633 SchemaProps: spec.SchemaProps{
3634 Type: []string{"array"},
3635 Items: &spec.SchemaOrArray{
3636 Schema: &spec.Schema{
3637 SchemaProps: spec.SchemaProps{
3638 Default: "",
3639 Type: []string{"string"},
3640 Format: "",
3641 },
3642 },
3643 },
3644 },
3645 },
3646 "items": {
3647 SchemaProps: spec.SchemaProps{
3648 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.JSONSchemaPropsOrArray"),
3649 },
3650 },
3651 "allOf": {
3652 VendorExtensible: spec.VendorExtensible{
3653 Extensions: spec.Extensions{
3654 "x-kubernetes-list-type": "atomic",
3655 },
3656 },
3657 SchemaProps: spec.SchemaProps{
3658 Type: []string{"array"},
3659 Items: &spec.SchemaOrArray{
3660 Schema: &spec.Schema{
3661 SchemaProps: spec.SchemaProps{
3662 Default: map[string]interface{}{},
3663 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.JSONSchemaProps"),
3664 },
3665 },
3666 },
3667 },
3668 },
3669 "oneOf": {
3670 VendorExtensible: spec.VendorExtensible{
3671 Extensions: spec.Extensions{
3672 "x-kubernetes-list-type": "atomic",
3673 },
3674 },
3675 SchemaProps: spec.SchemaProps{
3676 Type: []string{"array"},
3677 Items: &spec.SchemaOrArray{
3678 Schema: &spec.Schema{
3679 SchemaProps: spec.SchemaProps{
3680 Default: map[string]interface{}{},
3681 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.JSONSchemaProps"),
3682 },
3683 },
3684 },
3685 },
3686 },
3687 "anyOf": {
3688 VendorExtensible: spec.VendorExtensible{
3689 Extensions: spec.Extensions{
3690 "x-kubernetes-list-type": "atomic",
3691 },
3692 },
3693 SchemaProps: spec.SchemaProps{
3694 Type: []string{"array"},
3695 Items: &spec.SchemaOrArray{
3696 Schema: &spec.Schema{
3697 SchemaProps: spec.SchemaProps{
3698 Default: map[string]interface{}{},
3699 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.JSONSchemaProps"),
3700 },
3701 },
3702 },
3703 },
3704 },
3705 "not": {
3706 SchemaProps: spec.SchemaProps{
3707 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.JSONSchemaProps"),
3708 },
3709 },
3710 "properties": {
3711 SchemaProps: spec.SchemaProps{
3712 Type: []string{"object"},
3713 AdditionalProperties: &spec.SchemaOrBool{
3714 Allows: true,
3715 Schema: &spec.Schema{
3716 SchemaProps: spec.SchemaProps{
3717 Default: map[string]interface{}{},
3718 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.JSONSchemaProps"),
3719 },
3720 },
3721 },
3722 },
3723 },
3724 "additionalProperties": {
3725 SchemaProps: spec.SchemaProps{
3726 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.JSONSchemaPropsOrBool"),
3727 },
3728 },
3729 "patternProperties": {
3730 SchemaProps: spec.SchemaProps{
3731 Type: []string{"object"},
3732 AdditionalProperties: &spec.SchemaOrBool{
3733 Allows: true,
3734 Schema: &spec.Schema{
3735 SchemaProps: spec.SchemaProps{
3736 Default: map[string]interface{}{},
3737 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.JSONSchemaProps"),
3738 },
3739 },
3740 },
3741 },
3742 },
3743 "dependencies": {
3744 SchemaProps: spec.SchemaProps{
3745 Type: []string{"object"},
3746 AdditionalProperties: &spec.SchemaOrBool{
3747 Allows: true,
3748 Schema: &spec.Schema{
3749 SchemaProps: spec.SchemaProps{
3750 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.JSONSchemaPropsOrStringArray"),
3751 },
3752 },
3753 },
3754 },
3755 },
3756 "additionalItems": {
3757 SchemaProps: spec.SchemaProps{
3758 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.JSONSchemaPropsOrBool"),
3759 },
3760 },
3761 "definitions": {
3762 SchemaProps: spec.SchemaProps{
3763 Type: []string{"object"},
3764 AdditionalProperties: &spec.SchemaOrBool{
3765 Allows: true,
3766 Schema: &spec.Schema{
3767 SchemaProps: spec.SchemaProps{
3768 Default: map[string]interface{}{},
3769 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.JSONSchemaProps"),
3770 },
3771 },
3772 },
3773 },
3774 },
3775 "externalDocs": {
3776 SchemaProps: spec.SchemaProps{
3777 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.ExternalDocumentation"),
3778 },
3779 },
3780 "example": {
3781 SchemaProps: spec.SchemaProps{
3782 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.JSON"),
3783 },
3784 },
3785 "nullable": {
3786 SchemaProps: spec.SchemaProps{
3787 Type: []string{"boolean"},
3788 Format: "",
3789 },
3790 },
3791 "x-kubernetes-preserve-unknown-fields": {
3792 SchemaProps: spec.SchemaProps{
3793 Description: "x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden.",
3794 Type: []string{"boolean"},
3795 Format: "",
3796 },
3797 },
3798 "x-kubernetes-embedded-resource": {
3799 SchemaProps: spec.SchemaProps{
3800 Description: "x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata).",
3801 Type: []string{"boolean"},
3802 Format: "",
3803 },
3804 },
3805 "x-kubernetes-int-or-string": {
3806 SchemaProps: spec.SchemaProps{
3807 Description: "x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns:\n\n1) anyOf:\n - type: integer\n - type: string\n2) allOf:\n - anyOf:\n - type: integer\n - type: string\n - ... zero or more",
3808 Type: []string{"boolean"},
3809 Format: "",
3810 },
3811 },
3812 "x-kubernetes-list-map-keys": {
3813 VendorExtensible: spec.VendorExtensible{
3814 Extensions: spec.Extensions{
3815 "x-kubernetes-list-type": "atomic",
3816 },
3817 },
3818 SchemaProps: spec.SchemaProps{
3819 Description: "x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map.\n\nThis tag MUST only be used on lists that have the \"x-kubernetes-list-type\" extension set to \"map\". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported).\n\nThe properties specified must either be required or have a default value, to ensure those properties are present for all list items.",
3820 Type: []string{"array"},
3821 Items: &spec.SchemaOrArray{
3822 Schema: &spec.Schema{
3823 SchemaProps: spec.SchemaProps{
3824 Default: "",
3825 Type: []string{"string"},
3826 Format: "",
3827 },
3828 },
3829 },
3830 },
3831 },
3832 "x-kubernetes-list-type": {
3833 SchemaProps: spec.SchemaProps{
3834 Description: "x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values:\n\n1) `atomic`: the list is treated as a single entity, like a scalar.\n Atomic lists will be entirely replaced when updated. This extension\n may be used on any type of list (struct, scalar, ...).\n2) `set`:\n Sets are lists that must not have multiple items with the same value. Each\n value must be a scalar, an object with x-kubernetes-map-type `atomic` or an\n array with x-kubernetes-list-type `atomic`.\n3) `map`:\n These lists are like maps in that their elements have a non-index key\n used to identify them. Order is preserved upon merge. The map tag\n must only be used on a list with elements of type object.\nDefaults to atomic for arrays.",
3835 Type: []string{"string"},
3836 Format: "",
3837 },
3838 },
3839 "x-kubernetes-map-type": {
3840 SchemaProps: spec.SchemaProps{
3841 Description: "x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values:\n\n1) `granular`:\n These maps are actual maps (key-value pairs) and each fields are independent\n from each other (they can each be manipulated by separate actors). This is\n the default behaviour for all maps.\n2) `atomic`: the list is treated as a single entity, like a scalar.\n Atomic maps will be entirely replaced when updated.",
3842 Type: []string{"string"},
3843 Format: "",
3844 },
3845 },
3846 "x-kubernetes-validations": {
3847 VendorExtensible: spec.VendorExtensible{
3848 Extensions: spec.Extensions{
3849 "x-kubernetes-list-map-keys": []interface{}{
3850 "rule",
3851 },
3852 "x-kubernetes-list-type": "map",
3853 "x-kubernetes-patch-merge-key": "rule",
3854 "x-kubernetes-patch-strategy": "merge",
3855 },
3856 },
3857 SchemaProps: spec.SchemaProps{
3858 Description: "x-kubernetes-validations describes a list of validation rules written in the CEL expression language. This field is an alpha-level. Using this field requires the feature gate `CustomResourceValidationExpressions` to be enabled.",
3859 Type: []string{"array"},
3860 Items: &spec.SchemaOrArray{
3861 Schema: &spec.Schema{
3862 SchemaProps: spec.SchemaProps{
3863 Default: map[string]interface{}{},
3864 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.ValidationRule"),
3865 },
3866 },
3867 },
3868 },
3869 },
3870 },
3871 },
3872 },
3873 Dependencies: []string{
3874 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.ExternalDocumentation", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.JSON", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.JSONSchemaProps", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.JSONSchemaPropsOrArray", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.JSONSchemaPropsOrBool", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.JSONSchemaPropsOrStringArray", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.ValidationRule"},
3875 }
3876 }
3877
3878 func schema_pkg_apis_apiextensions_v1beta1_JSONSchemaPropsOrArray(ref common.ReferenceCallback) common.OpenAPIDefinition {
3879 return common.OpenAPIDefinition{
3880 Schema: spec.Schema{
3881 SchemaProps: spec.SchemaProps{
3882 Description: "JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes.",
3883 Type: v1beta1.JSONSchemaPropsOrArray{}.OpenAPISchemaType(),
3884 Format: v1beta1.JSONSchemaPropsOrArray{}.OpenAPISchemaFormat(),
3885 },
3886 },
3887 }
3888 }
3889
3890 func schema_pkg_apis_apiextensions_v1beta1_JSONSchemaPropsOrBool(ref common.ReferenceCallback) common.OpenAPIDefinition {
3891 return common.OpenAPIDefinition{
3892 Schema: spec.Schema{
3893 SchemaProps: spec.SchemaProps{
3894 Description: "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property.",
3895 Type: v1beta1.JSONSchemaPropsOrBool{}.OpenAPISchemaType(),
3896 Format: v1beta1.JSONSchemaPropsOrBool{}.OpenAPISchemaFormat(),
3897 },
3898 },
3899 }
3900 }
3901
3902 func schema_pkg_apis_apiextensions_v1beta1_JSONSchemaPropsOrStringArray(ref common.ReferenceCallback) common.OpenAPIDefinition {
3903 return common.OpenAPIDefinition{
3904 Schema: spec.Schema{
3905 SchemaProps: spec.SchemaProps{
3906 Description: "JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string array.",
3907 Type: v1beta1.JSONSchemaPropsOrStringArray{}.OpenAPISchemaType(),
3908 Format: v1beta1.JSONSchemaPropsOrStringArray{}.OpenAPISchemaFormat(),
3909 },
3910 },
3911 }
3912 }
3913
3914 func schema_pkg_apis_apiextensions_v1beta1_SelectableField(ref common.ReferenceCallback) common.OpenAPIDefinition {
3915 return common.OpenAPIDefinition{
3916 Schema: spec.Schema{
3917 SchemaProps: spec.SchemaProps{
3918 Description: "SelectableField specifies the JSON path of a field that may be used with field selectors.",
3919 Type: []string{"object"},
3920 Properties: map[string]spec.Schema{
3921 "jsonPath": {
3922 SchemaProps: spec.SchemaProps{
3923 Description: "jsonPath is a simple JSON path which is evaluated against each custom resource to produce a field selector value. Only JSON paths without the array notation are allowed. Must point to a field of type string, boolean or integer. Types with enum values and strings with formats are allowed. If jsonPath refers to absent field in a resource, the jsonPath evaluates to an empty string. Must not point to metdata fields. Required.",
3924 Default: "",
3925 Type: []string{"string"},
3926 Format: "",
3927 },
3928 },
3929 },
3930 Required: []string{"jsonPath"},
3931 },
3932 },
3933 }
3934 }
3935
3936 func schema_pkg_apis_apiextensions_v1beta1_ServiceReference(ref common.ReferenceCallback) common.OpenAPIDefinition {
3937 return common.OpenAPIDefinition{
3938 Schema: spec.Schema{
3939 SchemaProps: spec.SchemaProps{
3940 Description: "ServiceReference holds a reference to Service.legacy.k8s.io",
3941 Type: []string{"object"},
3942 Properties: map[string]spec.Schema{
3943 "namespace": {
3944 SchemaProps: spec.SchemaProps{
3945 Description: "namespace is the namespace of the service. Required",
3946 Default: "",
3947 Type: []string{"string"},
3948 Format: "",
3949 },
3950 },
3951 "name": {
3952 SchemaProps: spec.SchemaProps{
3953 Description: "name is the name of the service. Required",
3954 Default: "",
3955 Type: []string{"string"},
3956 Format: "",
3957 },
3958 },
3959 "path": {
3960 SchemaProps: spec.SchemaProps{
3961 Description: "path is an optional URL path at which the webhook will be contacted.",
3962 Type: []string{"string"},
3963 Format: "",
3964 },
3965 },
3966 "port": {
3967 SchemaProps: spec.SchemaProps{
3968 Description: "port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility.",
3969 Type: []string{"integer"},
3970 Format: "int32",
3971 },
3972 },
3973 },
3974 Required: []string{"namespace", "name"},
3975 },
3976 },
3977 }
3978 }
3979
3980 func schema_pkg_apis_apiextensions_v1beta1_ValidationRule(ref common.ReferenceCallback) common.OpenAPIDefinition {
3981 return common.OpenAPIDefinition{
3982 Schema: spec.Schema{
3983 SchemaProps: spec.SchemaProps{
3984 Description: "ValidationRule describes a validation rule written in the CEL expression language.",
3985 Type: []string{"object"},
3986 Properties: map[string]spec.Schema{
3987 "rule": {
3988 SchemaProps: spec.SchemaProps{
3989 Description: "Rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the x-kubernetes-validations extension in the schema. The `self` variable in the CEL expression is bound to the scoped value. Example: - Rule scoped to the root of a resource with a status subresource: {\"rule\": \"self.status.actual <= self.spec.maxDesired\"}\n\nIf the Rule is scoped to an object with properties, the accessible properties of the object are field selectable via `self.field` and field presence can be checked via `has(self.field)`. Null valued fields are treated as absent fields in CEL expressions. If the Rule is scoped to an object with additionalProperties (i.e. a map) the value of the map are accessible via `self[mapKey]`, map containment can be checked via `mapKey in self` and all entries of the map are accessible via CEL macros and functions such as `self.all(...)`. If the Rule is scoped to an array, the elements of the array are accessible via `self[i]` and also by macros and functions. If the Rule is scoped to a scalar, `self` is bound to the scalar value. Examples: - Rule scoped to a map of objects: {\"rule\": \"self.components['Widget'].priority < 10\"} - Rule scoped to a list of integers: {\"rule\": \"self.values.all(value, value >= 0 && value < 100)\"} - Rule scoped to a string value: {\"rule\": \"self.startsWith('kube')\"}\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object and from any x-kubernetes-embedded-resource annotated objects. No other metadata properties are accessible.\n\nUnknown data preserved in custom resources via x-kubernetes-preserve-unknown-fields is not accessible in CEL expressions. This includes: - Unknown field values that are preserved by object schemas with x-kubernetes-preserve-unknown-fields. - Object properties where the property schema is of an \"unknown type\". An \"unknown type\" is recursively defined as:\n - A schema with no type and x-kubernetes-preserve-unknown-fields set to true\n - An array where the items schema is of an \"unknown type\"\n - An object where the additionalProperties schema is of an \"unknown type\"\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Rule accessing a property named \"namespace\": {\"rule\": \"self.__namespace__ > 0\"}\n - Rule accessing a property named \"x-prop\": {\"rule\": \"self.x__dash__prop > 0\"}\n - Rule accessing a property named \"redact__d\": {\"rule\": \"self.redact__underscores__d > 0\"}\n\nEquality on arrays with x-kubernetes-list-type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\n\nIf `rule` makes use of the `oldSelf` variable it is implicitly a `transition rule`.\n\nBy default, the `oldSelf` variable is the same type as `self`. When `optionalOldSelf` is true, the `oldSelf` variable is a CEL optional\n variable whose value() is the same type as `self`.\nSee the documentation for the `optionalOldSelf` field for details.\n\nTransition rules by default are applied only on UPDATE requests and are skipped if an old value could not be found. You can opt a transition rule into unconditional evaluation by setting `optionalOldSelf` to true.",
3990 Default: "",
3991 Type: []string{"string"},
3992 Format: "",
3993 },
3994 },
3995 "message": {
3996 SchemaProps: spec.SchemaProps{
3997 Description: "Message represents the message displayed when validation fails. The message is required if the Rule contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\"",
3998 Type: []string{"string"},
3999 Format: "",
4000 },
4001 },
4002 "messageExpression": {
4003 SchemaProps: spec.SchemaProps{
4004 Description: "MessageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a rule, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the rule; the only difference is the return type. Example: \"x must be less than max (\"+string(self.max)+\")\"",
4005 Type: []string{"string"},
4006 Format: "",
4007 },
4008 },
4009 "reason": {
4010 SchemaProps: spec.SchemaProps{
4011 Description: "reason provides a machine-readable validation failure reason that is returned to the caller when a request fails this validation rule. The HTTP status code returned to the caller will match the reason of the reason of the first failed validation rule. The currently supported reasons are: \"FieldValueInvalid\", \"FieldValueForbidden\", \"FieldValueRequired\", \"FieldValueDuplicate\". If not set, default to use \"FieldValueInvalid\". All future added reasons must be accepted by clients when reading this value and unknown reasons should be treated as FieldValueInvalid.\n\nPossible enum values:\n - `\"FieldValueDuplicate\"` is used to report collisions of values that must be unique (e.g. unique IDs).\n - `\"FieldValueForbidden\"` is used to report valid (as per formatting rules) values which would be accepted under some conditions, but which are not permitted by the current conditions (such as security policy).\n - `\"FieldValueInvalid\"` is used to report malformed values (e.g. failed regex match, too long, out of bounds).\n - `\"FieldValueRequired\"` is used to report required values that are not provided (e.g. empty strings, null values, or empty arrays).",
4012 Type: []string{"string"},
4013 Format: "",
4014 Enum: []interface{}{"FieldValueDuplicate", "FieldValueForbidden", "FieldValueInvalid", "FieldValueRequired"},
4015 },
4016 },
4017 "fieldPath": {
4018 SchemaProps: spec.SchemaProps{
4019 Description: "fieldPath represents the field path returned when the validation fails. It must be a relative JSON path (i.e. with array notation) scoped to the location of this x-kubernetes-validations extension in the schema and refer to an existing field. e.g. when validation checks if a specific attribute `foo` under a map `testMap`, the fieldPath could be set to `.testMap.foo` If the validation checks two lists must have unique attributes, the fieldPath could be set to either of the list: e.g. `.testList` It does not support list numeric index. It supports child operation to refer to an existing field currently. Refer to [JSONPath support in Kubernetes](https://kubernetes.io/docs/reference/kubectl/jsonpath/) for more info. Numeric index of array is not supported. For field name which contains special characters, use `['specialName']` to refer the field name. e.g. for attribute `foo.34$` appears in a list `testList`, the fieldPath could be set to `.testList['foo.34$']`",
4020 Type: []string{"string"},
4021 Format: "",
4022 },
4023 },
4024 "optionalOldSelf": {
4025 SchemaProps: spec.SchemaProps{
4026 Description: "optionalOldSelf is used to opt a transition rule into evaluation even when the object is first created, or if the old object is missing the value.\n\nWhen enabled `oldSelf` will be a CEL optional whose value will be `None` if there is no old value, or when the object is initially created.\n\nYou may check for presence of oldSelf using `oldSelf.hasValue()` and unwrap it after checking using `oldSelf.value()`. Check the CEL documentation for Optional types for more information: https://pkg.go.dev/github.com/google/cel-go/cel#OptionalTypes\n\nMay not be set unless `oldSelf` is used in `rule`.",
4027 Type: []string{"boolean"},
4028 Format: "",
4029 },
4030 },
4031 },
4032 Required: []string{"rule"},
4033 },
4034 },
4035 }
4036 }
4037
4038 func schema_pkg_apis_apiextensions_v1beta1_WebhookClientConfig(ref common.ReferenceCallback) common.OpenAPIDefinition {
4039 return common.OpenAPIDefinition{
4040 Schema: spec.Schema{
4041 SchemaProps: spec.SchemaProps{
4042 Description: "WebhookClientConfig contains the information to make a TLS connection with the webhook.",
4043 Type: []string{"object"},
4044 Properties: map[string]spec.Schema{
4045 "url": {
4046 SchemaProps: spec.SchemaProps{
4047 Description: "url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.",
4048 Type: []string{"string"},
4049 Format: "",
4050 },
4051 },
4052 "service": {
4053 SchemaProps: spec.SchemaProps{
4054 Description: "service is a reference to the service for this webhook. Either service or url must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`.",
4055 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.ServiceReference"),
4056 },
4057 },
4058 "caBundle": {
4059 SchemaProps: spec.SchemaProps{
4060 Description: "caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.",
4061 Type: []string{"string"},
4062 Format: "byte",
4063 },
4064 },
4065 },
4066 },
4067 },
4068 Dependencies: []string{
4069 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1.ServiceReference"},
4070 }
4071 }
4072
4073 func schema_pkg_apis_meta_v1_APIGroup(ref common.ReferenceCallback) common.OpenAPIDefinition {
4074 return common.OpenAPIDefinition{
4075 Schema: spec.Schema{
4076 SchemaProps: spec.SchemaProps{
4077 Description: "APIGroup contains the name, the supported versions, and the preferred version of a group.",
4078 Type: []string{"object"},
4079 Properties: map[string]spec.Schema{
4080 "kind": {
4081 SchemaProps: spec.SchemaProps{
4082 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",
4083 Type: []string{"string"},
4084 Format: "",
4085 },
4086 },
4087 "apiVersion": {
4088 SchemaProps: spec.SchemaProps{
4089 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",
4090 Type: []string{"string"},
4091 Format: "",
4092 },
4093 },
4094 "name": {
4095 SchemaProps: spec.SchemaProps{
4096 Description: "name is the name of the group.",
4097 Default: "",
4098 Type: []string{"string"},
4099 Format: "",
4100 },
4101 },
4102 "versions": {
4103 VendorExtensible: spec.VendorExtensible{
4104 Extensions: spec.Extensions{
4105 "x-kubernetes-list-type": "atomic",
4106 },
4107 },
4108 SchemaProps: spec.SchemaProps{
4109 Description: "versions are the versions supported in this group.",
4110 Type: []string{"array"},
4111 Items: &spec.SchemaOrArray{
4112 Schema: &spec.Schema{
4113 SchemaProps: spec.SchemaProps{
4114 Default: map[string]interface{}{},
4115 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery"),
4116 },
4117 },
4118 },
4119 },
4120 },
4121 "preferredVersion": {
4122 SchemaProps: spec.SchemaProps{
4123 Description: "preferredVersion is the version preferred by the API server, which probably is the storage version.",
4124 Default: map[string]interface{}{},
4125 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery"),
4126 },
4127 },
4128 "serverAddressByClientCIDRs": {
4129 VendorExtensible: spec.VendorExtensible{
4130 Extensions: spec.Extensions{
4131 "x-kubernetes-list-type": "atomic",
4132 },
4133 },
4134 SchemaProps: spec.SchemaProps{
4135 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.",
4136 Type: []string{"array"},
4137 Items: &spec.SchemaOrArray{
4138 Schema: &spec.Schema{
4139 SchemaProps: spec.SchemaProps{
4140 Default: map[string]interface{}{},
4141 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"),
4142 },
4143 },
4144 },
4145 },
4146 },
4147 },
4148 Required: []string{"name", "versions"},
4149 },
4150 },
4151 Dependencies: []string{
4152 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery", "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"},
4153 }
4154 }
4155
4156 func schema_pkg_apis_meta_v1_APIGroupList(ref common.ReferenceCallback) common.OpenAPIDefinition {
4157 return common.OpenAPIDefinition{
4158 Schema: spec.Schema{
4159 SchemaProps: spec.SchemaProps{
4160 Description: "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.",
4161 Type: []string{"object"},
4162 Properties: map[string]spec.Schema{
4163 "kind": {
4164 SchemaProps: spec.SchemaProps{
4165 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",
4166 Type: []string{"string"},
4167 Format: "",
4168 },
4169 },
4170 "apiVersion": {
4171 SchemaProps: spec.SchemaProps{
4172 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",
4173 Type: []string{"string"},
4174 Format: "",
4175 },
4176 },
4177 "groups": {
4178 VendorExtensible: spec.VendorExtensible{
4179 Extensions: spec.Extensions{
4180 "x-kubernetes-list-type": "atomic",
4181 },
4182 },
4183 SchemaProps: spec.SchemaProps{
4184 Description: "groups is a list of APIGroup.",
4185 Type: []string{"array"},
4186 Items: &spec.SchemaOrArray{
4187 Schema: &spec.Schema{
4188 SchemaProps: spec.SchemaProps{
4189 Default: map[string]interface{}{},
4190 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup"),
4191 },
4192 },
4193 },
4194 },
4195 },
4196 },
4197 Required: []string{"groups"},
4198 },
4199 },
4200 Dependencies: []string{
4201 "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup"},
4202 }
4203 }
4204
4205 func schema_pkg_apis_meta_v1_APIResource(ref common.ReferenceCallback) common.OpenAPIDefinition {
4206 return common.OpenAPIDefinition{
4207 Schema: spec.Schema{
4208 SchemaProps: spec.SchemaProps{
4209 Description: "APIResource specifies the name of a resource and whether it is namespaced.",
4210 Type: []string{"object"},
4211 Properties: map[string]spec.Schema{
4212 "name": {
4213 SchemaProps: spec.SchemaProps{
4214 Description: "name is the plural name of the resource.",
4215 Default: "",
4216 Type: []string{"string"},
4217 Format: "",
4218 },
4219 },
4220 "singularName": {
4221 SchemaProps: spec.SchemaProps{
4222 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.",
4223 Default: "",
4224 Type: []string{"string"},
4225 Format: "",
4226 },
4227 },
4228 "namespaced": {
4229 SchemaProps: spec.SchemaProps{
4230 Description: "namespaced indicates if a resource is namespaced or not.",
4231 Default: false,
4232 Type: []string{"boolean"},
4233 Format: "",
4234 },
4235 },
4236 "group": {
4237 SchemaProps: spec.SchemaProps{
4238 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\".",
4239 Type: []string{"string"},
4240 Format: "",
4241 },
4242 },
4243 "version": {
4244 SchemaProps: spec.SchemaProps{
4245 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)\".",
4246 Type: []string{"string"},
4247 Format: "",
4248 },
4249 },
4250 "kind": {
4251 SchemaProps: spec.SchemaProps{
4252 Description: "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')",
4253 Default: "",
4254 Type: []string{"string"},
4255 Format: "",
4256 },
4257 },
4258 "verbs": {
4259 SchemaProps: spec.SchemaProps{
4260 Description: "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)",
4261 Type: []string{"array"},
4262 Items: &spec.SchemaOrArray{
4263 Schema: &spec.Schema{
4264 SchemaProps: spec.SchemaProps{
4265 Default: "",
4266 Type: []string{"string"},
4267 Format: "",
4268 },
4269 },
4270 },
4271 },
4272 },
4273 "shortNames": {
4274 VendorExtensible: spec.VendorExtensible{
4275 Extensions: spec.Extensions{
4276 "x-kubernetes-list-type": "atomic",
4277 },
4278 },
4279 SchemaProps: spec.SchemaProps{
4280 Description: "shortNames is a list of suggested short names of the resource.",
4281 Type: []string{"array"},
4282 Items: &spec.SchemaOrArray{
4283 Schema: &spec.Schema{
4284 SchemaProps: spec.SchemaProps{
4285 Default: "",
4286 Type: []string{"string"},
4287 Format: "",
4288 },
4289 },
4290 },
4291 },
4292 },
4293 "categories": {
4294 VendorExtensible: spec.VendorExtensible{
4295 Extensions: spec.Extensions{
4296 "x-kubernetes-list-type": "atomic",
4297 },
4298 },
4299 SchemaProps: spec.SchemaProps{
4300 Description: "categories is a list of the grouped resources this resource belongs to (e.g. 'all')",
4301 Type: []string{"array"},
4302 Items: &spec.SchemaOrArray{
4303 Schema: &spec.Schema{
4304 SchemaProps: spec.SchemaProps{
4305 Default: "",
4306 Type: []string{"string"},
4307 Format: "",
4308 },
4309 },
4310 },
4311 },
4312 },
4313 "storageVersionHash": {
4314 SchemaProps: spec.SchemaProps{
4315 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.",
4316 Type: []string{"string"},
4317 Format: "",
4318 },
4319 },
4320 },
4321 Required: []string{"name", "singularName", "namespaced", "kind", "verbs"},
4322 },
4323 },
4324 }
4325 }
4326
4327 func schema_pkg_apis_meta_v1_APIResourceList(ref common.ReferenceCallback) common.OpenAPIDefinition {
4328 return common.OpenAPIDefinition{
4329 Schema: spec.Schema{
4330 SchemaProps: spec.SchemaProps{
4331 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.",
4332 Type: []string{"object"},
4333 Properties: map[string]spec.Schema{
4334 "kind": {
4335 SchemaProps: spec.SchemaProps{
4336 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",
4337 Type: []string{"string"},
4338 Format: "",
4339 },
4340 },
4341 "apiVersion": {
4342 SchemaProps: spec.SchemaProps{
4343 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",
4344 Type: []string{"string"},
4345 Format: "",
4346 },
4347 },
4348 "groupVersion": {
4349 SchemaProps: spec.SchemaProps{
4350 Description: "groupVersion is the group and version this APIResourceList is for.",
4351 Default: "",
4352 Type: []string{"string"},
4353 Format: "",
4354 },
4355 },
4356 "resources": {
4357 VendorExtensible: spec.VendorExtensible{
4358 Extensions: spec.Extensions{
4359 "x-kubernetes-list-type": "atomic",
4360 },
4361 },
4362 SchemaProps: spec.SchemaProps{
4363 Description: "resources contains the name of the resources and if they are namespaced.",
4364 Type: []string{"array"},
4365 Items: &spec.SchemaOrArray{
4366 Schema: &spec.Schema{
4367 SchemaProps: spec.SchemaProps{
4368 Default: map[string]interface{}{},
4369 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.APIResource"),
4370 },
4371 },
4372 },
4373 },
4374 },
4375 },
4376 Required: []string{"groupVersion", "resources"},
4377 },
4378 },
4379 Dependencies: []string{
4380 "k8s.io/apimachinery/pkg/apis/meta/v1.APIResource"},
4381 }
4382 }
4383
4384 func schema_pkg_apis_meta_v1_APIVersions(ref common.ReferenceCallback) common.OpenAPIDefinition {
4385 return common.OpenAPIDefinition{
4386 Schema: spec.Schema{
4387 SchemaProps: spec.SchemaProps{
4388 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.",
4389 Type: []string{"object"},
4390 Properties: map[string]spec.Schema{
4391 "kind": {
4392 SchemaProps: spec.SchemaProps{
4393 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",
4394 Type: []string{"string"},
4395 Format: "",
4396 },
4397 },
4398 "apiVersion": {
4399 SchemaProps: spec.SchemaProps{
4400 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",
4401 Type: []string{"string"},
4402 Format: "",
4403 },
4404 },
4405 "versions": {
4406 VendorExtensible: spec.VendorExtensible{
4407 Extensions: spec.Extensions{
4408 "x-kubernetes-list-type": "atomic",
4409 },
4410 },
4411 SchemaProps: spec.SchemaProps{
4412 Description: "versions are the api versions that are available.",
4413 Type: []string{"array"},
4414 Items: &spec.SchemaOrArray{
4415 Schema: &spec.Schema{
4416 SchemaProps: spec.SchemaProps{
4417 Default: "",
4418 Type: []string{"string"},
4419 Format: "",
4420 },
4421 },
4422 },
4423 },
4424 },
4425 "serverAddressByClientCIDRs": {
4426 VendorExtensible: spec.VendorExtensible{
4427 Extensions: spec.Extensions{
4428 "x-kubernetes-list-type": "atomic",
4429 },
4430 },
4431 SchemaProps: spec.SchemaProps{
4432 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.",
4433 Type: []string{"array"},
4434 Items: &spec.SchemaOrArray{
4435 Schema: &spec.Schema{
4436 SchemaProps: spec.SchemaProps{
4437 Default: map[string]interface{}{},
4438 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"),
4439 },
4440 },
4441 },
4442 },
4443 },
4444 },
4445 Required: []string{"versions", "serverAddressByClientCIDRs"},
4446 },
4447 },
4448 Dependencies: []string{
4449 "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"},
4450 }
4451 }
4452
4453 func schema_pkg_apis_meta_v1_ApplyOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
4454 return common.OpenAPIDefinition{
4455 Schema: spec.Schema{
4456 SchemaProps: spec.SchemaProps{
4457 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.",
4458 Type: []string{"object"},
4459 Properties: map[string]spec.Schema{
4460 "kind": {
4461 SchemaProps: spec.SchemaProps{
4462 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",
4463 Type: []string{"string"},
4464 Format: "",
4465 },
4466 },
4467 "apiVersion": {
4468 SchemaProps: spec.SchemaProps{
4469 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",
4470 Type: []string{"string"},
4471 Format: "",
4472 },
4473 },
4474 "dryRun": {
4475 VendorExtensible: spec.VendorExtensible{
4476 Extensions: spec.Extensions{
4477 "x-kubernetes-list-type": "atomic",
4478 },
4479 },
4480 SchemaProps: spec.SchemaProps{
4481 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",
4482 Type: []string{"array"},
4483 Items: &spec.SchemaOrArray{
4484 Schema: &spec.Schema{
4485 SchemaProps: spec.SchemaProps{
4486 Default: "",
4487 Type: []string{"string"},
4488 Format: "",
4489 },
4490 },
4491 },
4492 },
4493 },
4494 "force": {
4495 SchemaProps: spec.SchemaProps{
4496 Description: "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people.",
4497 Default: false,
4498 Type: []string{"boolean"},
4499 Format: "",
4500 },
4501 },
4502 "fieldManager": {
4503 SchemaProps: spec.SchemaProps{
4504 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.",
4505 Default: "",
4506 Type: []string{"string"},
4507 Format: "",
4508 },
4509 },
4510 },
4511 Required: []string{"force", "fieldManager"},
4512 },
4513 },
4514 }
4515 }
4516
4517 func schema_pkg_apis_meta_v1_Condition(ref common.ReferenceCallback) common.OpenAPIDefinition {
4518 return common.OpenAPIDefinition{
4519 Schema: spec.Schema{
4520 SchemaProps: spec.SchemaProps{
4521 Description: "Condition contains details for one aspect of the current state of this API Resource.",
4522 Type: []string{"object"},
4523 Properties: map[string]spec.Schema{
4524 "type": {
4525 SchemaProps: spec.SchemaProps{
4526 Description: "type of condition in CamelCase or in foo.example.com/CamelCase.",
4527 Default: "",
4528 Type: []string{"string"},
4529 Format: "",
4530 },
4531 },
4532 "status": {
4533 SchemaProps: spec.SchemaProps{
4534 Description: "status of the condition, one of True, False, Unknown.",
4535 Default: "",
4536 Type: []string{"string"},
4537 Format: "",
4538 },
4539 },
4540 "observedGeneration": {
4541 SchemaProps: spec.SchemaProps{
4542 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.",
4543 Type: []string{"integer"},
4544 Format: "int64",
4545 },
4546 },
4547 "lastTransitionTime": {
4548 SchemaProps: spec.SchemaProps{
4549 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.",
4550 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
4551 },
4552 },
4553 "reason": {
4554 SchemaProps: spec.SchemaProps{
4555 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.",
4556 Default: "",
4557 Type: []string{"string"},
4558 Format: "",
4559 },
4560 },
4561 "message": {
4562 SchemaProps: spec.SchemaProps{
4563 Description: "message is a human readable message indicating details about the transition. This may be an empty string.",
4564 Default: "",
4565 Type: []string{"string"},
4566 Format: "",
4567 },
4568 },
4569 },
4570 Required: []string{"type", "status", "lastTransitionTime", "reason", "message"},
4571 },
4572 },
4573 Dependencies: []string{
4574 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
4575 }
4576 }
4577
4578 func schema_pkg_apis_meta_v1_CreateOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
4579 return common.OpenAPIDefinition{
4580 Schema: spec.Schema{
4581 SchemaProps: spec.SchemaProps{
4582 Description: "CreateOptions may be provided when creating an API object.",
4583 Type: []string{"object"},
4584 Properties: map[string]spec.Schema{
4585 "kind": {
4586 SchemaProps: spec.SchemaProps{
4587 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",
4588 Type: []string{"string"},
4589 Format: "",
4590 },
4591 },
4592 "apiVersion": {
4593 SchemaProps: spec.SchemaProps{
4594 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",
4595 Type: []string{"string"},
4596 Format: "",
4597 },
4598 },
4599 "dryRun": {
4600 VendorExtensible: spec.VendorExtensible{
4601 Extensions: spec.Extensions{
4602 "x-kubernetes-list-type": "atomic",
4603 },
4604 },
4605 SchemaProps: spec.SchemaProps{
4606 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",
4607 Type: []string{"array"},
4608 Items: &spec.SchemaOrArray{
4609 Schema: &spec.Schema{
4610 SchemaProps: spec.SchemaProps{
4611 Default: "",
4612 Type: []string{"string"},
4613 Format: "",
4614 },
4615 },
4616 },
4617 },
4618 },
4619 "fieldManager": {
4620 SchemaProps: spec.SchemaProps{
4621 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.",
4622 Type: []string{"string"},
4623 Format: "",
4624 },
4625 },
4626 "fieldValidation": {
4627 SchemaProps: spec.SchemaProps{
4628 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.",
4629 Type: []string{"string"},
4630 Format: "",
4631 },
4632 },
4633 },
4634 },
4635 },
4636 }
4637 }
4638
4639 func schema_pkg_apis_meta_v1_DeleteOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
4640 return common.OpenAPIDefinition{
4641 Schema: spec.Schema{
4642 SchemaProps: spec.SchemaProps{
4643 Description: "DeleteOptions may be provided when deleting an API object.",
4644 Type: []string{"object"},
4645 Properties: map[string]spec.Schema{
4646 "kind": {
4647 SchemaProps: spec.SchemaProps{
4648 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",
4649 Type: []string{"string"},
4650 Format: "",
4651 },
4652 },
4653 "apiVersion": {
4654 SchemaProps: spec.SchemaProps{
4655 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",
4656 Type: []string{"string"},
4657 Format: "",
4658 },
4659 },
4660 "gracePeriodSeconds": {
4661 SchemaProps: spec.SchemaProps{
4662 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.",
4663 Type: []string{"integer"},
4664 Format: "int64",
4665 },
4666 },
4667 "preconditions": {
4668 SchemaProps: spec.SchemaProps{
4669 Description: "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.",
4670 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions"),
4671 },
4672 },
4673 "orphanDependents": {
4674 SchemaProps: spec.SchemaProps{
4675 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.",
4676 Type: []string{"boolean"},
4677 Format: "",
4678 },
4679 },
4680 "propagationPolicy": {
4681 SchemaProps: spec.SchemaProps{
4682 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.",
4683 Type: []string{"string"},
4684 Format: "",
4685 },
4686 },
4687 "dryRun": {
4688 VendorExtensible: spec.VendorExtensible{
4689 Extensions: spec.Extensions{
4690 "x-kubernetes-list-type": "atomic",
4691 },
4692 },
4693 SchemaProps: spec.SchemaProps{
4694 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",
4695 Type: []string{"array"},
4696 Items: &spec.SchemaOrArray{
4697 Schema: &spec.Schema{
4698 SchemaProps: spec.SchemaProps{
4699 Default: "",
4700 Type: []string{"string"},
4701 Format: "",
4702 },
4703 },
4704 },
4705 },
4706 },
4707 },
4708 },
4709 },
4710 Dependencies: []string{
4711 "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions"},
4712 }
4713 }
4714
4715 func schema_pkg_apis_meta_v1_Duration(ref common.ReferenceCallback) common.OpenAPIDefinition {
4716 return common.OpenAPIDefinition{
4717 Schema: spec.Schema{
4718 SchemaProps: spec.SchemaProps{
4719 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.",
4720 Type: metav1.Duration{}.OpenAPISchemaType(),
4721 Format: metav1.Duration{}.OpenAPISchemaFormat(),
4722 },
4723 },
4724 }
4725 }
4726
4727 func schema_pkg_apis_meta_v1_FieldsV1(ref common.ReferenceCallback) common.OpenAPIDefinition {
4728 return common.OpenAPIDefinition{
4729 Schema: spec.Schema{
4730 SchemaProps: spec.SchemaProps{
4731 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",
4732 Type: []string{"object"},
4733 },
4734 },
4735 }
4736 }
4737
4738 func schema_pkg_apis_meta_v1_GetOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
4739 return common.OpenAPIDefinition{
4740 Schema: spec.Schema{
4741 SchemaProps: spec.SchemaProps{
4742 Description: "GetOptions is the standard query options to the standard REST get call.",
4743 Type: []string{"object"},
4744 Properties: map[string]spec.Schema{
4745 "kind": {
4746 SchemaProps: spec.SchemaProps{
4747 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",
4748 Type: []string{"string"},
4749 Format: "",
4750 },
4751 },
4752 "apiVersion": {
4753 SchemaProps: spec.SchemaProps{
4754 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",
4755 Type: []string{"string"},
4756 Format: "",
4757 },
4758 },
4759 "resourceVersion": {
4760 SchemaProps: spec.SchemaProps{
4761 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",
4762 Type: []string{"string"},
4763 Format: "",
4764 },
4765 },
4766 },
4767 },
4768 },
4769 }
4770 }
4771
4772 func schema_pkg_apis_meta_v1_GroupKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
4773 return common.OpenAPIDefinition{
4774 Schema: spec.Schema{
4775 SchemaProps: spec.SchemaProps{
4776 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",
4777 Type: []string{"object"},
4778 Properties: map[string]spec.Schema{
4779 "group": {
4780 SchemaProps: spec.SchemaProps{
4781 Default: "",
4782 Type: []string{"string"},
4783 Format: "",
4784 },
4785 },
4786 "kind": {
4787 SchemaProps: spec.SchemaProps{
4788 Default: "",
4789 Type: []string{"string"},
4790 Format: "",
4791 },
4792 },
4793 },
4794 Required: []string{"group", "kind"},
4795 },
4796 },
4797 }
4798 }
4799
4800 func schema_pkg_apis_meta_v1_GroupResource(ref common.ReferenceCallback) common.OpenAPIDefinition {
4801 return common.OpenAPIDefinition{
4802 Schema: spec.Schema{
4803 SchemaProps: spec.SchemaProps{
4804 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",
4805 Type: []string{"object"},
4806 Properties: map[string]spec.Schema{
4807 "group": {
4808 SchemaProps: spec.SchemaProps{
4809 Default: "",
4810 Type: []string{"string"},
4811 Format: "",
4812 },
4813 },
4814 "resource": {
4815 SchemaProps: spec.SchemaProps{
4816 Default: "",
4817 Type: []string{"string"},
4818 Format: "",
4819 },
4820 },
4821 },
4822 Required: []string{"group", "resource"},
4823 },
4824 },
4825 }
4826 }
4827
4828 func schema_pkg_apis_meta_v1_GroupVersion(ref common.ReferenceCallback) common.OpenAPIDefinition {
4829 return common.OpenAPIDefinition{
4830 Schema: spec.Schema{
4831 SchemaProps: spec.SchemaProps{
4832 Description: "GroupVersion contains the \"group\" and the \"version\", which uniquely identifies the API.",
4833 Type: []string{"object"},
4834 Properties: map[string]spec.Schema{
4835 "group": {
4836 SchemaProps: spec.SchemaProps{
4837 Default: "",
4838 Type: []string{"string"},
4839 Format: "",
4840 },
4841 },
4842 "version": {
4843 SchemaProps: spec.SchemaProps{
4844 Default: "",
4845 Type: []string{"string"},
4846 Format: "",
4847 },
4848 },
4849 },
4850 Required: []string{"group", "version"},
4851 },
4852 },
4853 }
4854 }
4855
4856 func schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref common.ReferenceCallback) common.OpenAPIDefinition {
4857 return common.OpenAPIDefinition{
4858 Schema: spec.Schema{
4859 SchemaProps: spec.SchemaProps{
4860 Description: "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.",
4861 Type: []string{"object"},
4862 Properties: map[string]spec.Schema{
4863 "groupVersion": {
4864 SchemaProps: spec.SchemaProps{
4865 Description: "groupVersion specifies the API group and version in the form \"group/version\"",
4866 Default: "",
4867 Type: []string{"string"},
4868 Format: "",
4869 },
4870 },
4871 "version": {
4872 SchemaProps: spec.SchemaProps{
4873 Description: "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.",
4874 Default: "",
4875 Type: []string{"string"},
4876 Format: "",
4877 },
4878 },
4879 },
4880 Required: []string{"groupVersion", "version"},
4881 },
4882 },
4883 }
4884 }
4885
4886 func schema_pkg_apis_meta_v1_GroupVersionKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
4887 return common.OpenAPIDefinition{
4888 Schema: spec.Schema{
4889 SchemaProps: spec.SchemaProps{
4890 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",
4891 Type: []string{"object"},
4892 Properties: map[string]spec.Schema{
4893 "group": {
4894 SchemaProps: spec.SchemaProps{
4895 Default: "",
4896 Type: []string{"string"},
4897 Format: "",
4898 },
4899 },
4900 "version": {
4901 SchemaProps: spec.SchemaProps{
4902 Default: "",
4903 Type: []string{"string"},
4904 Format: "",
4905 },
4906 },
4907 "kind": {
4908 SchemaProps: spec.SchemaProps{
4909 Default: "",
4910 Type: []string{"string"},
4911 Format: "",
4912 },
4913 },
4914 },
4915 Required: []string{"group", "version", "kind"},
4916 },
4917 },
4918 }
4919 }
4920
4921 func schema_pkg_apis_meta_v1_GroupVersionResource(ref common.ReferenceCallback) common.OpenAPIDefinition {
4922 return common.OpenAPIDefinition{
4923 Schema: spec.Schema{
4924 SchemaProps: spec.SchemaProps{
4925 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",
4926 Type: []string{"object"},
4927 Properties: map[string]spec.Schema{
4928 "group": {
4929 SchemaProps: spec.SchemaProps{
4930 Default: "",
4931 Type: []string{"string"},
4932 Format: "",
4933 },
4934 },
4935 "version": {
4936 SchemaProps: spec.SchemaProps{
4937 Default: "",
4938 Type: []string{"string"},
4939 Format: "",
4940 },
4941 },
4942 "resource": {
4943 SchemaProps: spec.SchemaProps{
4944 Default: "",
4945 Type: []string{"string"},
4946 Format: "",
4947 },
4948 },
4949 },
4950 Required: []string{"group", "version", "resource"},
4951 },
4952 },
4953 }
4954 }
4955
4956 func schema_pkg_apis_meta_v1_InternalEvent(ref common.ReferenceCallback) common.OpenAPIDefinition {
4957 return common.OpenAPIDefinition{
4958 Schema: spec.Schema{
4959 SchemaProps: spec.SchemaProps{
4960 Description: "InternalEvent makes watch.Event versioned",
4961 Type: []string{"object"},
4962 Properties: map[string]spec.Schema{
4963 "Type": {
4964 SchemaProps: spec.SchemaProps{
4965 Default: "",
4966 Type: []string{"string"},
4967 Format: "",
4968 },
4969 },
4970 "Object": {
4971 SchemaProps: spec.SchemaProps{
4972 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.",
4973 Ref: ref("k8s.io/apimachinery/pkg/runtime.Object"),
4974 },
4975 },
4976 },
4977 Required: []string{"Type", "Object"},
4978 },
4979 },
4980 Dependencies: []string{
4981 "k8s.io/apimachinery/pkg/runtime.Object"},
4982 }
4983 }
4984
4985 func schema_pkg_apis_meta_v1_LabelSelector(ref common.ReferenceCallback) common.OpenAPIDefinition {
4986 return common.OpenAPIDefinition{
4987 Schema: spec.Schema{
4988 SchemaProps: spec.SchemaProps{
4989 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.",
4990 Type: []string{"object"},
4991 Properties: map[string]spec.Schema{
4992 "matchLabels": {
4993 SchemaProps: spec.SchemaProps{
4994 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.",
4995 Type: []string{"object"},
4996 AdditionalProperties: &spec.SchemaOrBool{
4997 Allows: true,
4998 Schema: &spec.Schema{
4999 SchemaProps: spec.SchemaProps{
5000 Default: "",
5001 Type: []string{"string"},
5002 Format: "",
5003 },
5004 },
5005 },
5006 },
5007 },
5008 "matchExpressions": {
5009 VendorExtensible: spec.VendorExtensible{
5010 Extensions: spec.Extensions{
5011 "x-kubernetes-list-type": "atomic",
5012 },
5013 },
5014 SchemaProps: spec.SchemaProps{
5015 Description: "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
5016 Type: []string{"array"},
5017 Items: &spec.SchemaOrArray{
5018 Schema: &spec.Schema{
5019 SchemaProps: spec.SchemaProps{
5020 Default: map[string]interface{}{},
5021 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"),
5022 },
5023 },
5024 },
5025 },
5026 },
5027 },
5028 },
5029 VendorExtensible: spec.VendorExtensible{
5030 Extensions: spec.Extensions{
5031 "x-kubernetes-map-type": "atomic",
5032 },
5033 },
5034 },
5035 Dependencies: []string{
5036 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"},
5037 }
5038 }
5039
5040 func schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref common.ReferenceCallback) common.OpenAPIDefinition {
5041 return common.OpenAPIDefinition{
5042 Schema: spec.Schema{
5043 SchemaProps: spec.SchemaProps{
5044 Description: "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
5045 Type: []string{"object"},
5046 Properties: map[string]spec.Schema{
5047 "key": {
5048 SchemaProps: spec.SchemaProps{
5049 Description: "key is the label key that the selector applies to.",
5050 Default: "",
5051 Type: []string{"string"},
5052 Format: "",
5053 },
5054 },
5055 "operator": {
5056 SchemaProps: spec.SchemaProps{
5057 Description: "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
5058 Default: "",
5059 Type: []string{"string"},
5060 Format: "",
5061 },
5062 },
5063 "values": {
5064 VendorExtensible: spec.VendorExtensible{
5065 Extensions: spec.Extensions{
5066 "x-kubernetes-list-type": "atomic",
5067 },
5068 },
5069 SchemaProps: spec.SchemaProps{
5070 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.",
5071 Type: []string{"array"},
5072 Items: &spec.SchemaOrArray{
5073 Schema: &spec.Schema{
5074 SchemaProps: spec.SchemaProps{
5075 Default: "",
5076 Type: []string{"string"},
5077 Format: "",
5078 },
5079 },
5080 },
5081 },
5082 },
5083 },
5084 Required: []string{"key", "operator"},
5085 },
5086 },
5087 }
5088 }
5089
5090 func schema_pkg_apis_meta_v1_List(ref common.ReferenceCallback) common.OpenAPIDefinition {
5091 return common.OpenAPIDefinition{
5092 Schema: spec.Schema{
5093 SchemaProps: spec.SchemaProps{
5094 Description: "List holds a list of objects, which may not be known by the server.",
5095 Type: []string{"object"},
5096 Properties: map[string]spec.Schema{
5097 "kind": {
5098 SchemaProps: spec.SchemaProps{
5099 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",
5100 Type: []string{"string"},
5101 Format: "",
5102 },
5103 },
5104 "apiVersion": {
5105 SchemaProps: spec.SchemaProps{
5106 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",
5107 Type: []string{"string"},
5108 Format: "",
5109 },
5110 },
5111 "metadata": {
5112 SchemaProps: spec.SchemaProps{
5113 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
5114 Default: map[string]interface{}{},
5115 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"),
5116 },
5117 },
5118 "items": {
5119 SchemaProps: spec.SchemaProps{
5120 Description: "List of objects",
5121 Type: []string{"array"},
5122 Items: &spec.SchemaOrArray{
5123 Schema: &spec.Schema{
5124 SchemaProps: spec.SchemaProps{
5125 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"),
5126 },
5127 },
5128 },
5129 },
5130 },
5131 },
5132 Required: []string{"items"},
5133 },
5134 },
5135 Dependencies: []string{
5136 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/runtime.RawExtension"},
5137 }
5138 }
5139
5140 func schema_pkg_apis_meta_v1_ListMeta(ref common.ReferenceCallback) common.OpenAPIDefinition {
5141 return common.OpenAPIDefinition{
5142 Schema: spec.Schema{
5143 SchemaProps: spec.SchemaProps{
5144 Description: "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.",
5145 Type: []string{"object"},
5146 Properties: map[string]spec.Schema{
5147 "selfLink": {
5148 SchemaProps: spec.SchemaProps{
5149 Description: "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.",
5150 Type: []string{"string"},
5151 Format: "",
5152 },
5153 },
5154 "resourceVersion": {
5155 SchemaProps: spec.SchemaProps{
5156 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",
5157 Type: []string{"string"},
5158 Format: "",
5159 },
5160 },
5161 "continue": {
5162 SchemaProps: spec.SchemaProps{
5163 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.",
5164 Type: []string{"string"},
5165 Format: "",
5166 },
5167 },
5168 "remainingItemCount": {
5169 SchemaProps: spec.SchemaProps{
5170 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.",
5171 Type: []string{"integer"},
5172 Format: "int64",
5173 },
5174 },
5175 },
5176 },
5177 },
5178 }
5179 }
5180
5181 func schema_pkg_apis_meta_v1_ListOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
5182 return common.OpenAPIDefinition{
5183 Schema: spec.Schema{
5184 SchemaProps: spec.SchemaProps{
5185 Description: "ListOptions is the query options to a standard REST list call.",
5186 Type: []string{"object"},
5187 Properties: map[string]spec.Schema{
5188 "kind": {
5189 SchemaProps: spec.SchemaProps{
5190 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",
5191 Type: []string{"string"},
5192 Format: "",
5193 },
5194 },
5195 "apiVersion": {
5196 SchemaProps: spec.SchemaProps{
5197 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",
5198 Type: []string{"string"},
5199 Format: "",
5200 },
5201 },
5202 "labelSelector": {
5203 SchemaProps: spec.SchemaProps{
5204 Description: "A selector to restrict the list of returned objects by their labels. Defaults to everything.",
5205 Type: []string{"string"},
5206 Format: "",
5207 },
5208 },
5209 "fieldSelector": {
5210 SchemaProps: spec.SchemaProps{
5211 Description: "A selector to restrict the list of returned objects by their fields. Defaults to everything.",
5212 Type: []string{"string"},
5213 Format: "",
5214 },
5215 },
5216 "watch": {
5217 SchemaProps: spec.SchemaProps{
5218 Description: "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.",
5219 Type: []string{"boolean"},
5220 Format: "",
5221 },
5222 },
5223 "allowWatchBookmarks": {
5224 SchemaProps: spec.SchemaProps{
5225 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.",
5226 Type: []string{"boolean"},
5227 Format: "",
5228 },
5229 },
5230 "resourceVersion": {
5231 SchemaProps: spec.SchemaProps{
5232 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",
5233 Type: []string{"string"},
5234 Format: "",
5235 },
5236 },
5237 "resourceVersionMatch": {
5238 SchemaProps: spec.SchemaProps{
5239 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",
5240 Type: []string{"string"},
5241 Format: "",
5242 },
5243 },
5244 "timeoutSeconds": {
5245 SchemaProps: spec.SchemaProps{
5246 Description: "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.",
5247 Type: []string{"integer"},
5248 Format: "int64",
5249 },
5250 },
5251 "limit": {
5252 SchemaProps: spec.SchemaProps{
5253 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.",
5254 Type: []string{"integer"},
5255 Format: "int64",
5256 },
5257 },
5258 "continue": {
5259 SchemaProps: spec.SchemaProps{
5260 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.",
5261 Type: []string{"string"},
5262 Format: "",
5263 },
5264 },
5265 "sendInitialEvents": {
5266 SchemaProps: spec.SchemaProps{
5267 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.",
5268 Type: []string{"boolean"},
5269 Format: "",
5270 },
5271 },
5272 },
5273 },
5274 },
5275 }
5276 }
5277
5278 func schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref common.ReferenceCallback) common.OpenAPIDefinition {
5279 return common.OpenAPIDefinition{
5280 Schema: spec.Schema{
5281 SchemaProps: spec.SchemaProps{
5282 Description: "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.",
5283 Type: []string{"object"},
5284 Properties: map[string]spec.Schema{
5285 "manager": {
5286 SchemaProps: spec.SchemaProps{
5287 Description: "Manager is an identifier of the workflow managing these fields.",
5288 Type: []string{"string"},
5289 Format: "",
5290 },
5291 },
5292 "operation": {
5293 SchemaProps: spec.SchemaProps{
5294 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'.",
5295 Type: []string{"string"},
5296 Format: "",
5297 },
5298 },
5299 "apiVersion": {
5300 SchemaProps: spec.SchemaProps{
5301 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.",
5302 Type: []string{"string"},
5303 Format: "",
5304 },
5305 },
5306 "time": {
5307 SchemaProps: spec.SchemaProps{
5308 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.",
5309 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
5310 },
5311 },
5312 "fieldsType": {
5313 SchemaProps: spec.SchemaProps{
5314 Description: "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"",
5315 Type: []string{"string"},
5316 Format: "",
5317 },
5318 },
5319 "fieldsV1": {
5320 SchemaProps: spec.SchemaProps{
5321 Description: "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type.",
5322 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1"),
5323 },
5324 },
5325 "subresource": {
5326 SchemaProps: spec.SchemaProps{
5327 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.",
5328 Type: []string{"string"},
5329 Format: "",
5330 },
5331 },
5332 },
5333 },
5334 },
5335 Dependencies: []string{
5336 "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
5337 }
5338 }
5339
5340 func schema_pkg_apis_meta_v1_MicroTime(ref common.ReferenceCallback) common.OpenAPIDefinition {
5341 return common.OpenAPIDefinition{
5342 Schema: spec.Schema{
5343 SchemaProps: spec.SchemaProps{
5344 Description: "MicroTime is version of Time with microsecond level precision.",
5345 Type: metav1.MicroTime{}.OpenAPISchemaType(),
5346 Format: metav1.MicroTime{}.OpenAPISchemaFormat(),
5347 },
5348 },
5349 }
5350 }
5351
5352 func schema_pkg_apis_meta_v1_ObjectMeta(ref common.ReferenceCallback) common.OpenAPIDefinition {
5353 return common.OpenAPIDefinition{
5354 Schema: spec.Schema{
5355 SchemaProps: spec.SchemaProps{
5356 Description: "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.",
5357 Type: []string{"object"},
5358 Properties: map[string]spec.Schema{
5359 "name": {
5360 SchemaProps: spec.SchemaProps{
5361 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",
5362 Type: []string{"string"},
5363 Format: "",
5364 },
5365 },
5366 "generateName": {
5367 SchemaProps: spec.SchemaProps{
5368 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",
5369 Type: []string{"string"},
5370 Format: "",
5371 },
5372 },
5373 "namespace": {
5374 SchemaProps: spec.SchemaProps{
5375 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",
5376 Type: []string{"string"},
5377 Format: "",
5378 },
5379 },
5380 "selfLink": {
5381 SchemaProps: spec.SchemaProps{
5382 Description: "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.",
5383 Type: []string{"string"},
5384 Format: "",
5385 },
5386 },
5387 "uid": {
5388 SchemaProps: spec.SchemaProps{
5389 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",
5390 Type: []string{"string"},
5391 Format: "",
5392 },
5393 },
5394 "resourceVersion": {
5395 SchemaProps: spec.SchemaProps{
5396 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",
5397 Type: []string{"string"},
5398 Format: "",
5399 },
5400 },
5401 "generation": {
5402 SchemaProps: spec.SchemaProps{
5403 Description: "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.",
5404 Type: []string{"integer"},
5405 Format: "int64",
5406 },
5407 },
5408 "creationTimestamp": {
5409 SchemaProps: spec.SchemaProps{
5410 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",
5411 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
5412 },
5413 },
5414 "deletionTimestamp": {
5415 SchemaProps: spec.SchemaProps{
5416 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",
5417 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
5418 },
5419 },
5420 "deletionGracePeriodSeconds": {
5421 SchemaProps: spec.SchemaProps{
5422 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.",
5423 Type: []string{"integer"},
5424 Format: "int64",
5425 },
5426 },
5427 "labels": {
5428 SchemaProps: spec.SchemaProps{
5429 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",
5430 Type: []string{"object"},
5431 AdditionalProperties: &spec.SchemaOrBool{
5432 Allows: true,
5433 Schema: &spec.Schema{
5434 SchemaProps: spec.SchemaProps{
5435 Default: "",
5436 Type: []string{"string"},
5437 Format: "",
5438 },
5439 },
5440 },
5441 },
5442 },
5443 "annotations": {
5444 SchemaProps: spec.SchemaProps{
5445 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",
5446 Type: []string{"object"},
5447 AdditionalProperties: &spec.SchemaOrBool{
5448 Allows: true,
5449 Schema: &spec.Schema{
5450 SchemaProps: spec.SchemaProps{
5451 Default: "",
5452 Type: []string{"string"},
5453 Format: "",
5454 },
5455 },
5456 },
5457 },
5458 },
5459 "ownerReferences": {
5460 VendorExtensible: spec.VendorExtensible{
5461 Extensions: spec.Extensions{
5462 "x-kubernetes-list-map-keys": []interface{}{
5463 "uid",
5464 },
5465 "x-kubernetes-list-type": "map",
5466 "x-kubernetes-patch-merge-key": "uid",
5467 "x-kubernetes-patch-strategy": "merge",
5468 },
5469 },
5470 SchemaProps: spec.SchemaProps{
5471 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.",
5472 Type: []string{"array"},
5473 Items: &spec.SchemaOrArray{
5474 Schema: &spec.Schema{
5475 SchemaProps: spec.SchemaProps{
5476 Default: map[string]interface{}{},
5477 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference"),
5478 },
5479 },
5480 },
5481 },
5482 },
5483 "finalizers": {
5484 VendorExtensible: spec.VendorExtensible{
5485 Extensions: spec.Extensions{
5486 "x-kubernetes-list-type": "set",
5487 "x-kubernetes-patch-strategy": "merge",
5488 },
5489 },
5490 SchemaProps: spec.SchemaProps{
5491 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.",
5492 Type: []string{"array"},
5493 Items: &spec.SchemaOrArray{
5494 Schema: &spec.Schema{
5495 SchemaProps: spec.SchemaProps{
5496 Default: "",
5497 Type: []string{"string"},
5498 Format: "",
5499 },
5500 },
5501 },
5502 },
5503 },
5504 "managedFields": {
5505 VendorExtensible: spec.VendorExtensible{
5506 Extensions: spec.Extensions{
5507 "x-kubernetes-list-type": "atomic",
5508 },
5509 },
5510 SchemaProps: spec.SchemaProps{
5511 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.",
5512 Type: []string{"array"},
5513 Items: &spec.SchemaOrArray{
5514 Schema: &spec.Schema{
5515 SchemaProps: spec.SchemaProps{
5516 Default: map[string]interface{}{},
5517 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry"),
5518 },
5519 },
5520 },
5521 },
5522 },
5523 },
5524 },
5525 },
5526 Dependencies: []string{
5527 "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry", "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
5528 }
5529 }
5530
5531 func schema_pkg_apis_meta_v1_OwnerReference(ref common.ReferenceCallback) common.OpenAPIDefinition {
5532 return common.OpenAPIDefinition{
5533 Schema: spec.Schema{
5534 SchemaProps: spec.SchemaProps{
5535 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.",
5536 Type: []string{"object"},
5537 Properties: map[string]spec.Schema{
5538 "apiVersion": {
5539 SchemaProps: spec.SchemaProps{
5540 Description: "API version of the referent.",
5541 Default: "",
5542 Type: []string{"string"},
5543 Format: "",
5544 },
5545 },
5546 "kind": {
5547 SchemaProps: spec.SchemaProps{
5548 Description: "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
5549 Default: "",
5550 Type: []string{"string"},
5551 Format: "",
5552 },
5553 },
5554 "name": {
5555 SchemaProps: spec.SchemaProps{
5556 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names",
5557 Default: "",
5558 Type: []string{"string"},
5559 Format: "",
5560 },
5561 },
5562 "uid": {
5563 SchemaProps: spec.SchemaProps{
5564 Description: "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids",
5565 Default: "",
5566 Type: []string{"string"},
5567 Format: "",
5568 },
5569 },
5570 "controller": {
5571 SchemaProps: spec.SchemaProps{
5572 Description: "If true, this reference points to the managing controller.",
5573 Type: []string{"boolean"},
5574 Format: "",
5575 },
5576 },
5577 "blockOwnerDeletion": {
5578 SchemaProps: spec.SchemaProps{
5579 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.",
5580 Type: []string{"boolean"},
5581 Format: "",
5582 },
5583 },
5584 },
5585 Required: []string{"apiVersion", "kind", "name", "uid"},
5586 },
5587 VendorExtensible: spec.VendorExtensible{
5588 Extensions: spec.Extensions{
5589 "x-kubernetes-map-type": "atomic",
5590 },
5591 },
5592 },
5593 }
5594 }
5595
5596 func schema_pkg_apis_meta_v1_PartialObjectMetadata(ref common.ReferenceCallback) common.OpenAPIDefinition {
5597 return common.OpenAPIDefinition{
5598 Schema: spec.Schema{
5599 SchemaProps: spec.SchemaProps{
5600 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.",
5601 Type: []string{"object"},
5602 Properties: map[string]spec.Schema{
5603 "kind": {
5604 SchemaProps: spec.SchemaProps{
5605 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",
5606 Type: []string{"string"},
5607 Format: "",
5608 },
5609 },
5610 "apiVersion": {
5611 SchemaProps: spec.SchemaProps{
5612 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",
5613 Type: []string{"string"},
5614 Format: "",
5615 },
5616 },
5617 "metadata": {
5618 SchemaProps: spec.SchemaProps{
5619 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
5620 Default: map[string]interface{}{},
5621 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"),
5622 },
5623 },
5624 },
5625 },
5626 },
5627 Dependencies: []string{
5628 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
5629 }
5630 }
5631
5632 func schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref common.ReferenceCallback) common.OpenAPIDefinition {
5633 return common.OpenAPIDefinition{
5634 Schema: spec.Schema{
5635 SchemaProps: spec.SchemaProps{
5636 Description: "PartialObjectMetadataList contains a list of objects containing only their metadata",
5637 Type: []string{"object"},
5638 Properties: map[string]spec.Schema{
5639 "kind": {
5640 SchemaProps: spec.SchemaProps{
5641 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",
5642 Type: []string{"string"},
5643 Format: "",
5644 },
5645 },
5646 "apiVersion": {
5647 SchemaProps: spec.SchemaProps{
5648 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",
5649 Type: []string{"string"},
5650 Format: "",
5651 },
5652 },
5653 "metadata": {
5654 SchemaProps: spec.SchemaProps{
5655 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
5656 Default: map[string]interface{}{},
5657 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"),
5658 },
5659 },
5660 "items": {
5661 SchemaProps: spec.SchemaProps{
5662 Description: "items contains each of the included items.",
5663 Type: []string{"array"},
5664 Items: &spec.SchemaOrArray{
5665 Schema: &spec.Schema{
5666 SchemaProps: spec.SchemaProps{
5667 Default: map[string]interface{}{},
5668 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata"),
5669 },
5670 },
5671 },
5672 },
5673 },
5674 },
5675 Required: []string{"items"},
5676 },
5677 },
5678 Dependencies: []string{
5679 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata"},
5680 }
5681 }
5682
5683 func schema_pkg_apis_meta_v1_Patch(ref common.ReferenceCallback) common.OpenAPIDefinition {
5684 return common.OpenAPIDefinition{
5685 Schema: spec.Schema{
5686 SchemaProps: spec.SchemaProps{
5687 Description: "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.",
5688 Type: []string{"object"},
5689 },
5690 },
5691 }
5692 }
5693
5694 func schema_pkg_apis_meta_v1_PatchOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
5695 return common.OpenAPIDefinition{
5696 Schema: spec.Schema{
5697 SchemaProps: spec.SchemaProps{
5698 Description: "PatchOptions may be provided when patching an API object. PatchOptions is meant to be a superset of UpdateOptions.",
5699 Type: []string{"object"},
5700 Properties: map[string]spec.Schema{
5701 "kind": {
5702 SchemaProps: spec.SchemaProps{
5703 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",
5704 Type: []string{"string"},
5705 Format: "",
5706 },
5707 },
5708 "apiVersion": {
5709 SchemaProps: spec.SchemaProps{
5710 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",
5711 Type: []string{"string"},
5712 Format: "",
5713 },
5714 },
5715 "dryRun": {
5716 VendorExtensible: spec.VendorExtensible{
5717 Extensions: spec.Extensions{
5718 "x-kubernetes-list-type": "atomic",
5719 },
5720 },
5721 SchemaProps: spec.SchemaProps{
5722 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",
5723 Type: []string{"array"},
5724 Items: &spec.SchemaOrArray{
5725 Schema: &spec.Schema{
5726 SchemaProps: spec.SchemaProps{
5727 Default: "",
5728 Type: []string{"string"},
5729 Format: "",
5730 },
5731 },
5732 },
5733 },
5734 },
5735 "force": {
5736 SchemaProps: spec.SchemaProps{
5737 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.",
5738 Type: []string{"boolean"},
5739 Format: "",
5740 },
5741 },
5742 "fieldManager": {
5743 SchemaProps: spec.SchemaProps{
5744 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).",
5745 Type: []string{"string"},
5746 Format: "",
5747 },
5748 },
5749 "fieldValidation": {
5750 SchemaProps: spec.SchemaProps{
5751 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.",
5752 Type: []string{"string"},
5753 Format: "",
5754 },
5755 },
5756 },
5757 },
5758 },
5759 }
5760 }
5761
5762 func schema_pkg_apis_meta_v1_Preconditions(ref common.ReferenceCallback) common.OpenAPIDefinition {
5763 return common.OpenAPIDefinition{
5764 Schema: spec.Schema{
5765 SchemaProps: spec.SchemaProps{
5766 Description: "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.",
5767 Type: []string{"object"},
5768 Properties: map[string]spec.Schema{
5769 "uid": {
5770 SchemaProps: spec.SchemaProps{
5771 Description: "Specifies the target UID.",
5772 Type: []string{"string"},
5773 Format: "",
5774 },
5775 },
5776 "resourceVersion": {
5777 SchemaProps: spec.SchemaProps{
5778 Description: "Specifies the target ResourceVersion",
5779 Type: []string{"string"},
5780 Format: "",
5781 },
5782 },
5783 },
5784 },
5785 },
5786 }
5787 }
5788
5789 func schema_pkg_apis_meta_v1_RootPaths(ref common.ReferenceCallback) common.OpenAPIDefinition {
5790 return common.OpenAPIDefinition{
5791 Schema: spec.Schema{
5792 SchemaProps: spec.SchemaProps{
5793 Description: "RootPaths lists the paths available at root. For example: \"/healthz\", \"/apis\".",
5794 Type: []string{"object"},
5795 Properties: map[string]spec.Schema{
5796 "paths": {
5797 VendorExtensible: spec.VendorExtensible{
5798 Extensions: spec.Extensions{
5799 "x-kubernetes-list-type": "atomic",
5800 },
5801 },
5802 SchemaProps: spec.SchemaProps{
5803 Description: "paths are the paths available at root.",
5804 Type: []string{"array"},
5805 Items: &spec.SchemaOrArray{
5806 Schema: &spec.Schema{
5807 SchemaProps: spec.SchemaProps{
5808 Default: "",
5809 Type: []string{"string"},
5810 Format: "",
5811 },
5812 },
5813 },
5814 },
5815 },
5816 },
5817 Required: []string{"paths"},
5818 },
5819 },
5820 }
5821 }
5822
5823 func schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref common.ReferenceCallback) common.OpenAPIDefinition {
5824 return common.OpenAPIDefinition{
5825 Schema: spec.Schema{
5826 SchemaProps: spec.SchemaProps{
5827 Description: "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.",
5828 Type: []string{"object"},
5829 Properties: map[string]spec.Schema{
5830 "clientCIDR": {
5831 SchemaProps: spec.SchemaProps{
5832 Description: "The CIDR with which clients can match their IP to figure out the server address that they should use.",
5833 Default: "",
5834 Type: []string{"string"},
5835 Format: "",
5836 },
5837 },
5838 "serverAddress": {
5839 SchemaProps: spec.SchemaProps{
5840 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.",
5841 Default: "",
5842 Type: []string{"string"},
5843 Format: "",
5844 },
5845 },
5846 },
5847 Required: []string{"clientCIDR", "serverAddress"},
5848 },
5849 },
5850 }
5851 }
5852
5853 func schema_pkg_apis_meta_v1_Status(ref common.ReferenceCallback) common.OpenAPIDefinition {
5854 return common.OpenAPIDefinition{
5855 Schema: spec.Schema{
5856 SchemaProps: spec.SchemaProps{
5857 Description: "Status is a return value for calls that don't return other objects.",
5858 Type: []string{"object"},
5859 Properties: map[string]spec.Schema{
5860 "kind": {
5861 SchemaProps: spec.SchemaProps{
5862 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",
5863 Type: []string{"string"},
5864 Format: "",
5865 },
5866 },
5867 "apiVersion": {
5868 SchemaProps: spec.SchemaProps{
5869 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",
5870 Type: []string{"string"},
5871 Format: "",
5872 },
5873 },
5874 "metadata": {
5875 SchemaProps: spec.SchemaProps{
5876 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
5877 Default: map[string]interface{}{},
5878 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"),
5879 },
5880 },
5881 "status": {
5882 SchemaProps: spec.SchemaProps{
5883 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",
5884 Type: []string{"string"},
5885 Format: "",
5886 },
5887 },
5888 "message": {
5889 SchemaProps: spec.SchemaProps{
5890 Description: "A human-readable description of the status of this operation.",
5891 Type: []string{"string"},
5892 Format: "",
5893 },
5894 },
5895 "reason": {
5896 SchemaProps: spec.SchemaProps{
5897 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.",
5898 Type: []string{"string"},
5899 Format: "",
5900 },
5901 },
5902 "details": {
5903 VendorExtensible: spec.VendorExtensible{
5904 Extensions: spec.Extensions{
5905 "x-kubernetes-list-type": "atomic",
5906 },
5907 },
5908 SchemaProps: spec.SchemaProps{
5909 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.",
5910 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails"),
5911 },
5912 },
5913 "code": {
5914 SchemaProps: spec.SchemaProps{
5915 Description: "Suggested HTTP return code for this status, 0 if not set.",
5916 Type: []string{"integer"},
5917 Format: "int32",
5918 },
5919 },
5920 },
5921 },
5922 },
5923 Dependencies: []string{
5924 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails"},
5925 }
5926 }
5927
5928 func schema_pkg_apis_meta_v1_StatusCause(ref common.ReferenceCallback) common.OpenAPIDefinition {
5929 return common.OpenAPIDefinition{
5930 Schema: spec.Schema{
5931 SchemaProps: spec.SchemaProps{
5932 Description: "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.",
5933 Type: []string{"object"},
5934 Properties: map[string]spec.Schema{
5935 "reason": {
5936 SchemaProps: spec.SchemaProps{
5937 Description: "A machine-readable description of the cause of the error. If this value is empty there is no information available.",
5938 Type: []string{"string"},
5939 Format: "",
5940 },
5941 },
5942 "message": {
5943 SchemaProps: spec.SchemaProps{
5944 Description: "A human-readable description of the cause of the error. This field may be presented as-is to a reader.",
5945 Type: []string{"string"},
5946 Format: "",
5947 },
5948 },
5949 "field": {
5950 SchemaProps: spec.SchemaProps{
5951 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\"",
5952 Type: []string{"string"},
5953 Format: "",
5954 },
5955 },
5956 },
5957 },
5958 },
5959 }
5960 }
5961
5962 func schema_pkg_apis_meta_v1_StatusDetails(ref common.ReferenceCallback) common.OpenAPIDefinition {
5963 return common.OpenAPIDefinition{
5964 Schema: spec.Schema{
5965 SchemaProps: spec.SchemaProps{
5966 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.",
5967 Type: []string{"object"},
5968 Properties: map[string]spec.Schema{
5969 "name": {
5970 SchemaProps: spec.SchemaProps{
5971 Description: "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).",
5972 Type: []string{"string"},
5973 Format: "",
5974 },
5975 },
5976 "group": {
5977 SchemaProps: spec.SchemaProps{
5978 Description: "The group attribute of the resource associated with the status StatusReason.",
5979 Type: []string{"string"},
5980 Format: "",
5981 },
5982 },
5983 "kind": {
5984 SchemaProps: spec.SchemaProps{
5985 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",
5986 Type: []string{"string"},
5987 Format: "",
5988 },
5989 },
5990 "uid": {
5991 SchemaProps: spec.SchemaProps{
5992 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",
5993 Type: []string{"string"},
5994 Format: "",
5995 },
5996 },
5997 "causes": {
5998 VendorExtensible: spec.VendorExtensible{
5999 Extensions: spec.Extensions{
6000 "x-kubernetes-list-type": "atomic",
6001 },
6002 },
6003 SchemaProps: spec.SchemaProps{
6004 Description: "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.",
6005 Type: []string{"array"},
6006 Items: &spec.SchemaOrArray{
6007 Schema: &spec.Schema{
6008 SchemaProps: spec.SchemaProps{
6009 Default: map[string]interface{}{},
6010 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause"),
6011 },
6012 },
6013 },
6014 },
6015 },
6016 "retryAfterSeconds": {
6017 SchemaProps: spec.SchemaProps{
6018 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.",
6019 Type: []string{"integer"},
6020 Format: "int32",
6021 },
6022 },
6023 },
6024 },
6025 },
6026 Dependencies: []string{
6027 "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause"},
6028 }
6029 }
6030
6031 func schema_pkg_apis_meta_v1_Table(ref common.ReferenceCallback) common.OpenAPIDefinition {
6032 return common.OpenAPIDefinition{
6033 Schema: spec.Schema{
6034 SchemaProps: spec.SchemaProps{
6035 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.",
6036 Type: []string{"object"},
6037 Properties: map[string]spec.Schema{
6038 "kind": {
6039 SchemaProps: spec.SchemaProps{
6040 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",
6041 Type: []string{"string"},
6042 Format: "",
6043 },
6044 },
6045 "apiVersion": {
6046 SchemaProps: spec.SchemaProps{
6047 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",
6048 Type: []string{"string"},
6049 Format: "",
6050 },
6051 },
6052 "metadata": {
6053 SchemaProps: spec.SchemaProps{
6054 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
6055 Default: map[string]interface{}{},
6056 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"),
6057 },
6058 },
6059 "columnDefinitions": {
6060 VendorExtensible: spec.VendorExtensible{
6061 Extensions: spec.Extensions{
6062 "x-kubernetes-list-type": "atomic",
6063 },
6064 },
6065 SchemaProps: spec.SchemaProps{
6066 Description: "columnDefinitions describes each column in the returned items array. The number of cells per row will always match the number of column definitions.",
6067 Type: []string{"array"},
6068 Items: &spec.SchemaOrArray{
6069 Schema: &spec.Schema{
6070 SchemaProps: spec.SchemaProps{
6071 Default: map[string]interface{}{},
6072 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition"),
6073 },
6074 },
6075 },
6076 },
6077 },
6078 "rows": {
6079 VendorExtensible: spec.VendorExtensible{
6080 Extensions: spec.Extensions{
6081 "x-kubernetes-list-type": "atomic",
6082 },
6083 },
6084 SchemaProps: spec.SchemaProps{
6085 Description: "rows is the list of items in the table.",
6086 Type: []string{"array"},
6087 Items: &spec.SchemaOrArray{
6088 Schema: &spec.Schema{
6089 SchemaProps: spec.SchemaProps{
6090 Default: map[string]interface{}{},
6091 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableRow"),
6092 },
6093 },
6094 },
6095 },
6096 },
6097 },
6098 Required: []string{"columnDefinitions", "rows"},
6099 },
6100 },
6101 Dependencies: []string{
6102 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition", "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow"},
6103 }
6104 }
6105
6106 func schema_pkg_apis_meta_v1_TableColumnDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition {
6107 return common.OpenAPIDefinition{
6108 Schema: spec.Schema{
6109 SchemaProps: spec.SchemaProps{
6110 Description: "TableColumnDefinition contains information about a column returned in the Table.",
6111 Type: []string{"object"},
6112 Properties: map[string]spec.Schema{
6113 "name": {
6114 SchemaProps: spec.SchemaProps{
6115 Description: "name is a human readable name for the column.",
6116 Default: "",
6117 Type: []string{"string"},
6118 Format: "",
6119 },
6120 },
6121 "type": {
6122 SchemaProps: spec.SchemaProps{
6123 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.",
6124 Default: "",
6125 Type: []string{"string"},
6126 Format: "",
6127 },
6128 },
6129 "format": {
6130 SchemaProps: spec.SchemaProps{
6131 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.",
6132 Default: "",
6133 Type: []string{"string"},
6134 Format: "",
6135 },
6136 },
6137 "description": {
6138 SchemaProps: spec.SchemaProps{
6139 Description: "description is a human readable description of this column.",
6140 Default: "",
6141 Type: []string{"string"},
6142 Format: "",
6143 },
6144 },
6145 "priority": {
6146 SchemaProps: spec.SchemaProps{
6147 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.",
6148 Default: 0,
6149 Type: []string{"integer"},
6150 Format: "int32",
6151 },
6152 },
6153 },
6154 Required: []string{"name", "type", "format", "description", "priority"},
6155 },
6156 },
6157 }
6158 }
6159
6160 func schema_pkg_apis_meta_v1_TableOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
6161 return common.OpenAPIDefinition{
6162 Schema: spec.Schema{
6163 SchemaProps: spec.SchemaProps{
6164 Description: "TableOptions are used when a Table is requested by the caller.",
6165 Type: []string{"object"},
6166 Properties: map[string]spec.Schema{
6167 "kind": {
6168 SchemaProps: spec.SchemaProps{
6169 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",
6170 Type: []string{"string"},
6171 Format: "",
6172 },
6173 },
6174 "apiVersion": {
6175 SchemaProps: spec.SchemaProps{
6176 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",
6177 Type: []string{"string"},
6178 Format: "",
6179 },
6180 },
6181 "includeObject": {
6182 SchemaProps: spec.SchemaProps{
6183 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.",
6184 Type: []string{"string"},
6185 Format: "",
6186 },
6187 },
6188 },
6189 },
6190 },
6191 }
6192 }
6193
6194 func schema_pkg_apis_meta_v1_TableRow(ref common.ReferenceCallback) common.OpenAPIDefinition {
6195 return common.OpenAPIDefinition{
6196 Schema: spec.Schema{
6197 SchemaProps: spec.SchemaProps{
6198 Description: "TableRow is an individual row in a table.",
6199 Type: []string{"object"},
6200 Properties: map[string]spec.Schema{
6201 "cells": {
6202 VendorExtensible: spec.VendorExtensible{
6203 Extensions: spec.Extensions{
6204 "x-kubernetes-list-type": "atomic",
6205 },
6206 },
6207 SchemaProps: spec.SchemaProps{
6208 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.",
6209 Type: []string{"array"},
6210 Items: &spec.SchemaOrArray{
6211 Schema: &spec.Schema{
6212 SchemaProps: spec.SchemaProps{
6213 Type: []string{"object"},
6214 Format: "",
6215 },
6216 },
6217 },
6218 },
6219 },
6220 "conditions": {
6221 VendorExtensible: spec.VendorExtensible{
6222 Extensions: spec.Extensions{
6223 "x-kubernetes-list-type": "atomic",
6224 },
6225 },
6226 SchemaProps: spec.SchemaProps{
6227 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.",
6228 Type: []string{"array"},
6229 Items: &spec.SchemaOrArray{
6230 Schema: &spec.Schema{
6231 SchemaProps: spec.SchemaProps{
6232 Default: map[string]interface{}{},
6233 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition"),
6234 },
6235 },
6236 },
6237 },
6238 },
6239 "object": {
6240 SchemaProps: spec.SchemaProps{
6241 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.",
6242 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"),
6243 },
6244 },
6245 },
6246 Required: []string{"cells"},
6247 },
6248 },
6249 Dependencies: []string{
6250 "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition", "k8s.io/apimachinery/pkg/runtime.RawExtension"},
6251 }
6252 }
6253
6254 func schema_pkg_apis_meta_v1_TableRowCondition(ref common.ReferenceCallback) common.OpenAPIDefinition {
6255 return common.OpenAPIDefinition{
6256 Schema: spec.Schema{
6257 SchemaProps: spec.SchemaProps{
6258 Description: "TableRowCondition allows a row to be marked with additional information.",
6259 Type: []string{"object"},
6260 Properties: map[string]spec.Schema{
6261 "type": {
6262 SchemaProps: spec.SchemaProps{
6263 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.",
6264 Default: "",
6265 Type: []string{"string"},
6266 Format: "",
6267 },
6268 },
6269 "status": {
6270 SchemaProps: spec.SchemaProps{
6271 Description: "Status of the condition, one of True, False, Unknown.",
6272 Default: "",
6273 Type: []string{"string"},
6274 Format: "",
6275 },
6276 },
6277 "reason": {
6278 SchemaProps: spec.SchemaProps{
6279 Description: "(brief) machine readable reason for the condition's last transition.",
6280 Type: []string{"string"},
6281 Format: "",
6282 },
6283 },
6284 "message": {
6285 SchemaProps: spec.SchemaProps{
6286 Description: "Human readable message indicating details about last transition.",
6287 Type: []string{"string"},
6288 Format: "",
6289 },
6290 },
6291 },
6292 Required: []string{"type", "status"},
6293 },
6294 },
6295 }
6296 }
6297
6298 func schema_pkg_apis_meta_v1_Time(ref common.ReferenceCallback) common.OpenAPIDefinition {
6299 return common.OpenAPIDefinition{
6300 Schema: spec.Schema{
6301 SchemaProps: spec.SchemaProps{
6302 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.",
6303 Type: metav1.Time{}.OpenAPISchemaType(),
6304 Format: metav1.Time{}.OpenAPISchemaFormat(),
6305 },
6306 },
6307 }
6308 }
6309
6310 func schema_pkg_apis_meta_v1_Timestamp(ref common.ReferenceCallback) common.OpenAPIDefinition {
6311 return common.OpenAPIDefinition{
6312 Schema: spec.Schema{
6313 SchemaProps: spec.SchemaProps{
6314 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.",
6315 Type: []string{"object"},
6316 Properties: map[string]spec.Schema{
6317 "seconds": {
6318 SchemaProps: spec.SchemaProps{
6319 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.",
6320 Default: 0,
6321 Type: []string{"integer"},
6322 Format: "int64",
6323 },
6324 },
6325 "nanos": {
6326 SchemaProps: spec.SchemaProps{
6327 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.",
6328 Default: 0,
6329 Type: []string{"integer"},
6330 Format: "int32",
6331 },
6332 },
6333 },
6334 Required: []string{"seconds", "nanos"},
6335 },
6336 },
6337 }
6338 }
6339
6340 func schema_pkg_apis_meta_v1_TypeMeta(ref common.ReferenceCallback) common.OpenAPIDefinition {
6341 return common.OpenAPIDefinition{
6342 Schema: spec.Schema{
6343 SchemaProps: spec.SchemaProps{
6344 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.",
6345 Type: []string{"object"},
6346 Properties: map[string]spec.Schema{
6347 "kind": {
6348 SchemaProps: spec.SchemaProps{
6349 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",
6350 Type: []string{"string"},
6351 Format: "",
6352 },
6353 },
6354 "apiVersion": {
6355 SchemaProps: spec.SchemaProps{
6356 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",
6357 Type: []string{"string"},
6358 Format: "",
6359 },
6360 },
6361 },
6362 },
6363 },
6364 }
6365 }
6366
6367 func schema_pkg_apis_meta_v1_UpdateOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
6368 return common.OpenAPIDefinition{
6369 Schema: spec.Schema{
6370 SchemaProps: spec.SchemaProps{
6371 Description: "UpdateOptions may be provided when updating an API object. All fields in UpdateOptions should also be present in PatchOptions.",
6372 Type: []string{"object"},
6373 Properties: map[string]spec.Schema{
6374 "kind": {
6375 SchemaProps: spec.SchemaProps{
6376 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",
6377 Type: []string{"string"},
6378 Format: "",
6379 },
6380 },
6381 "apiVersion": {
6382 SchemaProps: spec.SchemaProps{
6383 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",
6384 Type: []string{"string"},
6385 Format: "",
6386 },
6387 },
6388 "dryRun": {
6389 VendorExtensible: spec.VendorExtensible{
6390 Extensions: spec.Extensions{
6391 "x-kubernetes-list-type": "atomic",
6392 },
6393 },
6394 SchemaProps: spec.SchemaProps{
6395 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",
6396 Type: []string{"array"},
6397 Items: &spec.SchemaOrArray{
6398 Schema: &spec.Schema{
6399 SchemaProps: spec.SchemaProps{
6400 Default: "",
6401 Type: []string{"string"},
6402 Format: "",
6403 },
6404 },
6405 },
6406 },
6407 },
6408 "fieldManager": {
6409 SchemaProps: spec.SchemaProps{
6410 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.",
6411 Type: []string{"string"},
6412 Format: "",
6413 },
6414 },
6415 "fieldValidation": {
6416 SchemaProps: spec.SchemaProps{
6417 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.",
6418 Type: []string{"string"},
6419 Format: "",
6420 },
6421 },
6422 },
6423 },
6424 },
6425 }
6426 }
6427
6428 func schema_pkg_apis_meta_v1_WatchEvent(ref common.ReferenceCallback) common.OpenAPIDefinition {
6429 return common.OpenAPIDefinition{
6430 Schema: spec.Schema{
6431 SchemaProps: spec.SchemaProps{
6432 Description: "Event represents a single event to a watched resource.",
6433 Type: []string{"object"},
6434 Properties: map[string]spec.Schema{
6435 "type": {
6436 SchemaProps: spec.SchemaProps{
6437 Default: "",
6438 Type: []string{"string"},
6439 Format: "",
6440 },
6441 },
6442 "object": {
6443 SchemaProps: spec.SchemaProps{
6444 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.",
6445 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"),
6446 },
6447 },
6448 },
6449 Required: []string{"type", "object"},
6450 },
6451 },
6452 Dependencies: []string{
6453 "k8s.io/apimachinery/pkg/runtime.RawExtension"},
6454 }
6455 }
6456
6457 func schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref common.ReferenceCallback) common.OpenAPIDefinition {
6458 return common.OpenAPIDefinition{
6459 Schema: spec.Schema{
6460 SchemaProps: spec.SchemaProps{
6461 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.)",
6462 Type: []string{"object"},
6463 },
6464 },
6465 }
6466 }
6467
6468 func schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref common.ReferenceCallback) common.OpenAPIDefinition {
6469 return common.OpenAPIDefinition{
6470 Schema: spec.Schema{
6471 SchemaProps: spec.SchemaProps{
6472 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.",
6473 Type: []string{"object"},
6474 Properties: map[string]spec.Schema{
6475 "apiVersion": {
6476 SchemaProps: spec.SchemaProps{
6477 Type: []string{"string"},
6478 Format: "",
6479 },
6480 },
6481 "kind": {
6482 SchemaProps: spec.SchemaProps{
6483 Type: []string{"string"},
6484 Format: "",
6485 },
6486 },
6487 },
6488 },
6489 },
6490 }
6491 }
6492
6493 func schema_k8sio_apimachinery_pkg_runtime_Unknown(ref common.ReferenceCallback) common.OpenAPIDefinition {
6494 return common.OpenAPIDefinition{
6495 Schema: spec.Schema{
6496 SchemaProps: spec.SchemaProps{
6497 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.",
6498 Type: []string{"object"},
6499 Properties: map[string]spec.Schema{
6500 "apiVersion": {
6501 SchemaProps: spec.SchemaProps{
6502 Type: []string{"string"},
6503 Format: "",
6504 },
6505 },
6506 "kind": {
6507 SchemaProps: spec.SchemaProps{
6508 Type: []string{"string"},
6509 Format: "",
6510 },
6511 },
6512 "ContentEncoding": {
6513 SchemaProps: spec.SchemaProps{
6514 Description: "ContentEncoding is encoding used to encode 'Raw' data. Unspecified means no encoding.",
6515 Default: "",
6516 Type: []string{"string"},
6517 Format: "",
6518 },
6519 },
6520 "ContentType": {
6521 SchemaProps: spec.SchemaProps{
6522 Description: "ContentType is serialization method used to serialize 'Raw'. Unspecified means ContentTypeJSON.",
6523 Default: "",
6524 Type: []string{"string"},
6525 Format: "",
6526 },
6527 },
6528 },
6529 Required: []string{"ContentEncoding", "ContentType"},
6530 },
6531 },
6532 }
6533 }
6534
6535 func schema_k8sio_apimachinery_pkg_version_Info(ref common.ReferenceCallback) common.OpenAPIDefinition {
6536 return common.OpenAPIDefinition{
6537 Schema: spec.Schema{
6538 SchemaProps: spec.SchemaProps{
6539 Description: "Info contains versioning information. how we'll want to distribute that information.",
6540 Type: []string{"object"},
6541 Properties: map[string]spec.Schema{
6542 "major": {
6543 SchemaProps: spec.SchemaProps{
6544 Default: "",
6545 Type: []string{"string"},
6546 Format: "",
6547 },
6548 },
6549 "minor": {
6550 SchemaProps: spec.SchemaProps{
6551 Default: "",
6552 Type: []string{"string"},
6553 Format: "",
6554 },
6555 },
6556 "gitVersion": {
6557 SchemaProps: spec.SchemaProps{
6558 Default: "",
6559 Type: []string{"string"},
6560 Format: "",
6561 },
6562 },
6563 "gitCommit": {
6564 SchemaProps: spec.SchemaProps{
6565 Default: "",
6566 Type: []string{"string"},
6567 Format: "",
6568 },
6569 },
6570 "gitTreeState": {
6571 SchemaProps: spec.SchemaProps{
6572 Default: "",
6573 Type: []string{"string"},
6574 Format: "",
6575 },
6576 },
6577 "buildDate": {
6578 SchemaProps: spec.SchemaProps{
6579 Default: "",
6580 Type: []string{"string"},
6581 Format: "",
6582 },
6583 },
6584 "goVersion": {
6585 SchemaProps: spec.SchemaProps{
6586 Default: "",
6587 Type: []string{"string"},
6588 Format: "",
6589 },
6590 },
6591 "compiler": {
6592 SchemaProps: spec.SchemaProps{
6593 Default: "",
6594 Type: []string{"string"},
6595 Format: "",
6596 },
6597 },
6598 "platform": {
6599 SchemaProps: spec.SchemaProps{
6600 Default: "",
6601 Type: []string{"string"},
6602 Format: "",
6603 },
6604 },
6605 },
6606 Required: []string{"major", "minor", "gitVersion", "gitCommit", "gitTreeState", "buildDate", "goVersion", "compiler", "platform"},
6607 },
6608 },
6609 }
6610 }
6611
View as plain text