kubesphere.io/api@v0.0.0-20231107125330-c9a03957060c/servicemesh/v1alpha2/openapi_generated.go (about) 1 //go:build !ignore_autogenerated 2 // +build !ignore_autogenerated 3 4 /* 5 Copyright 2020 The KubeSphere Authors. 6 7 Licensed under the Apache License, Version 2.0 (the "License"); 8 you may not use this file except in compliance with the License. 9 You may obtain a copy of the License at 10 11 http://www.apache.org/licenses/LICENSE-2.0 12 13 Unless required by applicable law or agreed to in writing, software 14 distributed under the License is distributed on an "AS IS" BASIS, 15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 See the License for the specific language governing permissions and 17 limitations under the License. 18 */ 19 20 // Code generated by openapi-gen. DO NOT EDIT. 21 22 // This file was autogenerated by openapi-gen. Do not edit it manually! 23 24 package v1alpha2 25 26 import ( 27 v1 "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/apimachinery/pkg/apis/meta/v1.APIGroup": schema_pkg_apis_meta_v1_APIGroup(ref), 35 "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroupList": schema_pkg_apis_meta_v1_APIGroupList(ref), 36 "k8s.io/apimachinery/pkg/apis/meta/v1.APIResource": schema_pkg_apis_meta_v1_APIResource(ref), 37 "k8s.io/apimachinery/pkg/apis/meta/v1.APIResourceList": schema_pkg_apis_meta_v1_APIResourceList(ref), 38 "k8s.io/apimachinery/pkg/apis/meta/v1.APIVersions": schema_pkg_apis_meta_v1_APIVersions(ref), 39 "k8s.io/apimachinery/pkg/apis/meta/v1.ApplyOptions": schema_pkg_apis_meta_v1_ApplyOptions(ref), 40 "k8s.io/apimachinery/pkg/apis/meta/v1.Condition": schema_pkg_apis_meta_v1_Condition(ref), 41 "k8s.io/apimachinery/pkg/apis/meta/v1.CreateOptions": schema_pkg_apis_meta_v1_CreateOptions(ref), 42 "k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions": schema_pkg_apis_meta_v1_DeleteOptions(ref), 43 "k8s.io/apimachinery/pkg/apis/meta/v1.Duration": schema_pkg_apis_meta_v1_Duration(ref), 44 "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1": schema_pkg_apis_meta_v1_FieldsV1(ref), 45 "k8s.io/apimachinery/pkg/apis/meta/v1.GetOptions": schema_pkg_apis_meta_v1_GetOptions(ref), 46 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupKind": schema_pkg_apis_meta_v1_GroupKind(ref), 47 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupResource": schema_pkg_apis_meta_v1_GroupResource(ref), 48 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersion": schema_pkg_apis_meta_v1_GroupVersion(ref), 49 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery": schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref), 50 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionKind": schema_pkg_apis_meta_v1_GroupVersionKind(ref), 51 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionResource": schema_pkg_apis_meta_v1_GroupVersionResource(ref), 52 "k8s.io/apimachinery/pkg/apis/meta/v1.InternalEvent": schema_pkg_apis_meta_v1_InternalEvent(ref), 53 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector": schema_pkg_apis_meta_v1_LabelSelector(ref), 54 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement": schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref), 55 "k8s.io/apimachinery/pkg/apis/meta/v1.List": schema_pkg_apis_meta_v1_List(ref), 56 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta": schema_pkg_apis_meta_v1_ListMeta(ref), 57 "k8s.io/apimachinery/pkg/apis/meta/v1.ListOptions": schema_pkg_apis_meta_v1_ListOptions(ref), 58 "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry": schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref), 59 "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime": schema_pkg_apis_meta_v1_MicroTime(ref), 60 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta": schema_pkg_apis_meta_v1_ObjectMeta(ref), 61 "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference": schema_pkg_apis_meta_v1_OwnerReference(ref), 62 "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata": schema_pkg_apis_meta_v1_PartialObjectMetadata(ref), 63 "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadataList": schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref), 64 "k8s.io/apimachinery/pkg/apis/meta/v1.Patch": schema_pkg_apis_meta_v1_Patch(ref), 65 "k8s.io/apimachinery/pkg/apis/meta/v1.PatchOptions": schema_pkg_apis_meta_v1_PatchOptions(ref), 66 "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions": schema_pkg_apis_meta_v1_Preconditions(ref), 67 "k8s.io/apimachinery/pkg/apis/meta/v1.RootPaths": schema_pkg_apis_meta_v1_RootPaths(ref), 68 "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR": schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref), 69 "k8s.io/apimachinery/pkg/apis/meta/v1.Status": schema_pkg_apis_meta_v1_Status(ref), 70 "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause": schema_pkg_apis_meta_v1_StatusCause(ref), 71 "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails": schema_pkg_apis_meta_v1_StatusDetails(ref), 72 "k8s.io/apimachinery/pkg/apis/meta/v1.Table": schema_pkg_apis_meta_v1_Table(ref), 73 "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition": schema_pkg_apis_meta_v1_TableColumnDefinition(ref), 74 "k8s.io/apimachinery/pkg/apis/meta/v1.TableOptions": schema_pkg_apis_meta_v1_TableOptions(ref), 75 "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow": schema_pkg_apis_meta_v1_TableRow(ref), 76 "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition": schema_pkg_apis_meta_v1_TableRowCondition(ref), 77 "k8s.io/apimachinery/pkg/apis/meta/v1.Time": schema_pkg_apis_meta_v1_Time(ref), 78 "k8s.io/apimachinery/pkg/apis/meta/v1.Timestamp": schema_pkg_apis_meta_v1_Timestamp(ref), 79 "k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta": schema_pkg_apis_meta_v1_TypeMeta(ref), 80 "k8s.io/apimachinery/pkg/apis/meta/v1.UpdateOptions": schema_pkg_apis_meta_v1_UpdateOptions(ref), 81 "k8s.io/apimachinery/pkg/apis/meta/v1.WatchEvent": schema_pkg_apis_meta_v1_WatchEvent(ref), 82 "kubesphere.io/api/servicemesh/v1alpha2.DestinationRuleSpecTemplate": schema_kubesphereio_api_servicemesh_v1alpha2_DestinationRuleSpecTemplate(ref), 83 "kubesphere.io/api/servicemesh/v1alpha2.ServicePolicy": schema_kubesphereio_api_servicemesh_v1alpha2_ServicePolicy(ref), 84 "kubesphere.io/api/servicemesh/v1alpha2.ServicePolicyCondition": schema_kubesphereio_api_servicemesh_v1alpha2_ServicePolicyCondition(ref), 85 "kubesphere.io/api/servicemesh/v1alpha2.ServicePolicyList": schema_kubesphereio_api_servicemesh_v1alpha2_ServicePolicyList(ref), 86 "kubesphere.io/api/servicemesh/v1alpha2.ServicePolicySpec": schema_kubesphereio_api_servicemesh_v1alpha2_ServicePolicySpec(ref), 87 "kubesphere.io/api/servicemesh/v1alpha2.ServicePolicyStatus": schema_kubesphereio_api_servicemesh_v1alpha2_ServicePolicyStatus(ref), 88 "kubesphere.io/api/servicemesh/v1alpha2.Strategy": schema_kubesphereio_api_servicemesh_v1alpha2_Strategy(ref), 89 "kubesphere.io/api/servicemesh/v1alpha2.StrategyCondition": schema_kubesphereio_api_servicemesh_v1alpha2_StrategyCondition(ref), 90 "kubesphere.io/api/servicemesh/v1alpha2.StrategyList": schema_kubesphereio_api_servicemesh_v1alpha2_StrategyList(ref), 91 "kubesphere.io/api/servicemesh/v1alpha2.StrategySpec": schema_kubesphereio_api_servicemesh_v1alpha2_StrategySpec(ref), 92 "kubesphere.io/api/servicemesh/v1alpha2.StrategyStatus": schema_kubesphereio_api_servicemesh_v1alpha2_StrategyStatus(ref), 93 "kubesphere.io/api/servicemesh/v1alpha2.VirtualServiceTemplateSpec": schema_kubesphereio_api_servicemesh_v1alpha2_VirtualServiceTemplateSpec(ref), 94 } 95 } 96 97 func schema_pkg_apis_meta_v1_APIGroup(ref common.ReferenceCallback) common.OpenAPIDefinition { 98 return common.OpenAPIDefinition{ 99 Schema: spec.Schema{ 100 SchemaProps: spec.SchemaProps{ 101 Description: "APIGroup contains the name, the supported versions, and the preferred version of a group.", 102 Type: []string{"object"}, 103 Properties: map[string]spec.Schema{ 104 "kind": { 105 SchemaProps: spec.SchemaProps{ 106 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", 107 Type: []string{"string"}, 108 Format: "", 109 }, 110 }, 111 "apiVersion": { 112 SchemaProps: spec.SchemaProps{ 113 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", 114 Type: []string{"string"}, 115 Format: "", 116 }, 117 }, 118 "name": { 119 SchemaProps: spec.SchemaProps{ 120 Description: "name is the name of the group.", 121 Default: "", 122 Type: []string{"string"}, 123 Format: "", 124 }, 125 }, 126 "versions": { 127 SchemaProps: spec.SchemaProps{ 128 Description: "versions are the versions supported in this group.", 129 Type: []string{"array"}, 130 Items: &spec.SchemaOrArray{ 131 Schema: &spec.Schema{ 132 SchemaProps: spec.SchemaProps{ 133 Default: map[string]interface{}{}, 134 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery"), 135 }, 136 }, 137 }, 138 }, 139 }, 140 "preferredVersion": { 141 SchemaProps: spec.SchemaProps{ 142 Description: "preferredVersion is the version preferred by the API server, which probably is the storage version.", 143 Default: map[string]interface{}{}, 144 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery"), 145 }, 146 }, 147 "serverAddressByClientCIDRs": { 148 SchemaProps: spec.SchemaProps{ 149 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.", 150 Type: []string{"array"}, 151 Items: &spec.SchemaOrArray{ 152 Schema: &spec.Schema{ 153 SchemaProps: spec.SchemaProps{ 154 Default: map[string]interface{}{}, 155 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"), 156 }, 157 }, 158 }, 159 }, 160 }, 161 }, 162 Required: []string{"name", "versions"}, 163 }, 164 }, 165 Dependencies: []string{ 166 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery", "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"}, 167 } 168 } 169 170 func schema_pkg_apis_meta_v1_APIGroupList(ref common.ReferenceCallback) common.OpenAPIDefinition { 171 return common.OpenAPIDefinition{ 172 Schema: spec.Schema{ 173 SchemaProps: spec.SchemaProps{ 174 Description: "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", 175 Type: []string{"object"}, 176 Properties: map[string]spec.Schema{ 177 "kind": { 178 SchemaProps: spec.SchemaProps{ 179 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", 180 Type: []string{"string"}, 181 Format: "", 182 }, 183 }, 184 "apiVersion": { 185 SchemaProps: spec.SchemaProps{ 186 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", 187 Type: []string{"string"}, 188 Format: "", 189 }, 190 }, 191 "groups": { 192 SchemaProps: spec.SchemaProps{ 193 Description: "groups is a list of APIGroup.", 194 Type: []string{"array"}, 195 Items: &spec.SchemaOrArray{ 196 Schema: &spec.Schema{ 197 SchemaProps: spec.SchemaProps{ 198 Default: map[string]interface{}{}, 199 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup"), 200 }, 201 }, 202 }, 203 }, 204 }, 205 }, 206 Required: []string{"groups"}, 207 }, 208 }, 209 Dependencies: []string{ 210 "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup"}, 211 } 212 } 213 214 func schema_pkg_apis_meta_v1_APIResource(ref common.ReferenceCallback) common.OpenAPIDefinition { 215 return common.OpenAPIDefinition{ 216 Schema: spec.Schema{ 217 SchemaProps: spec.SchemaProps{ 218 Description: "APIResource specifies the name of a resource and whether it is namespaced.", 219 Type: []string{"object"}, 220 Properties: map[string]spec.Schema{ 221 "name": { 222 SchemaProps: spec.SchemaProps{ 223 Description: "name is the plural name of the resource.", 224 Default: "", 225 Type: []string{"string"}, 226 Format: "", 227 }, 228 }, 229 "singularName": { 230 SchemaProps: spec.SchemaProps{ 231 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.", 232 Default: "", 233 Type: []string{"string"}, 234 Format: "", 235 }, 236 }, 237 "namespaced": { 238 SchemaProps: spec.SchemaProps{ 239 Description: "namespaced indicates if a resource is namespaced or not.", 240 Default: false, 241 Type: []string{"boolean"}, 242 Format: "", 243 }, 244 }, 245 "group": { 246 SchemaProps: spec.SchemaProps{ 247 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\".", 248 Type: []string{"string"}, 249 Format: "", 250 }, 251 }, 252 "version": { 253 SchemaProps: spec.SchemaProps{ 254 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)\".", 255 Type: []string{"string"}, 256 Format: "", 257 }, 258 }, 259 "kind": { 260 SchemaProps: spec.SchemaProps{ 261 Description: "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", 262 Default: "", 263 Type: []string{"string"}, 264 Format: "", 265 }, 266 }, 267 "verbs": { 268 SchemaProps: spec.SchemaProps{ 269 Description: "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", 270 Type: []string{"array"}, 271 Items: &spec.SchemaOrArray{ 272 Schema: &spec.Schema{ 273 SchemaProps: spec.SchemaProps{ 274 Default: "", 275 Type: []string{"string"}, 276 Format: "", 277 }, 278 }, 279 }, 280 }, 281 }, 282 "shortNames": { 283 SchemaProps: spec.SchemaProps{ 284 Description: "shortNames is a list of suggested short names of the resource.", 285 Type: []string{"array"}, 286 Items: &spec.SchemaOrArray{ 287 Schema: &spec.Schema{ 288 SchemaProps: spec.SchemaProps{ 289 Default: "", 290 Type: []string{"string"}, 291 Format: "", 292 }, 293 }, 294 }, 295 }, 296 }, 297 "categories": { 298 SchemaProps: spec.SchemaProps{ 299 Description: "categories is a list of the grouped resources this resource belongs to (e.g. 'all')", 300 Type: []string{"array"}, 301 Items: &spec.SchemaOrArray{ 302 Schema: &spec.Schema{ 303 SchemaProps: spec.SchemaProps{ 304 Default: "", 305 Type: []string{"string"}, 306 Format: "", 307 }, 308 }, 309 }, 310 }, 311 }, 312 "storageVersionHash": { 313 SchemaProps: spec.SchemaProps{ 314 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.", 315 Type: []string{"string"}, 316 Format: "", 317 }, 318 }, 319 }, 320 Required: []string{"name", "singularName", "namespaced", "kind", "verbs"}, 321 }, 322 }, 323 } 324 } 325 326 func schema_pkg_apis_meta_v1_APIResourceList(ref common.ReferenceCallback) common.OpenAPIDefinition { 327 return common.OpenAPIDefinition{ 328 Schema: spec.Schema{ 329 SchemaProps: spec.SchemaProps{ 330 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.", 331 Type: []string{"object"}, 332 Properties: map[string]spec.Schema{ 333 "kind": { 334 SchemaProps: spec.SchemaProps{ 335 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", 336 Type: []string{"string"}, 337 Format: "", 338 }, 339 }, 340 "apiVersion": { 341 SchemaProps: spec.SchemaProps{ 342 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", 343 Type: []string{"string"}, 344 Format: "", 345 }, 346 }, 347 "groupVersion": { 348 SchemaProps: spec.SchemaProps{ 349 Description: "groupVersion is the group and version this APIResourceList is for.", 350 Default: "", 351 Type: []string{"string"}, 352 Format: "", 353 }, 354 }, 355 "resources": { 356 SchemaProps: spec.SchemaProps{ 357 Description: "resources contains the name of the resources and if they are namespaced.", 358 Type: []string{"array"}, 359 Items: &spec.SchemaOrArray{ 360 Schema: &spec.Schema{ 361 SchemaProps: spec.SchemaProps{ 362 Default: map[string]interface{}{}, 363 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.APIResource"), 364 }, 365 }, 366 }, 367 }, 368 }, 369 }, 370 Required: []string{"groupVersion", "resources"}, 371 }, 372 }, 373 Dependencies: []string{ 374 "k8s.io/apimachinery/pkg/apis/meta/v1.APIResource"}, 375 } 376 } 377 378 func schema_pkg_apis_meta_v1_APIVersions(ref common.ReferenceCallback) common.OpenAPIDefinition { 379 return common.OpenAPIDefinition{ 380 Schema: spec.Schema{ 381 SchemaProps: spec.SchemaProps{ 382 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.", 383 Type: []string{"object"}, 384 Properties: map[string]spec.Schema{ 385 "kind": { 386 SchemaProps: spec.SchemaProps{ 387 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", 388 Type: []string{"string"}, 389 Format: "", 390 }, 391 }, 392 "apiVersion": { 393 SchemaProps: spec.SchemaProps{ 394 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", 395 Type: []string{"string"}, 396 Format: "", 397 }, 398 }, 399 "versions": { 400 SchemaProps: spec.SchemaProps{ 401 Description: "versions are the api versions that are available.", 402 Type: []string{"array"}, 403 Items: &spec.SchemaOrArray{ 404 Schema: &spec.Schema{ 405 SchemaProps: spec.SchemaProps{ 406 Default: "", 407 Type: []string{"string"}, 408 Format: "", 409 }, 410 }, 411 }, 412 }, 413 }, 414 "serverAddressByClientCIDRs": { 415 SchemaProps: spec.SchemaProps{ 416 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.", 417 Type: []string{"array"}, 418 Items: &spec.SchemaOrArray{ 419 Schema: &spec.Schema{ 420 SchemaProps: spec.SchemaProps{ 421 Default: map[string]interface{}{}, 422 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"), 423 }, 424 }, 425 }, 426 }, 427 }, 428 }, 429 Required: []string{"versions", "serverAddressByClientCIDRs"}, 430 }, 431 }, 432 Dependencies: []string{ 433 "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"}, 434 } 435 } 436 437 func schema_pkg_apis_meta_v1_ApplyOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 438 return common.OpenAPIDefinition{ 439 Schema: spec.Schema{ 440 SchemaProps: spec.SchemaProps{ 441 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.", 442 Type: []string{"object"}, 443 Properties: map[string]spec.Schema{ 444 "kind": { 445 SchemaProps: spec.SchemaProps{ 446 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", 447 Type: []string{"string"}, 448 Format: "", 449 }, 450 }, 451 "apiVersion": { 452 SchemaProps: spec.SchemaProps{ 453 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", 454 Type: []string{"string"}, 455 Format: "", 456 }, 457 }, 458 "dryRun": { 459 SchemaProps: spec.SchemaProps{ 460 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", 461 Type: []string{"array"}, 462 Items: &spec.SchemaOrArray{ 463 Schema: &spec.Schema{ 464 SchemaProps: spec.SchemaProps{ 465 Default: "", 466 Type: []string{"string"}, 467 Format: "", 468 }, 469 }, 470 }, 471 }, 472 }, 473 "force": { 474 SchemaProps: spec.SchemaProps{ 475 Description: "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people.", 476 Default: false, 477 Type: []string{"boolean"}, 478 Format: "", 479 }, 480 }, 481 "fieldManager": { 482 SchemaProps: spec.SchemaProps{ 483 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.", 484 Default: "", 485 Type: []string{"string"}, 486 Format: "", 487 }, 488 }, 489 }, 490 Required: []string{"force", "fieldManager"}, 491 }, 492 }, 493 } 494 } 495 496 func schema_pkg_apis_meta_v1_Condition(ref common.ReferenceCallback) common.OpenAPIDefinition { 497 return common.OpenAPIDefinition{ 498 Schema: spec.Schema{ 499 SchemaProps: spec.SchemaProps{ 500 Description: "Condition contains details for one aspect of the current state of this API Resource.", 501 Type: []string{"object"}, 502 Properties: map[string]spec.Schema{ 503 "type": { 504 SchemaProps: spec.SchemaProps{ 505 Description: "type of condition in CamelCase or in foo.example.com/CamelCase.", 506 Default: "", 507 Type: []string{"string"}, 508 Format: "", 509 }, 510 }, 511 "status": { 512 SchemaProps: spec.SchemaProps{ 513 Description: "status of the condition, one of True, False, Unknown.", 514 Default: "", 515 Type: []string{"string"}, 516 Format: "", 517 }, 518 }, 519 "observedGeneration": { 520 SchemaProps: spec.SchemaProps{ 521 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.", 522 Type: []string{"integer"}, 523 Format: "int64", 524 }, 525 }, 526 "lastTransitionTime": { 527 SchemaProps: spec.SchemaProps{ 528 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.", 529 Default: map[string]interface{}{}, 530 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 531 }, 532 }, 533 "reason": { 534 SchemaProps: spec.SchemaProps{ 535 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.", 536 Default: "", 537 Type: []string{"string"}, 538 Format: "", 539 }, 540 }, 541 "message": { 542 SchemaProps: spec.SchemaProps{ 543 Description: "message is a human readable message indicating details about the transition. This may be an empty string.", 544 Default: "", 545 Type: []string{"string"}, 546 Format: "", 547 }, 548 }, 549 }, 550 Required: []string{"type", "status", "lastTransitionTime", "reason", "message"}, 551 }, 552 }, 553 Dependencies: []string{ 554 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 555 } 556 } 557 558 func schema_pkg_apis_meta_v1_CreateOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 559 return common.OpenAPIDefinition{ 560 Schema: spec.Schema{ 561 SchemaProps: spec.SchemaProps{ 562 Description: "CreateOptions may be provided when creating an API object.", 563 Type: []string{"object"}, 564 Properties: map[string]spec.Schema{ 565 "kind": { 566 SchemaProps: spec.SchemaProps{ 567 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", 568 Type: []string{"string"}, 569 Format: "", 570 }, 571 }, 572 "apiVersion": { 573 SchemaProps: spec.SchemaProps{ 574 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", 575 Type: []string{"string"}, 576 Format: "", 577 }, 578 }, 579 "dryRun": { 580 SchemaProps: spec.SchemaProps{ 581 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", 582 Type: []string{"array"}, 583 Items: &spec.SchemaOrArray{ 584 Schema: &spec.Schema{ 585 SchemaProps: spec.SchemaProps{ 586 Default: "", 587 Type: []string{"string"}, 588 Format: "", 589 }, 590 }, 591 }, 592 }, 593 }, 594 "fieldManager": { 595 SchemaProps: spec.SchemaProps{ 596 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.", 597 Type: []string{"string"}, 598 Format: "", 599 }, 600 }, 601 "fieldValidation": { 602 SchemaProps: spec.SchemaProps{ 603 Description: "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. 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 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - 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 when the `ServerSideFieldValidation` feature gate is enabled. - 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.", 604 Type: []string{"string"}, 605 Format: "", 606 }, 607 }, 608 }, 609 }, 610 }, 611 } 612 } 613 614 func schema_pkg_apis_meta_v1_DeleteOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 615 return common.OpenAPIDefinition{ 616 Schema: spec.Schema{ 617 SchemaProps: spec.SchemaProps{ 618 Description: "DeleteOptions may be provided when deleting an API object.", 619 Type: []string{"object"}, 620 Properties: map[string]spec.Schema{ 621 "kind": { 622 SchemaProps: spec.SchemaProps{ 623 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", 624 Type: []string{"string"}, 625 Format: "", 626 }, 627 }, 628 "apiVersion": { 629 SchemaProps: spec.SchemaProps{ 630 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", 631 Type: []string{"string"}, 632 Format: "", 633 }, 634 }, 635 "gracePeriodSeconds": { 636 SchemaProps: spec.SchemaProps{ 637 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.", 638 Type: []string{"integer"}, 639 Format: "int64", 640 }, 641 }, 642 "preconditions": { 643 SchemaProps: spec.SchemaProps{ 644 Description: "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.", 645 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions"), 646 }, 647 }, 648 "orphanDependents": { 649 SchemaProps: spec.SchemaProps{ 650 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.", 651 Type: []string{"boolean"}, 652 Format: "", 653 }, 654 }, 655 "propagationPolicy": { 656 SchemaProps: spec.SchemaProps{ 657 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.", 658 Type: []string{"string"}, 659 Format: "", 660 }, 661 }, 662 "dryRun": { 663 SchemaProps: spec.SchemaProps{ 664 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", 665 Type: []string{"array"}, 666 Items: &spec.SchemaOrArray{ 667 Schema: &spec.Schema{ 668 SchemaProps: spec.SchemaProps{ 669 Default: "", 670 Type: []string{"string"}, 671 Format: "", 672 }, 673 }, 674 }, 675 }, 676 }, 677 }, 678 }, 679 }, 680 Dependencies: []string{ 681 "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions"}, 682 } 683 } 684 685 func schema_pkg_apis_meta_v1_Duration(ref common.ReferenceCallback) common.OpenAPIDefinition { 686 return common.OpenAPIDefinition{ 687 Schema: spec.Schema{ 688 SchemaProps: spec.SchemaProps{ 689 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.", 690 Type: v1.Duration{}.OpenAPISchemaType(), 691 Format: v1.Duration{}.OpenAPISchemaFormat(), 692 }, 693 }, 694 } 695 } 696 697 func schema_pkg_apis_meta_v1_FieldsV1(ref common.ReferenceCallback) common.OpenAPIDefinition { 698 return common.OpenAPIDefinition{ 699 Schema: spec.Schema{ 700 SchemaProps: spec.SchemaProps{ 701 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", 702 Type: []string{"object"}, 703 }, 704 }, 705 } 706 } 707 708 func schema_pkg_apis_meta_v1_GetOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 709 return common.OpenAPIDefinition{ 710 Schema: spec.Schema{ 711 SchemaProps: spec.SchemaProps{ 712 Description: "GetOptions is the standard query options to the standard REST get call.", 713 Type: []string{"object"}, 714 Properties: map[string]spec.Schema{ 715 "kind": { 716 SchemaProps: spec.SchemaProps{ 717 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", 718 Type: []string{"string"}, 719 Format: "", 720 }, 721 }, 722 "apiVersion": { 723 SchemaProps: spec.SchemaProps{ 724 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", 725 Type: []string{"string"}, 726 Format: "", 727 }, 728 }, 729 "resourceVersion": { 730 SchemaProps: spec.SchemaProps{ 731 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", 732 Type: []string{"string"}, 733 Format: "", 734 }, 735 }, 736 }, 737 }, 738 }, 739 } 740 } 741 742 func schema_pkg_apis_meta_v1_GroupKind(ref common.ReferenceCallback) common.OpenAPIDefinition { 743 return common.OpenAPIDefinition{ 744 Schema: spec.Schema{ 745 SchemaProps: spec.SchemaProps{ 746 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", 747 Type: []string{"object"}, 748 Properties: map[string]spec.Schema{ 749 "group": { 750 SchemaProps: spec.SchemaProps{ 751 Default: "", 752 Type: []string{"string"}, 753 Format: "", 754 }, 755 }, 756 "kind": { 757 SchemaProps: spec.SchemaProps{ 758 Default: "", 759 Type: []string{"string"}, 760 Format: "", 761 }, 762 }, 763 }, 764 Required: []string{"group", "kind"}, 765 }, 766 }, 767 } 768 } 769 770 func schema_pkg_apis_meta_v1_GroupResource(ref common.ReferenceCallback) common.OpenAPIDefinition { 771 return common.OpenAPIDefinition{ 772 Schema: spec.Schema{ 773 SchemaProps: spec.SchemaProps{ 774 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", 775 Type: []string{"object"}, 776 Properties: map[string]spec.Schema{ 777 "group": { 778 SchemaProps: spec.SchemaProps{ 779 Default: "", 780 Type: []string{"string"}, 781 Format: "", 782 }, 783 }, 784 "resource": { 785 SchemaProps: spec.SchemaProps{ 786 Default: "", 787 Type: []string{"string"}, 788 Format: "", 789 }, 790 }, 791 }, 792 Required: []string{"group", "resource"}, 793 }, 794 }, 795 } 796 } 797 798 func schema_pkg_apis_meta_v1_GroupVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { 799 return common.OpenAPIDefinition{ 800 Schema: spec.Schema{ 801 SchemaProps: spec.SchemaProps{ 802 Description: "GroupVersion contains the \"group\" and the \"version\", which uniquely identifies the API.", 803 Type: []string{"object"}, 804 Properties: map[string]spec.Schema{ 805 "group": { 806 SchemaProps: spec.SchemaProps{ 807 Default: "", 808 Type: []string{"string"}, 809 Format: "", 810 }, 811 }, 812 "version": { 813 SchemaProps: spec.SchemaProps{ 814 Default: "", 815 Type: []string{"string"}, 816 Format: "", 817 }, 818 }, 819 }, 820 Required: []string{"group", "version"}, 821 }, 822 }, 823 } 824 } 825 826 func schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref common.ReferenceCallback) common.OpenAPIDefinition { 827 return common.OpenAPIDefinition{ 828 Schema: spec.Schema{ 829 SchemaProps: spec.SchemaProps{ 830 Description: "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", 831 Type: []string{"object"}, 832 Properties: map[string]spec.Schema{ 833 "groupVersion": { 834 SchemaProps: spec.SchemaProps{ 835 Description: "groupVersion specifies the API group and version in the form \"group/version\"", 836 Default: "", 837 Type: []string{"string"}, 838 Format: "", 839 }, 840 }, 841 "version": { 842 SchemaProps: spec.SchemaProps{ 843 Description: "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", 844 Default: "", 845 Type: []string{"string"}, 846 Format: "", 847 }, 848 }, 849 }, 850 Required: []string{"groupVersion", "version"}, 851 }, 852 }, 853 } 854 } 855 856 func schema_pkg_apis_meta_v1_GroupVersionKind(ref common.ReferenceCallback) common.OpenAPIDefinition { 857 return common.OpenAPIDefinition{ 858 Schema: spec.Schema{ 859 SchemaProps: spec.SchemaProps{ 860 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", 861 Type: []string{"object"}, 862 Properties: map[string]spec.Schema{ 863 "group": { 864 SchemaProps: spec.SchemaProps{ 865 Default: "", 866 Type: []string{"string"}, 867 Format: "", 868 }, 869 }, 870 "version": { 871 SchemaProps: spec.SchemaProps{ 872 Default: "", 873 Type: []string{"string"}, 874 Format: "", 875 }, 876 }, 877 "kind": { 878 SchemaProps: spec.SchemaProps{ 879 Default: "", 880 Type: []string{"string"}, 881 Format: "", 882 }, 883 }, 884 }, 885 Required: []string{"group", "version", "kind"}, 886 }, 887 }, 888 } 889 } 890 891 func schema_pkg_apis_meta_v1_GroupVersionResource(ref common.ReferenceCallback) common.OpenAPIDefinition { 892 return common.OpenAPIDefinition{ 893 Schema: spec.Schema{ 894 SchemaProps: spec.SchemaProps{ 895 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", 896 Type: []string{"object"}, 897 Properties: map[string]spec.Schema{ 898 "group": { 899 SchemaProps: spec.SchemaProps{ 900 Default: "", 901 Type: []string{"string"}, 902 Format: "", 903 }, 904 }, 905 "version": { 906 SchemaProps: spec.SchemaProps{ 907 Default: "", 908 Type: []string{"string"}, 909 Format: "", 910 }, 911 }, 912 "resource": { 913 SchemaProps: spec.SchemaProps{ 914 Default: "", 915 Type: []string{"string"}, 916 Format: "", 917 }, 918 }, 919 }, 920 Required: []string{"group", "version", "resource"}, 921 }, 922 }, 923 } 924 } 925 926 func schema_pkg_apis_meta_v1_InternalEvent(ref common.ReferenceCallback) common.OpenAPIDefinition { 927 return common.OpenAPIDefinition{ 928 Schema: spec.Schema{ 929 SchemaProps: spec.SchemaProps{ 930 Description: "InternalEvent makes watch.Event versioned", 931 Type: []string{"object"}, 932 Properties: map[string]spec.Schema{ 933 "Type": { 934 SchemaProps: spec.SchemaProps{ 935 Default: "", 936 Type: []string{"string"}, 937 Format: "", 938 }, 939 }, 940 "Object": { 941 SchemaProps: spec.SchemaProps{ 942 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.", 943 Ref: ref("k8s.io/apimachinery/pkg/runtime.Object"), 944 }, 945 }, 946 }, 947 Required: []string{"Type", "Object"}, 948 }, 949 }, 950 Dependencies: []string{ 951 "k8s.io/apimachinery/pkg/runtime.Object"}, 952 } 953 } 954 955 func schema_pkg_apis_meta_v1_LabelSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 956 return common.OpenAPIDefinition{ 957 Schema: spec.Schema{ 958 SchemaProps: spec.SchemaProps{ 959 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.", 960 Type: []string{"object"}, 961 Properties: map[string]spec.Schema{ 962 "matchLabels": { 963 SchemaProps: spec.SchemaProps{ 964 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.", 965 Type: []string{"object"}, 966 AdditionalProperties: &spec.SchemaOrBool{ 967 Allows: true, 968 Schema: &spec.Schema{ 969 SchemaProps: spec.SchemaProps{ 970 Default: "", 971 Type: []string{"string"}, 972 Format: "", 973 }, 974 }, 975 }, 976 }, 977 }, 978 "matchExpressions": { 979 SchemaProps: spec.SchemaProps{ 980 Description: "matchExpressions is a list of label selector requirements. The requirements are ANDed.", 981 Type: []string{"array"}, 982 Items: &spec.SchemaOrArray{ 983 Schema: &spec.Schema{ 984 SchemaProps: spec.SchemaProps{ 985 Default: map[string]interface{}{}, 986 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"), 987 }, 988 }, 989 }, 990 }, 991 }, 992 }, 993 }, 994 VendorExtensible: spec.VendorExtensible{ 995 Extensions: spec.Extensions{ 996 "x-kubernetes-map-type": "atomic", 997 }, 998 }, 999 }, 1000 Dependencies: []string{ 1001 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"}, 1002 } 1003 } 1004 1005 func schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref common.ReferenceCallback) common.OpenAPIDefinition { 1006 return common.OpenAPIDefinition{ 1007 Schema: spec.Schema{ 1008 SchemaProps: spec.SchemaProps{ 1009 Description: "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", 1010 Type: []string{"object"}, 1011 Properties: map[string]spec.Schema{ 1012 "key": { 1013 VendorExtensible: spec.VendorExtensible{ 1014 Extensions: spec.Extensions{ 1015 "x-kubernetes-patch-merge-key": "key", 1016 "x-kubernetes-patch-strategy": "merge", 1017 }, 1018 }, 1019 SchemaProps: spec.SchemaProps{ 1020 Description: "key is the label key that the selector applies to.", 1021 Default: "", 1022 Type: []string{"string"}, 1023 Format: "", 1024 }, 1025 }, 1026 "operator": { 1027 SchemaProps: spec.SchemaProps{ 1028 Description: "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", 1029 Default: "", 1030 Type: []string{"string"}, 1031 Format: "", 1032 }, 1033 }, 1034 "values": { 1035 SchemaProps: spec.SchemaProps{ 1036 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.", 1037 Type: []string{"array"}, 1038 Items: &spec.SchemaOrArray{ 1039 Schema: &spec.Schema{ 1040 SchemaProps: spec.SchemaProps{ 1041 Default: "", 1042 Type: []string{"string"}, 1043 Format: "", 1044 }, 1045 }, 1046 }, 1047 }, 1048 }, 1049 }, 1050 Required: []string{"key", "operator"}, 1051 }, 1052 }, 1053 } 1054 } 1055 1056 func schema_pkg_apis_meta_v1_List(ref common.ReferenceCallback) common.OpenAPIDefinition { 1057 return common.OpenAPIDefinition{ 1058 Schema: spec.Schema{ 1059 SchemaProps: spec.SchemaProps{ 1060 Description: "List holds a list of objects, which may not be known by the server.", 1061 Type: []string{"object"}, 1062 Properties: map[string]spec.Schema{ 1063 "kind": { 1064 SchemaProps: spec.SchemaProps{ 1065 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", 1066 Type: []string{"string"}, 1067 Format: "", 1068 }, 1069 }, 1070 "apiVersion": { 1071 SchemaProps: spec.SchemaProps{ 1072 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", 1073 Type: []string{"string"}, 1074 Format: "", 1075 }, 1076 }, 1077 "metadata": { 1078 SchemaProps: spec.SchemaProps{ 1079 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1080 Default: map[string]interface{}{}, 1081 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 1082 }, 1083 }, 1084 "items": { 1085 SchemaProps: spec.SchemaProps{ 1086 Description: "List of objects", 1087 Type: []string{"array"}, 1088 Items: &spec.SchemaOrArray{ 1089 Schema: &spec.Schema{ 1090 SchemaProps: spec.SchemaProps{ 1091 Default: map[string]interface{}{}, 1092 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), 1093 }, 1094 }, 1095 }, 1096 }, 1097 }, 1098 }, 1099 Required: []string{"items"}, 1100 }, 1101 }, 1102 Dependencies: []string{ 1103 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, 1104 } 1105 } 1106 1107 func schema_pkg_apis_meta_v1_ListMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { 1108 return common.OpenAPIDefinition{ 1109 Schema: spec.Schema{ 1110 SchemaProps: spec.SchemaProps{ 1111 Description: "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", 1112 Type: []string{"object"}, 1113 Properties: map[string]spec.Schema{ 1114 "selfLink": { 1115 SchemaProps: spec.SchemaProps{ 1116 Description: "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", 1117 Type: []string{"string"}, 1118 Format: "", 1119 }, 1120 }, 1121 "resourceVersion": { 1122 SchemaProps: spec.SchemaProps{ 1123 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", 1124 Type: []string{"string"}, 1125 Format: "", 1126 }, 1127 }, 1128 "continue": { 1129 SchemaProps: spec.SchemaProps{ 1130 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.", 1131 Type: []string{"string"}, 1132 Format: "", 1133 }, 1134 }, 1135 "remainingItemCount": { 1136 SchemaProps: spec.SchemaProps{ 1137 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.", 1138 Type: []string{"integer"}, 1139 Format: "int64", 1140 }, 1141 }, 1142 }, 1143 }, 1144 }, 1145 } 1146 } 1147 1148 func schema_pkg_apis_meta_v1_ListOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 1149 return common.OpenAPIDefinition{ 1150 Schema: spec.Schema{ 1151 SchemaProps: spec.SchemaProps{ 1152 Description: "ListOptions is the query options to a standard REST list call.", 1153 Type: []string{"object"}, 1154 Properties: map[string]spec.Schema{ 1155 "kind": { 1156 SchemaProps: spec.SchemaProps{ 1157 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", 1158 Type: []string{"string"}, 1159 Format: "", 1160 }, 1161 }, 1162 "apiVersion": { 1163 SchemaProps: spec.SchemaProps{ 1164 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", 1165 Type: []string{"string"}, 1166 Format: "", 1167 }, 1168 }, 1169 "labelSelector": { 1170 SchemaProps: spec.SchemaProps{ 1171 Description: "A selector to restrict the list of returned objects by their labels. Defaults to everything.", 1172 Type: []string{"string"}, 1173 Format: "", 1174 }, 1175 }, 1176 "fieldSelector": { 1177 SchemaProps: spec.SchemaProps{ 1178 Description: "A selector to restrict the list of returned objects by their fields. Defaults to everything.", 1179 Type: []string{"string"}, 1180 Format: "", 1181 }, 1182 }, 1183 "watch": { 1184 SchemaProps: spec.SchemaProps{ 1185 Description: "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", 1186 Type: []string{"boolean"}, 1187 Format: "", 1188 }, 1189 }, 1190 "allowWatchBookmarks": { 1191 SchemaProps: spec.SchemaProps{ 1192 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.", 1193 Type: []string{"boolean"}, 1194 Format: "", 1195 }, 1196 }, 1197 "resourceVersion": { 1198 SchemaProps: spec.SchemaProps{ 1199 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", 1200 Type: []string{"string"}, 1201 Format: "", 1202 }, 1203 }, 1204 "resourceVersionMatch": { 1205 SchemaProps: spec.SchemaProps{ 1206 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", 1207 Type: []string{"string"}, 1208 Format: "", 1209 }, 1210 }, 1211 "timeoutSeconds": { 1212 SchemaProps: spec.SchemaProps{ 1213 Description: "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", 1214 Type: []string{"integer"}, 1215 Format: "int64", 1216 }, 1217 }, 1218 "limit": { 1219 SchemaProps: spec.SchemaProps{ 1220 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.", 1221 Type: []string{"integer"}, 1222 Format: "int64", 1223 }, 1224 }, 1225 "continue": { 1226 SchemaProps: spec.SchemaProps{ 1227 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.", 1228 Type: []string{"string"}, 1229 Format: "", 1230 }, 1231 }, 1232 }, 1233 }, 1234 }, 1235 } 1236 } 1237 1238 func schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref common.ReferenceCallback) common.OpenAPIDefinition { 1239 return common.OpenAPIDefinition{ 1240 Schema: spec.Schema{ 1241 SchemaProps: spec.SchemaProps{ 1242 Description: "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.", 1243 Type: []string{"object"}, 1244 Properties: map[string]spec.Schema{ 1245 "manager": { 1246 SchemaProps: spec.SchemaProps{ 1247 Description: "Manager is an identifier of the workflow managing these fields.", 1248 Type: []string{"string"}, 1249 Format: "", 1250 }, 1251 }, 1252 "operation": { 1253 SchemaProps: spec.SchemaProps{ 1254 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'.", 1255 Type: []string{"string"}, 1256 Format: "", 1257 }, 1258 }, 1259 "apiVersion": { 1260 SchemaProps: spec.SchemaProps{ 1261 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.", 1262 Type: []string{"string"}, 1263 Format: "", 1264 }, 1265 }, 1266 "time": { 1267 SchemaProps: spec.SchemaProps{ 1268 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.", 1269 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 1270 }, 1271 }, 1272 "fieldsType": { 1273 SchemaProps: spec.SchemaProps{ 1274 Description: "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"", 1275 Type: []string{"string"}, 1276 Format: "", 1277 }, 1278 }, 1279 "fieldsV1": { 1280 SchemaProps: spec.SchemaProps{ 1281 Description: "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type.", 1282 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1"), 1283 }, 1284 }, 1285 "subresource": { 1286 SchemaProps: spec.SchemaProps{ 1287 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.", 1288 Type: []string{"string"}, 1289 Format: "", 1290 }, 1291 }, 1292 }, 1293 }, 1294 }, 1295 Dependencies: []string{ 1296 "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 1297 } 1298 } 1299 1300 func schema_pkg_apis_meta_v1_MicroTime(ref common.ReferenceCallback) common.OpenAPIDefinition { 1301 return common.OpenAPIDefinition{ 1302 Schema: spec.Schema{ 1303 SchemaProps: spec.SchemaProps{ 1304 Description: "MicroTime is version of Time with microsecond level precision.", 1305 Type: v1.MicroTime{}.OpenAPISchemaType(), 1306 Format: v1.MicroTime{}.OpenAPISchemaFormat(), 1307 }, 1308 }, 1309 } 1310 } 1311 1312 func schema_pkg_apis_meta_v1_ObjectMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { 1313 return common.OpenAPIDefinition{ 1314 Schema: spec.Schema{ 1315 SchemaProps: spec.SchemaProps{ 1316 Description: "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", 1317 Type: []string{"object"}, 1318 Properties: map[string]spec.Schema{ 1319 "name": { 1320 SchemaProps: spec.SchemaProps{ 1321 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: http://kubernetes.io/docs/user-guide/identifiers#names", 1322 Type: []string{"string"}, 1323 Format: "", 1324 }, 1325 }, 1326 "generateName": { 1327 SchemaProps: spec.SchemaProps{ 1328 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", 1329 Type: []string{"string"}, 1330 Format: "", 1331 }, 1332 }, 1333 "namespace": { 1334 SchemaProps: spec.SchemaProps{ 1335 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: http://kubernetes.io/docs/user-guide/namespaces", 1336 Type: []string{"string"}, 1337 Format: "", 1338 }, 1339 }, 1340 "selfLink": { 1341 SchemaProps: spec.SchemaProps{ 1342 Description: "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", 1343 Type: []string{"string"}, 1344 Format: "", 1345 }, 1346 }, 1347 "uid": { 1348 SchemaProps: spec.SchemaProps{ 1349 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: http://kubernetes.io/docs/user-guide/identifiers#uids", 1350 Type: []string{"string"}, 1351 Format: "", 1352 }, 1353 }, 1354 "resourceVersion": { 1355 SchemaProps: spec.SchemaProps{ 1356 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", 1357 Type: []string{"string"}, 1358 Format: "", 1359 }, 1360 }, 1361 "generation": { 1362 SchemaProps: spec.SchemaProps{ 1363 Description: "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", 1364 Type: []string{"integer"}, 1365 Format: "int64", 1366 }, 1367 }, 1368 "creationTimestamp": { 1369 SchemaProps: spec.SchemaProps{ 1370 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", 1371 Default: map[string]interface{}{}, 1372 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 1373 }, 1374 }, 1375 "deletionTimestamp": { 1376 SchemaProps: spec.SchemaProps{ 1377 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", 1378 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 1379 }, 1380 }, 1381 "deletionGracePeriodSeconds": { 1382 SchemaProps: spec.SchemaProps{ 1383 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.", 1384 Type: []string{"integer"}, 1385 Format: "int64", 1386 }, 1387 }, 1388 "labels": { 1389 SchemaProps: spec.SchemaProps{ 1390 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: http://kubernetes.io/docs/user-guide/labels", 1391 Type: []string{"object"}, 1392 AdditionalProperties: &spec.SchemaOrBool{ 1393 Allows: true, 1394 Schema: &spec.Schema{ 1395 SchemaProps: spec.SchemaProps{ 1396 Default: "", 1397 Type: []string{"string"}, 1398 Format: "", 1399 }, 1400 }, 1401 }, 1402 }, 1403 }, 1404 "annotations": { 1405 SchemaProps: spec.SchemaProps{ 1406 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: http://kubernetes.io/docs/user-guide/annotations", 1407 Type: []string{"object"}, 1408 AdditionalProperties: &spec.SchemaOrBool{ 1409 Allows: true, 1410 Schema: &spec.Schema{ 1411 SchemaProps: spec.SchemaProps{ 1412 Default: "", 1413 Type: []string{"string"}, 1414 Format: "", 1415 }, 1416 }, 1417 }, 1418 }, 1419 }, 1420 "ownerReferences": { 1421 VendorExtensible: spec.VendorExtensible{ 1422 Extensions: spec.Extensions{ 1423 "x-kubernetes-patch-merge-key": "uid", 1424 "x-kubernetes-patch-strategy": "merge", 1425 }, 1426 }, 1427 SchemaProps: spec.SchemaProps{ 1428 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.", 1429 Type: []string{"array"}, 1430 Items: &spec.SchemaOrArray{ 1431 Schema: &spec.Schema{ 1432 SchemaProps: spec.SchemaProps{ 1433 Default: map[string]interface{}{}, 1434 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference"), 1435 }, 1436 }, 1437 }, 1438 }, 1439 }, 1440 "finalizers": { 1441 VendorExtensible: spec.VendorExtensible{ 1442 Extensions: spec.Extensions{ 1443 "x-kubernetes-patch-strategy": "merge", 1444 }, 1445 }, 1446 SchemaProps: spec.SchemaProps{ 1447 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.", 1448 Type: []string{"array"}, 1449 Items: &spec.SchemaOrArray{ 1450 Schema: &spec.Schema{ 1451 SchemaProps: spec.SchemaProps{ 1452 Default: "", 1453 Type: []string{"string"}, 1454 Format: "", 1455 }, 1456 }, 1457 }, 1458 }, 1459 }, 1460 "managedFields": { 1461 SchemaProps: spec.SchemaProps{ 1462 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.", 1463 Type: []string{"array"}, 1464 Items: &spec.SchemaOrArray{ 1465 Schema: &spec.Schema{ 1466 SchemaProps: spec.SchemaProps{ 1467 Default: map[string]interface{}{}, 1468 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry"), 1469 }, 1470 }, 1471 }, 1472 }, 1473 }, 1474 }, 1475 }, 1476 }, 1477 Dependencies: []string{ 1478 "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry", "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 1479 } 1480 } 1481 1482 func schema_pkg_apis_meta_v1_OwnerReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 1483 return common.OpenAPIDefinition{ 1484 Schema: spec.Schema{ 1485 SchemaProps: spec.SchemaProps{ 1486 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.", 1487 Type: []string{"object"}, 1488 Properties: map[string]spec.Schema{ 1489 "apiVersion": { 1490 SchemaProps: spec.SchemaProps{ 1491 Description: "API version of the referent.", 1492 Default: "", 1493 Type: []string{"string"}, 1494 Format: "", 1495 }, 1496 }, 1497 "kind": { 1498 SchemaProps: spec.SchemaProps{ 1499 Description: "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1500 Default: "", 1501 Type: []string{"string"}, 1502 Format: "", 1503 }, 1504 }, 1505 "name": { 1506 SchemaProps: spec.SchemaProps{ 1507 Description: "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", 1508 Default: "", 1509 Type: []string{"string"}, 1510 Format: "", 1511 }, 1512 }, 1513 "uid": { 1514 SchemaProps: spec.SchemaProps{ 1515 Description: "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", 1516 Default: "", 1517 Type: []string{"string"}, 1518 Format: "", 1519 }, 1520 }, 1521 "controller": { 1522 SchemaProps: spec.SchemaProps{ 1523 Description: "If true, this reference points to the managing controller.", 1524 Type: []string{"boolean"}, 1525 Format: "", 1526 }, 1527 }, 1528 "blockOwnerDeletion": { 1529 SchemaProps: spec.SchemaProps{ 1530 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.", 1531 Type: []string{"boolean"}, 1532 Format: "", 1533 }, 1534 }, 1535 }, 1536 Required: []string{"apiVersion", "kind", "name", "uid"}, 1537 }, 1538 VendorExtensible: spec.VendorExtensible{ 1539 Extensions: spec.Extensions{ 1540 "x-kubernetes-map-type": "atomic", 1541 }, 1542 }, 1543 }, 1544 } 1545 } 1546 1547 func schema_pkg_apis_meta_v1_PartialObjectMetadata(ref common.ReferenceCallback) common.OpenAPIDefinition { 1548 return common.OpenAPIDefinition{ 1549 Schema: spec.Schema{ 1550 SchemaProps: spec.SchemaProps{ 1551 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.", 1552 Type: []string{"object"}, 1553 Properties: map[string]spec.Schema{ 1554 "kind": { 1555 SchemaProps: spec.SchemaProps{ 1556 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", 1557 Type: []string{"string"}, 1558 Format: "", 1559 }, 1560 }, 1561 "apiVersion": { 1562 SchemaProps: spec.SchemaProps{ 1563 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", 1564 Type: []string{"string"}, 1565 Format: "", 1566 }, 1567 }, 1568 "metadata": { 1569 SchemaProps: spec.SchemaProps{ 1570 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 1571 Default: map[string]interface{}{}, 1572 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 1573 }, 1574 }, 1575 }, 1576 }, 1577 }, 1578 Dependencies: []string{ 1579 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 1580 } 1581 } 1582 1583 func schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref common.ReferenceCallback) common.OpenAPIDefinition { 1584 return common.OpenAPIDefinition{ 1585 Schema: spec.Schema{ 1586 SchemaProps: spec.SchemaProps{ 1587 Description: "PartialObjectMetadataList contains a list of objects containing only their metadata", 1588 Type: []string{"object"}, 1589 Properties: map[string]spec.Schema{ 1590 "kind": { 1591 SchemaProps: spec.SchemaProps{ 1592 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", 1593 Type: []string{"string"}, 1594 Format: "", 1595 }, 1596 }, 1597 "apiVersion": { 1598 SchemaProps: spec.SchemaProps{ 1599 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", 1600 Type: []string{"string"}, 1601 Format: "", 1602 }, 1603 }, 1604 "metadata": { 1605 SchemaProps: spec.SchemaProps{ 1606 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1607 Default: map[string]interface{}{}, 1608 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 1609 }, 1610 }, 1611 "items": { 1612 SchemaProps: spec.SchemaProps{ 1613 Description: "items contains each of the included items.", 1614 Type: []string{"array"}, 1615 Items: &spec.SchemaOrArray{ 1616 Schema: &spec.Schema{ 1617 SchemaProps: spec.SchemaProps{ 1618 Default: map[string]interface{}{}, 1619 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata"), 1620 }, 1621 }, 1622 }, 1623 }, 1624 }, 1625 }, 1626 Required: []string{"items"}, 1627 }, 1628 }, 1629 Dependencies: []string{ 1630 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata"}, 1631 } 1632 } 1633 1634 func schema_pkg_apis_meta_v1_Patch(ref common.ReferenceCallback) common.OpenAPIDefinition { 1635 return common.OpenAPIDefinition{ 1636 Schema: spec.Schema{ 1637 SchemaProps: spec.SchemaProps{ 1638 Description: "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", 1639 Type: []string{"object"}, 1640 }, 1641 }, 1642 } 1643 } 1644 1645 func schema_pkg_apis_meta_v1_PatchOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 1646 return common.OpenAPIDefinition{ 1647 Schema: spec.Schema{ 1648 SchemaProps: spec.SchemaProps{ 1649 Description: "PatchOptions may be provided when patching an API object. PatchOptions is meant to be a superset of UpdateOptions.", 1650 Type: []string{"object"}, 1651 Properties: map[string]spec.Schema{ 1652 "kind": { 1653 SchemaProps: spec.SchemaProps{ 1654 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", 1655 Type: []string{"string"}, 1656 Format: "", 1657 }, 1658 }, 1659 "apiVersion": { 1660 SchemaProps: spec.SchemaProps{ 1661 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", 1662 Type: []string{"string"}, 1663 Format: "", 1664 }, 1665 }, 1666 "dryRun": { 1667 SchemaProps: spec.SchemaProps{ 1668 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", 1669 Type: []string{"array"}, 1670 Items: &spec.SchemaOrArray{ 1671 Schema: &spec.Schema{ 1672 SchemaProps: spec.SchemaProps{ 1673 Default: "", 1674 Type: []string{"string"}, 1675 Format: "", 1676 }, 1677 }, 1678 }, 1679 }, 1680 }, 1681 "force": { 1682 SchemaProps: spec.SchemaProps{ 1683 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.", 1684 Type: []string{"boolean"}, 1685 Format: "", 1686 }, 1687 }, 1688 "fieldManager": { 1689 SchemaProps: spec.SchemaProps{ 1690 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).", 1691 Type: []string{"string"}, 1692 Format: "", 1693 }, 1694 }, 1695 "fieldValidation": { 1696 SchemaProps: spec.SchemaProps{ 1697 Description: "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. 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 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - 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 when the `ServerSideFieldValidation` feature gate is enabled. - 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.", 1698 Type: []string{"string"}, 1699 Format: "", 1700 }, 1701 }, 1702 }, 1703 }, 1704 }, 1705 } 1706 } 1707 1708 func schema_pkg_apis_meta_v1_Preconditions(ref common.ReferenceCallback) common.OpenAPIDefinition { 1709 return common.OpenAPIDefinition{ 1710 Schema: spec.Schema{ 1711 SchemaProps: spec.SchemaProps{ 1712 Description: "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", 1713 Type: []string{"object"}, 1714 Properties: map[string]spec.Schema{ 1715 "uid": { 1716 SchemaProps: spec.SchemaProps{ 1717 Description: "Specifies the target UID.", 1718 Type: []string{"string"}, 1719 Format: "", 1720 }, 1721 }, 1722 "resourceVersion": { 1723 SchemaProps: spec.SchemaProps{ 1724 Description: "Specifies the target ResourceVersion", 1725 Type: []string{"string"}, 1726 Format: "", 1727 }, 1728 }, 1729 }, 1730 }, 1731 }, 1732 } 1733 } 1734 1735 func schema_pkg_apis_meta_v1_RootPaths(ref common.ReferenceCallback) common.OpenAPIDefinition { 1736 return common.OpenAPIDefinition{ 1737 Schema: spec.Schema{ 1738 SchemaProps: spec.SchemaProps{ 1739 Description: "RootPaths lists the paths available at root. For example: \"/healthz\", \"/apis\".", 1740 Type: []string{"object"}, 1741 Properties: map[string]spec.Schema{ 1742 "paths": { 1743 SchemaProps: spec.SchemaProps{ 1744 Description: "paths are the paths available at root.", 1745 Type: []string{"array"}, 1746 Items: &spec.SchemaOrArray{ 1747 Schema: &spec.Schema{ 1748 SchemaProps: spec.SchemaProps{ 1749 Default: "", 1750 Type: []string{"string"}, 1751 Format: "", 1752 }, 1753 }, 1754 }, 1755 }, 1756 }, 1757 }, 1758 Required: []string{"paths"}, 1759 }, 1760 }, 1761 } 1762 } 1763 1764 func schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref common.ReferenceCallback) common.OpenAPIDefinition { 1765 return common.OpenAPIDefinition{ 1766 Schema: spec.Schema{ 1767 SchemaProps: spec.SchemaProps{ 1768 Description: "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", 1769 Type: []string{"object"}, 1770 Properties: map[string]spec.Schema{ 1771 "clientCIDR": { 1772 SchemaProps: spec.SchemaProps{ 1773 Description: "The CIDR with which clients can match their IP to figure out the server address that they should use.", 1774 Default: "", 1775 Type: []string{"string"}, 1776 Format: "", 1777 }, 1778 }, 1779 "serverAddress": { 1780 SchemaProps: spec.SchemaProps{ 1781 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.", 1782 Default: "", 1783 Type: []string{"string"}, 1784 Format: "", 1785 }, 1786 }, 1787 }, 1788 Required: []string{"clientCIDR", "serverAddress"}, 1789 }, 1790 }, 1791 } 1792 } 1793 1794 func schema_pkg_apis_meta_v1_Status(ref common.ReferenceCallback) common.OpenAPIDefinition { 1795 return common.OpenAPIDefinition{ 1796 Schema: spec.Schema{ 1797 SchemaProps: spec.SchemaProps{ 1798 Description: "Status is a return value for calls that don't return other objects.", 1799 Type: []string{"object"}, 1800 Properties: map[string]spec.Schema{ 1801 "kind": { 1802 SchemaProps: spec.SchemaProps{ 1803 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", 1804 Type: []string{"string"}, 1805 Format: "", 1806 }, 1807 }, 1808 "apiVersion": { 1809 SchemaProps: spec.SchemaProps{ 1810 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", 1811 Type: []string{"string"}, 1812 Format: "", 1813 }, 1814 }, 1815 "metadata": { 1816 SchemaProps: spec.SchemaProps{ 1817 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1818 Default: map[string]interface{}{}, 1819 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 1820 }, 1821 }, 1822 "status": { 1823 SchemaProps: spec.SchemaProps{ 1824 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", 1825 Type: []string{"string"}, 1826 Format: "", 1827 }, 1828 }, 1829 "message": { 1830 SchemaProps: spec.SchemaProps{ 1831 Description: "A human-readable description of the status of this operation.", 1832 Type: []string{"string"}, 1833 Format: "", 1834 }, 1835 }, 1836 "reason": { 1837 SchemaProps: spec.SchemaProps{ 1838 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.", 1839 Type: []string{"string"}, 1840 Format: "", 1841 }, 1842 }, 1843 "details": { 1844 SchemaProps: spec.SchemaProps{ 1845 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.", 1846 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails"), 1847 }, 1848 }, 1849 "code": { 1850 SchemaProps: spec.SchemaProps{ 1851 Description: "Suggested HTTP return code for this status, 0 if not set.", 1852 Type: []string{"integer"}, 1853 Format: "int32", 1854 }, 1855 }, 1856 }, 1857 }, 1858 }, 1859 Dependencies: []string{ 1860 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails"}, 1861 } 1862 } 1863 1864 func schema_pkg_apis_meta_v1_StatusCause(ref common.ReferenceCallback) common.OpenAPIDefinition { 1865 return common.OpenAPIDefinition{ 1866 Schema: spec.Schema{ 1867 SchemaProps: spec.SchemaProps{ 1868 Description: "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", 1869 Type: []string{"object"}, 1870 Properties: map[string]spec.Schema{ 1871 "reason": { 1872 SchemaProps: spec.SchemaProps{ 1873 Description: "A machine-readable description of the cause of the error. If this value is empty there is no information available.", 1874 Type: []string{"string"}, 1875 Format: "", 1876 }, 1877 }, 1878 "message": { 1879 SchemaProps: spec.SchemaProps{ 1880 Description: "A human-readable description of the cause of the error. This field may be presented as-is to a reader.", 1881 Type: []string{"string"}, 1882 Format: "", 1883 }, 1884 }, 1885 "field": { 1886 SchemaProps: spec.SchemaProps{ 1887 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\"", 1888 Type: []string{"string"}, 1889 Format: "", 1890 }, 1891 }, 1892 }, 1893 }, 1894 }, 1895 } 1896 } 1897 1898 func schema_pkg_apis_meta_v1_StatusDetails(ref common.ReferenceCallback) common.OpenAPIDefinition { 1899 return common.OpenAPIDefinition{ 1900 Schema: spec.Schema{ 1901 SchemaProps: spec.SchemaProps{ 1902 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.", 1903 Type: []string{"object"}, 1904 Properties: map[string]spec.Schema{ 1905 "name": { 1906 SchemaProps: spec.SchemaProps{ 1907 Description: "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).", 1908 Type: []string{"string"}, 1909 Format: "", 1910 }, 1911 }, 1912 "group": { 1913 SchemaProps: spec.SchemaProps{ 1914 Description: "The group attribute of the resource associated with the status StatusReason.", 1915 Type: []string{"string"}, 1916 Format: "", 1917 }, 1918 }, 1919 "kind": { 1920 SchemaProps: spec.SchemaProps{ 1921 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", 1922 Type: []string{"string"}, 1923 Format: "", 1924 }, 1925 }, 1926 "uid": { 1927 SchemaProps: spec.SchemaProps{ 1928 Description: "UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids", 1929 Type: []string{"string"}, 1930 Format: "", 1931 }, 1932 }, 1933 "causes": { 1934 SchemaProps: spec.SchemaProps{ 1935 Description: "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", 1936 Type: []string{"array"}, 1937 Items: &spec.SchemaOrArray{ 1938 Schema: &spec.Schema{ 1939 SchemaProps: spec.SchemaProps{ 1940 Default: map[string]interface{}{}, 1941 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause"), 1942 }, 1943 }, 1944 }, 1945 }, 1946 }, 1947 "retryAfterSeconds": { 1948 SchemaProps: spec.SchemaProps{ 1949 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.", 1950 Type: []string{"integer"}, 1951 Format: "int32", 1952 }, 1953 }, 1954 }, 1955 }, 1956 }, 1957 Dependencies: []string{ 1958 "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause"}, 1959 } 1960 } 1961 1962 func schema_pkg_apis_meta_v1_Table(ref common.ReferenceCallback) common.OpenAPIDefinition { 1963 return common.OpenAPIDefinition{ 1964 Schema: spec.Schema{ 1965 SchemaProps: spec.SchemaProps{ 1966 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.", 1967 Type: []string{"object"}, 1968 Properties: map[string]spec.Schema{ 1969 "kind": { 1970 SchemaProps: spec.SchemaProps{ 1971 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", 1972 Type: []string{"string"}, 1973 Format: "", 1974 }, 1975 }, 1976 "apiVersion": { 1977 SchemaProps: spec.SchemaProps{ 1978 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", 1979 Type: []string{"string"}, 1980 Format: "", 1981 }, 1982 }, 1983 "metadata": { 1984 SchemaProps: spec.SchemaProps{ 1985 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1986 Default: map[string]interface{}{}, 1987 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 1988 }, 1989 }, 1990 "columnDefinitions": { 1991 SchemaProps: spec.SchemaProps{ 1992 Description: "columnDefinitions describes each column in the returned items array. The number of cells per row will always match the number of column definitions.", 1993 Type: []string{"array"}, 1994 Items: &spec.SchemaOrArray{ 1995 Schema: &spec.Schema{ 1996 SchemaProps: spec.SchemaProps{ 1997 Default: map[string]interface{}{}, 1998 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition"), 1999 }, 2000 }, 2001 }, 2002 }, 2003 }, 2004 "rows": { 2005 SchemaProps: spec.SchemaProps{ 2006 Description: "rows is the list of items in the table.", 2007 Type: []string{"array"}, 2008 Items: &spec.SchemaOrArray{ 2009 Schema: &spec.Schema{ 2010 SchemaProps: spec.SchemaProps{ 2011 Default: map[string]interface{}{}, 2012 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableRow"), 2013 }, 2014 }, 2015 }, 2016 }, 2017 }, 2018 }, 2019 Required: []string{"columnDefinitions", "rows"}, 2020 }, 2021 }, 2022 Dependencies: []string{ 2023 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition", "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow"}, 2024 } 2025 } 2026 2027 func schema_pkg_apis_meta_v1_TableColumnDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { 2028 return common.OpenAPIDefinition{ 2029 Schema: spec.Schema{ 2030 SchemaProps: spec.SchemaProps{ 2031 Description: "TableColumnDefinition contains information about a column returned in the Table.", 2032 Type: []string{"object"}, 2033 Properties: map[string]spec.Schema{ 2034 "name": { 2035 SchemaProps: spec.SchemaProps{ 2036 Description: "name is a human readable name for the column.", 2037 Default: "", 2038 Type: []string{"string"}, 2039 Format: "", 2040 }, 2041 }, 2042 "type": { 2043 SchemaProps: spec.SchemaProps{ 2044 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.", 2045 Default: "", 2046 Type: []string{"string"}, 2047 Format: "", 2048 }, 2049 }, 2050 "format": { 2051 SchemaProps: spec.SchemaProps{ 2052 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.", 2053 Default: "", 2054 Type: []string{"string"}, 2055 Format: "", 2056 }, 2057 }, 2058 "description": { 2059 SchemaProps: spec.SchemaProps{ 2060 Description: "description is a human readable description of this column.", 2061 Default: "", 2062 Type: []string{"string"}, 2063 Format: "", 2064 }, 2065 }, 2066 "priority": { 2067 SchemaProps: spec.SchemaProps{ 2068 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.", 2069 Default: 0, 2070 Type: []string{"integer"}, 2071 Format: "int32", 2072 }, 2073 }, 2074 }, 2075 Required: []string{"name", "type", "format", "description", "priority"}, 2076 }, 2077 }, 2078 } 2079 } 2080 2081 func schema_pkg_apis_meta_v1_TableOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 2082 return common.OpenAPIDefinition{ 2083 Schema: spec.Schema{ 2084 SchemaProps: spec.SchemaProps{ 2085 Description: "TableOptions are used when a Table is requested by the caller.", 2086 Type: []string{"object"}, 2087 Properties: map[string]spec.Schema{ 2088 "kind": { 2089 SchemaProps: spec.SchemaProps{ 2090 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", 2091 Type: []string{"string"}, 2092 Format: "", 2093 }, 2094 }, 2095 "apiVersion": { 2096 SchemaProps: spec.SchemaProps{ 2097 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", 2098 Type: []string{"string"}, 2099 Format: "", 2100 }, 2101 }, 2102 "includeObject": { 2103 SchemaProps: spec.SchemaProps{ 2104 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.", 2105 Type: []string{"string"}, 2106 Format: "", 2107 }, 2108 }, 2109 }, 2110 }, 2111 }, 2112 } 2113 } 2114 2115 func schema_pkg_apis_meta_v1_TableRow(ref common.ReferenceCallback) common.OpenAPIDefinition { 2116 return common.OpenAPIDefinition{ 2117 Schema: spec.Schema{ 2118 SchemaProps: spec.SchemaProps{ 2119 Description: "TableRow is an individual row in a table.", 2120 Type: []string{"object"}, 2121 Properties: map[string]spec.Schema{ 2122 "cells": { 2123 SchemaProps: spec.SchemaProps{ 2124 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.", 2125 Type: []string{"array"}, 2126 Items: &spec.SchemaOrArray{ 2127 Schema: &spec.Schema{ 2128 SchemaProps: spec.SchemaProps{ 2129 Type: []string{"object"}, 2130 Format: "", 2131 }, 2132 }, 2133 }, 2134 }, 2135 }, 2136 "conditions": { 2137 SchemaProps: spec.SchemaProps{ 2138 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.", 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/apimachinery/pkg/apis/meta/v1.TableRowCondition"), 2145 }, 2146 }, 2147 }, 2148 }, 2149 }, 2150 "object": { 2151 SchemaProps: spec.SchemaProps{ 2152 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.", 2153 Default: map[string]interface{}{}, 2154 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), 2155 }, 2156 }, 2157 }, 2158 Required: []string{"cells"}, 2159 }, 2160 }, 2161 Dependencies: []string{ 2162 "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, 2163 } 2164 } 2165 2166 func schema_pkg_apis_meta_v1_TableRowCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 2167 return common.OpenAPIDefinition{ 2168 Schema: spec.Schema{ 2169 SchemaProps: spec.SchemaProps{ 2170 Description: "TableRowCondition allows a row to be marked with additional information.", 2171 Type: []string{"object"}, 2172 Properties: map[string]spec.Schema{ 2173 "type": { 2174 SchemaProps: spec.SchemaProps{ 2175 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.", 2176 Default: "", 2177 Type: []string{"string"}, 2178 Format: "", 2179 }, 2180 }, 2181 "status": { 2182 SchemaProps: spec.SchemaProps{ 2183 Description: "Status of the condition, one of True, False, Unknown.", 2184 Default: "", 2185 Type: []string{"string"}, 2186 Format: "", 2187 }, 2188 }, 2189 "reason": { 2190 SchemaProps: spec.SchemaProps{ 2191 Description: "(brief) machine readable reason for the condition's last transition.", 2192 Type: []string{"string"}, 2193 Format: "", 2194 }, 2195 }, 2196 "message": { 2197 SchemaProps: spec.SchemaProps{ 2198 Description: "Human readable message indicating details about last transition.", 2199 Type: []string{"string"}, 2200 Format: "", 2201 }, 2202 }, 2203 }, 2204 Required: []string{"type", "status"}, 2205 }, 2206 }, 2207 } 2208 } 2209 2210 func schema_pkg_apis_meta_v1_Time(ref common.ReferenceCallback) common.OpenAPIDefinition { 2211 return common.OpenAPIDefinition{ 2212 Schema: spec.Schema{ 2213 SchemaProps: spec.SchemaProps{ 2214 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.", 2215 Type: v1.Time{}.OpenAPISchemaType(), 2216 Format: v1.Time{}.OpenAPISchemaFormat(), 2217 }, 2218 }, 2219 } 2220 } 2221 2222 func schema_pkg_apis_meta_v1_Timestamp(ref common.ReferenceCallback) common.OpenAPIDefinition { 2223 return common.OpenAPIDefinition{ 2224 Schema: spec.Schema{ 2225 SchemaProps: spec.SchemaProps{ 2226 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.", 2227 Type: []string{"object"}, 2228 Properties: map[string]spec.Schema{ 2229 "seconds": { 2230 SchemaProps: spec.SchemaProps{ 2231 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.", 2232 Default: 0, 2233 Type: []string{"integer"}, 2234 Format: "int64", 2235 }, 2236 }, 2237 "nanos": { 2238 SchemaProps: spec.SchemaProps{ 2239 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.", 2240 Default: 0, 2241 Type: []string{"integer"}, 2242 Format: "int32", 2243 }, 2244 }, 2245 }, 2246 Required: []string{"seconds", "nanos"}, 2247 }, 2248 }, 2249 } 2250 } 2251 2252 func schema_pkg_apis_meta_v1_TypeMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { 2253 return common.OpenAPIDefinition{ 2254 Schema: spec.Schema{ 2255 SchemaProps: spec.SchemaProps{ 2256 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.", 2257 Type: []string{"object"}, 2258 Properties: map[string]spec.Schema{ 2259 "kind": { 2260 SchemaProps: spec.SchemaProps{ 2261 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", 2262 Type: []string{"string"}, 2263 Format: "", 2264 }, 2265 }, 2266 "apiVersion": { 2267 SchemaProps: spec.SchemaProps{ 2268 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", 2269 Type: []string{"string"}, 2270 Format: "", 2271 }, 2272 }, 2273 }, 2274 }, 2275 }, 2276 } 2277 } 2278 2279 func schema_pkg_apis_meta_v1_UpdateOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 2280 return common.OpenAPIDefinition{ 2281 Schema: spec.Schema{ 2282 SchemaProps: spec.SchemaProps{ 2283 Description: "UpdateOptions may be provided when updating an API object. All fields in UpdateOptions should also be present in PatchOptions.", 2284 Type: []string{"object"}, 2285 Properties: map[string]spec.Schema{ 2286 "kind": { 2287 SchemaProps: spec.SchemaProps{ 2288 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", 2289 Type: []string{"string"}, 2290 Format: "", 2291 }, 2292 }, 2293 "apiVersion": { 2294 SchemaProps: spec.SchemaProps{ 2295 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", 2296 Type: []string{"string"}, 2297 Format: "", 2298 }, 2299 }, 2300 "dryRun": { 2301 SchemaProps: spec.SchemaProps{ 2302 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", 2303 Type: []string{"array"}, 2304 Items: &spec.SchemaOrArray{ 2305 Schema: &spec.Schema{ 2306 SchemaProps: spec.SchemaProps{ 2307 Default: "", 2308 Type: []string{"string"}, 2309 Format: "", 2310 }, 2311 }, 2312 }, 2313 }, 2314 }, 2315 "fieldManager": { 2316 SchemaProps: spec.SchemaProps{ 2317 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.", 2318 Type: []string{"string"}, 2319 Format: "", 2320 }, 2321 }, 2322 "fieldValidation": { 2323 SchemaProps: spec.SchemaProps{ 2324 Description: "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. 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 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - 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 when the `ServerSideFieldValidation` feature gate is enabled. - 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.", 2325 Type: []string{"string"}, 2326 Format: "", 2327 }, 2328 }, 2329 }, 2330 }, 2331 }, 2332 } 2333 } 2334 2335 func schema_pkg_apis_meta_v1_WatchEvent(ref common.ReferenceCallback) common.OpenAPIDefinition { 2336 return common.OpenAPIDefinition{ 2337 Schema: spec.Schema{ 2338 SchemaProps: spec.SchemaProps{ 2339 Description: "Event represents a single event to a watched resource.", 2340 Type: []string{"object"}, 2341 Properties: map[string]spec.Schema{ 2342 "type": { 2343 SchemaProps: spec.SchemaProps{ 2344 Default: "", 2345 Type: []string{"string"}, 2346 Format: "", 2347 }, 2348 }, 2349 "object": { 2350 SchemaProps: spec.SchemaProps{ 2351 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.", 2352 Default: map[string]interface{}{}, 2353 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), 2354 }, 2355 }, 2356 }, 2357 Required: []string{"type", "object"}, 2358 }, 2359 }, 2360 Dependencies: []string{ 2361 "k8s.io/apimachinery/pkg/runtime.RawExtension"}, 2362 } 2363 } 2364 2365 func schema_kubesphereio_api_servicemesh_v1alpha2_DestinationRuleSpecTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { 2366 return common.OpenAPIDefinition{ 2367 Schema: spec.Schema{ 2368 SchemaProps: spec.SchemaProps{ 2369 Type: []string{"object"}, 2370 Properties: map[string]spec.Schema{ 2371 "metadata": { 2372 SchemaProps: spec.SchemaProps{ 2373 Description: "Metadata of the virtual services created from this template", 2374 Default: map[string]interface{}{}, 2375 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 2376 }, 2377 }, 2378 "spec": { 2379 SchemaProps: spec.SchemaProps{ 2380 Description: "Spec indicates the behavior of a destination rule.", 2381 Default: map[string]interface{}{}, 2382 Ref: ref("istio.io/api/networking/v1alpha3.DestinationRule"), 2383 }, 2384 }, 2385 }, 2386 }, 2387 }, 2388 Dependencies: []string{ 2389 "istio.io/api/networking/v1alpha3.DestinationRule", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 2390 } 2391 } 2392 2393 func schema_kubesphereio_api_servicemesh_v1alpha2_ServicePolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { 2394 return common.OpenAPIDefinition{ 2395 Schema: spec.Schema{ 2396 SchemaProps: spec.SchemaProps{ 2397 Description: "ServicePolicy is the Schema for the servicepolicies API", 2398 Type: []string{"object"}, 2399 Properties: map[string]spec.Schema{ 2400 "kind": { 2401 SchemaProps: spec.SchemaProps{ 2402 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 2403 Type: []string{"string"}, 2404 Format: "", 2405 }, 2406 }, 2407 "apiVersion": { 2408 SchemaProps: spec.SchemaProps{ 2409 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 2410 Type: []string{"string"}, 2411 Format: "", 2412 }, 2413 }, 2414 "metadata": { 2415 SchemaProps: spec.SchemaProps{ 2416 Default: map[string]interface{}{}, 2417 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 2418 }, 2419 }, 2420 "spec": { 2421 SchemaProps: spec.SchemaProps{ 2422 Default: map[string]interface{}{}, 2423 Ref: ref("kubesphere.io/api/servicemesh/v1alpha2.ServicePolicySpec"), 2424 }, 2425 }, 2426 "status": { 2427 SchemaProps: spec.SchemaProps{ 2428 Default: map[string]interface{}{}, 2429 Ref: ref("kubesphere.io/api/servicemesh/v1alpha2.ServicePolicyStatus"), 2430 }, 2431 }, 2432 }, 2433 }, 2434 }, 2435 Dependencies: []string{ 2436 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kubesphere.io/api/servicemesh/v1alpha2.ServicePolicySpec", "kubesphere.io/api/servicemesh/v1alpha2.ServicePolicyStatus"}, 2437 } 2438 } 2439 2440 func schema_kubesphereio_api_servicemesh_v1alpha2_ServicePolicyCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 2441 return common.OpenAPIDefinition{ 2442 Schema: spec.Schema{ 2443 SchemaProps: spec.SchemaProps{ 2444 Description: "StrategyCondition describes current state of a strategy.", 2445 Type: []string{"object"}, 2446 Properties: map[string]spec.Schema{ 2447 "type": { 2448 SchemaProps: spec.SchemaProps{ 2449 Description: "Type of strategy condition, Complete or Failed.", 2450 Type: []string{"string"}, 2451 Format: "", 2452 }, 2453 }, 2454 "status": { 2455 SchemaProps: spec.SchemaProps{ 2456 Description: "Status of the condition, one of True, False, Unknown", 2457 Type: []string{"string"}, 2458 Format: "", 2459 }, 2460 }, 2461 "lastProbeTime": { 2462 SchemaProps: spec.SchemaProps{ 2463 Description: "Last time the condition was checked.", 2464 Default: map[string]interface{}{}, 2465 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 2466 }, 2467 }, 2468 "lastTransitionTime": { 2469 SchemaProps: spec.SchemaProps{ 2470 Description: "Last time the condition transit from one status to another", 2471 Default: map[string]interface{}{}, 2472 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 2473 }, 2474 }, 2475 "reason": { 2476 SchemaProps: spec.SchemaProps{ 2477 Description: "reason for the condition's last transition", 2478 Type: []string{"string"}, 2479 Format: "", 2480 }, 2481 }, 2482 "message": { 2483 SchemaProps: spec.SchemaProps{ 2484 Description: "Human readable message indicating details about last transition.", 2485 Type: []string{"string"}, 2486 Format: "", 2487 }, 2488 }, 2489 }, 2490 }, 2491 }, 2492 Dependencies: []string{ 2493 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 2494 } 2495 } 2496 2497 func schema_kubesphereio_api_servicemesh_v1alpha2_ServicePolicyList(ref common.ReferenceCallback) common.OpenAPIDefinition { 2498 return common.OpenAPIDefinition{ 2499 Schema: spec.Schema{ 2500 SchemaProps: spec.SchemaProps{ 2501 Description: "ServicePolicyList contains a list of ServicePolicy", 2502 Type: []string{"object"}, 2503 Properties: map[string]spec.Schema{ 2504 "kind": { 2505 SchemaProps: spec.SchemaProps{ 2506 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", 2507 Type: []string{"string"}, 2508 Format: "", 2509 }, 2510 }, 2511 "apiVersion": { 2512 SchemaProps: spec.SchemaProps{ 2513 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", 2514 Type: []string{"string"}, 2515 Format: "", 2516 }, 2517 }, 2518 "metadata": { 2519 SchemaProps: spec.SchemaProps{ 2520 Default: map[string]interface{}{}, 2521 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 2522 }, 2523 }, 2524 "items": { 2525 SchemaProps: spec.SchemaProps{ 2526 Type: []string{"array"}, 2527 Items: &spec.SchemaOrArray{ 2528 Schema: &spec.Schema{ 2529 SchemaProps: spec.SchemaProps{ 2530 Default: map[string]interface{}{}, 2531 Ref: ref("kubesphere.io/api/servicemesh/v1alpha2.ServicePolicy"), 2532 }, 2533 }, 2534 }, 2535 }, 2536 }, 2537 }, 2538 Required: []string{"items"}, 2539 }, 2540 }, 2541 Dependencies: []string{ 2542 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubesphere.io/api/servicemesh/v1alpha2.ServicePolicy"}, 2543 } 2544 } 2545 2546 func schema_kubesphereio_api_servicemesh_v1alpha2_ServicePolicySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 2547 return common.OpenAPIDefinition{ 2548 Schema: spec.Schema{ 2549 SchemaProps: spec.SchemaProps{ 2550 Description: "ServicePolicySpec defines the desired state of ServicePolicy", 2551 Type: []string{"object"}, 2552 Properties: map[string]spec.Schema{ 2553 "selector": { 2554 SchemaProps: spec.SchemaProps{ 2555 Description: "Label selector for destination rules.", 2556 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 2557 }, 2558 }, 2559 "template": { 2560 SchemaProps: spec.SchemaProps{ 2561 Description: "Template used to create a destination rule", 2562 Default: map[string]interface{}{}, 2563 Ref: ref("kubesphere.io/api/servicemesh/v1alpha2.DestinationRuleSpecTemplate"), 2564 }, 2565 }, 2566 }, 2567 }, 2568 }, 2569 Dependencies: []string{ 2570 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector", "kubesphere.io/api/servicemesh/v1alpha2.DestinationRuleSpecTemplate"}, 2571 } 2572 } 2573 2574 func schema_kubesphereio_api_servicemesh_v1alpha2_ServicePolicyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 2575 return common.OpenAPIDefinition{ 2576 Schema: spec.Schema{ 2577 SchemaProps: spec.SchemaProps{ 2578 Description: "ServicePolicyStatus defines the observed state of ServicePolicy", 2579 Type: []string{"object"}, 2580 Properties: map[string]spec.Schema{ 2581 "conditions": { 2582 SchemaProps: spec.SchemaProps{ 2583 Description: "The latest available observations of an object's current state.", 2584 Type: []string{"array"}, 2585 Items: &spec.SchemaOrArray{ 2586 Schema: &spec.Schema{ 2587 SchemaProps: spec.SchemaProps{ 2588 Default: map[string]interface{}{}, 2589 Ref: ref("kubesphere.io/api/servicemesh/v1alpha2.ServicePolicyCondition"), 2590 }, 2591 }, 2592 }, 2593 }, 2594 }, 2595 "startTime": { 2596 SchemaProps: spec.SchemaProps{ 2597 Description: "Represents time when the strategy was acknowledged by the controller. It is represented in RFC3339 form and is in UTC.", 2598 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 2599 }, 2600 }, 2601 "completionTime": { 2602 SchemaProps: spec.SchemaProps{ 2603 Description: "Represents time when the strategy was completed. It is represented in RFC3339 form and is in UTC.", 2604 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 2605 }, 2606 }, 2607 }, 2608 }, 2609 }, 2610 Dependencies: []string{ 2611 "k8s.io/apimachinery/pkg/apis/meta/v1.Time", "kubesphere.io/api/servicemesh/v1alpha2.ServicePolicyCondition"}, 2612 } 2613 } 2614 2615 func schema_kubesphereio_api_servicemesh_v1alpha2_Strategy(ref common.ReferenceCallback) common.OpenAPIDefinition { 2616 return common.OpenAPIDefinition{ 2617 Schema: spec.Schema{ 2618 SchemaProps: spec.SchemaProps{ 2619 Description: "Strategy is the Schema for the strategies API", 2620 Type: []string{"object"}, 2621 Properties: map[string]spec.Schema{ 2622 "kind": { 2623 SchemaProps: spec.SchemaProps{ 2624 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", 2625 Type: []string{"string"}, 2626 Format: "", 2627 }, 2628 }, 2629 "apiVersion": { 2630 SchemaProps: spec.SchemaProps{ 2631 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", 2632 Type: []string{"string"}, 2633 Format: "", 2634 }, 2635 }, 2636 "metadata": { 2637 SchemaProps: spec.SchemaProps{ 2638 Default: map[string]interface{}{}, 2639 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 2640 }, 2641 }, 2642 "spec": { 2643 SchemaProps: spec.SchemaProps{ 2644 Default: map[string]interface{}{}, 2645 Ref: ref("kubesphere.io/api/servicemesh/v1alpha2.StrategySpec"), 2646 }, 2647 }, 2648 "status": { 2649 SchemaProps: spec.SchemaProps{ 2650 Default: map[string]interface{}{}, 2651 Ref: ref("kubesphere.io/api/servicemesh/v1alpha2.StrategyStatus"), 2652 }, 2653 }, 2654 }, 2655 }, 2656 }, 2657 Dependencies: []string{ 2658 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kubesphere.io/api/servicemesh/v1alpha2.StrategySpec", "kubesphere.io/api/servicemesh/v1alpha2.StrategyStatus"}, 2659 } 2660 } 2661 2662 func schema_kubesphereio_api_servicemesh_v1alpha2_StrategyCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 2663 return common.OpenAPIDefinition{ 2664 Schema: spec.Schema{ 2665 SchemaProps: spec.SchemaProps{ 2666 Description: "StrategyCondition describes current state of a strategy.", 2667 Type: []string{"object"}, 2668 Properties: map[string]spec.Schema{ 2669 "type": { 2670 SchemaProps: spec.SchemaProps{ 2671 Description: "Type of strategy condition, Complete or Failed.", 2672 Type: []string{"string"}, 2673 Format: "", 2674 }, 2675 }, 2676 "status": { 2677 SchemaProps: spec.SchemaProps{ 2678 Description: "Status of the condition, one of True, False, Unknown", 2679 Type: []string{"string"}, 2680 Format: "", 2681 }, 2682 }, 2683 "lastProbeTime": { 2684 SchemaProps: spec.SchemaProps{ 2685 Description: "Last time the condition was checked.", 2686 Default: map[string]interface{}{}, 2687 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 2688 }, 2689 }, 2690 "lastTransitionTime": { 2691 SchemaProps: spec.SchemaProps{ 2692 Description: "Last time the condition transit from one status to another", 2693 Default: map[string]interface{}{}, 2694 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 2695 }, 2696 }, 2697 "reason": { 2698 SchemaProps: spec.SchemaProps{ 2699 Description: "reason for the condition's last transition", 2700 Type: []string{"string"}, 2701 Format: "", 2702 }, 2703 }, 2704 "message": { 2705 SchemaProps: spec.SchemaProps{ 2706 Description: "Human readable message indicating details about last transition.", 2707 Type: []string{"string"}, 2708 Format: "", 2709 }, 2710 }, 2711 }, 2712 }, 2713 }, 2714 Dependencies: []string{ 2715 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 2716 } 2717 } 2718 2719 func schema_kubesphereio_api_servicemesh_v1alpha2_StrategyList(ref common.ReferenceCallback) common.OpenAPIDefinition { 2720 return common.OpenAPIDefinition{ 2721 Schema: spec.Schema{ 2722 SchemaProps: spec.SchemaProps{ 2723 Description: "StrategyList contains a list of Strategy", 2724 Type: []string{"object"}, 2725 Properties: map[string]spec.Schema{ 2726 "kind": { 2727 SchemaProps: spec.SchemaProps{ 2728 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", 2729 Type: []string{"string"}, 2730 Format: "", 2731 }, 2732 }, 2733 "apiVersion": { 2734 SchemaProps: spec.SchemaProps{ 2735 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", 2736 Type: []string{"string"}, 2737 Format: "", 2738 }, 2739 }, 2740 "metadata": { 2741 SchemaProps: spec.SchemaProps{ 2742 Default: map[string]interface{}{}, 2743 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 2744 }, 2745 }, 2746 "items": { 2747 SchemaProps: spec.SchemaProps{ 2748 Type: []string{"array"}, 2749 Items: &spec.SchemaOrArray{ 2750 Schema: &spec.Schema{ 2751 SchemaProps: spec.SchemaProps{ 2752 Default: map[string]interface{}{}, 2753 Ref: ref("kubesphere.io/api/servicemesh/v1alpha2.Strategy"), 2754 }, 2755 }, 2756 }, 2757 }, 2758 }, 2759 }, 2760 Required: []string{"items"}, 2761 }, 2762 }, 2763 Dependencies: []string{ 2764 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubesphere.io/api/servicemesh/v1alpha2.Strategy"}, 2765 } 2766 } 2767 2768 func schema_kubesphereio_api_servicemesh_v1alpha2_StrategySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 2769 return common.OpenAPIDefinition{ 2770 Schema: spec.Schema{ 2771 SchemaProps: spec.SchemaProps{ 2772 Description: "StrategySpec defines the desired state of Strategy", 2773 Type: []string{"object"}, 2774 Properties: map[string]spec.Schema{ 2775 "type": { 2776 SchemaProps: spec.SchemaProps{ 2777 Description: "Strategy type", 2778 Type: []string{"string"}, 2779 Format: "", 2780 }, 2781 }, 2782 "principal": { 2783 SchemaProps: spec.SchemaProps{ 2784 Description: "Principal version, the one as reference version label version value", 2785 Type: []string{"string"}, 2786 Format: "", 2787 }, 2788 }, 2789 "governor": { 2790 SchemaProps: spec.SchemaProps{ 2791 Description: "Governor version, the version takes control of all incoming traffic label version value", 2792 Type: []string{"string"}, 2793 Format: "", 2794 }, 2795 }, 2796 "selector": { 2797 SchemaProps: spec.SchemaProps{ 2798 Description: "Label selector for virtual services.", 2799 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 2800 }, 2801 }, 2802 "template": { 2803 SchemaProps: spec.SchemaProps{ 2804 Description: "Template describes the virtual service that will be created.", 2805 Default: map[string]interface{}{}, 2806 Ref: ref("kubesphere.io/api/servicemesh/v1alpha2.VirtualServiceTemplateSpec"), 2807 }, 2808 }, 2809 "strategyPolicy": { 2810 SchemaProps: spec.SchemaProps{ 2811 Description: "strategy policy, how the strategy will be applied by the strategy controller", 2812 Type: []string{"string"}, 2813 Format: "", 2814 }, 2815 }, 2816 }, 2817 }, 2818 }, 2819 Dependencies: []string{ 2820 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector", "kubesphere.io/api/servicemesh/v1alpha2.VirtualServiceTemplateSpec"}, 2821 } 2822 } 2823 2824 func schema_kubesphereio_api_servicemesh_v1alpha2_StrategyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 2825 return common.OpenAPIDefinition{ 2826 Schema: spec.Schema{ 2827 SchemaProps: spec.SchemaProps{ 2828 Description: "StrategyStatus defines the observed state of Strategy", 2829 Type: []string{"object"}, 2830 Properties: map[string]spec.Schema{ 2831 "conditions": { 2832 SchemaProps: spec.SchemaProps{ 2833 Description: "The latest available observations of an object's current state.", 2834 Type: []string{"array"}, 2835 Items: &spec.SchemaOrArray{ 2836 Schema: &spec.Schema{ 2837 SchemaProps: spec.SchemaProps{ 2838 Default: map[string]interface{}{}, 2839 Ref: ref("kubesphere.io/api/servicemesh/v1alpha2.StrategyCondition"), 2840 }, 2841 }, 2842 }, 2843 }, 2844 }, 2845 "startTime": { 2846 SchemaProps: spec.SchemaProps{ 2847 Description: "Represents time when the strategy was acknowledged by the controller. It is represented in RFC3339 form and is in UTC.", 2848 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 2849 }, 2850 }, 2851 "completionTime": { 2852 SchemaProps: spec.SchemaProps{ 2853 Description: "Represents time when the strategy was completed. It is represented in RFC3339 form and is in UTC.", 2854 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 2855 }, 2856 }, 2857 }, 2858 }, 2859 }, 2860 Dependencies: []string{ 2861 "k8s.io/apimachinery/pkg/apis/meta/v1.Time", "kubesphere.io/api/servicemesh/v1alpha2.StrategyCondition"}, 2862 } 2863 } 2864 2865 func schema_kubesphereio_api_servicemesh_v1alpha2_VirtualServiceTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 2866 return common.OpenAPIDefinition{ 2867 Schema: spec.Schema{ 2868 SchemaProps: spec.SchemaProps{ 2869 Description: "VirtualServiceTemplateSpec", 2870 Type: []string{"object"}, 2871 Properties: map[string]spec.Schema{ 2872 "metadata": { 2873 SchemaProps: spec.SchemaProps{ 2874 Description: "Metadata of the virtual services created from this template", 2875 Default: map[string]interface{}{}, 2876 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 2877 }, 2878 }, 2879 "spec": { 2880 SchemaProps: spec.SchemaProps{ 2881 Description: "Spec indicates the behavior of a virtual service.", 2882 Default: map[string]interface{}{}, 2883 Ref: ref("istio.io/api/networking/v1alpha3.VirtualService"), 2884 }, 2885 }, 2886 }, 2887 }, 2888 }, 2889 Dependencies: []string{ 2890 "istio.io/api/networking/v1alpha3.VirtualService", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 2891 } 2892 }