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