kubesphere.io/api@v0.0.0-20231107125330-c9a03957060c/network/v1alpha1/openapi_generated.go (about) 1 //go:build !ignore_autogenerated 2 // +build !ignore_autogenerated 3 4 /* 5 Copyright 2020 The KubeSphere Authors. 6 7 Licensed under the Apache License, Version 2.0 (the "License"); 8 you may not use this file except in compliance with the License. 9 You may obtain a copy of the License at 10 11 http://www.apache.org/licenses/LICENSE-2.0 12 13 Unless required by applicable law or agreed to in writing, software 14 distributed under the License is distributed on an "AS IS" BASIS, 15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 See the License for the specific language governing permissions and 17 limitations under the License. 18 */ 19 20 // Code generated by openapi-gen. DO NOT EDIT. 21 22 // This file was autogenerated by openapi-gen. Do not edit it manually! 23 24 package v1alpha1 25 26 import ( 27 v1 "k8s.io/apimachinery/pkg/apis/meta/v1" 28 intstr "k8s.io/apimachinery/pkg/util/intstr" 29 common "k8s.io/kube-openapi/pkg/common" 30 spec "k8s.io/kube-openapi/pkg/validation/spec" 31 ) 32 33 func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { 34 return map[string]common.OpenAPIDefinition{ 35 "k8s.io/api/networking/v1.HTTPIngressPath": schema_k8sio_api_networking_v1_HTTPIngressPath(ref), 36 "k8s.io/api/networking/v1.HTTPIngressRuleValue": schema_k8sio_api_networking_v1_HTTPIngressRuleValue(ref), 37 "k8s.io/api/networking/v1.IPBlock": schema_k8sio_api_networking_v1_IPBlock(ref), 38 "k8s.io/api/networking/v1.Ingress": schema_k8sio_api_networking_v1_Ingress(ref), 39 "k8s.io/api/networking/v1.IngressBackend": schema_k8sio_api_networking_v1_IngressBackend(ref), 40 "k8s.io/api/networking/v1.IngressClass": schema_k8sio_api_networking_v1_IngressClass(ref), 41 "k8s.io/api/networking/v1.IngressClassList": schema_k8sio_api_networking_v1_IngressClassList(ref), 42 "k8s.io/api/networking/v1.IngressClassParametersReference": schema_k8sio_api_networking_v1_IngressClassParametersReference(ref), 43 "k8s.io/api/networking/v1.IngressClassSpec": schema_k8sio_api_networking_v1_IngressClassSpec(ref), 44 "k8s.io/api/networking/v1.IngressList": schema_k8sio_api_networking_v1_IngressList(ref), 45 "k8s.io/api/networking/v1.IngressRule": schema_k8sio_api_networking_v1_IngressRule(ref), 46 "k8s.io/api/networking/v1.IngressRuleValue": schema_k8sio_api_networking_v1_IngressRuleValue(ref), 47 "k8s.io/api/networking/v1.IngressServiceBackend": schema_k8sio_api_networking_v1_IngressServiceBackend(ref), 48 "k8s.io/api/networking/v1.IngressSpec": schema_k8sio_api_networking_v1_IngressSpec(ref), 49 "k8s.io/api/networking/v1.IngressStatus": schema_k8sio_api_networking_v1_IngressStatus(ref), 50 "k8s.io/api/networking/v1.IngressTLS": schema_k8sio_api_networking_v1_IngressTLS(ref), 51 "k8s.io/api/networking/v1.NetworkPolicy": schema_k8sio_api_networking_v1_NetworkPolicy(ref), 52 "k8s.io/api/networking/v1.NetworkPolicyEgressRule": schema_k8sio_api_networking_v1_NetworkPolicyEgressRule(ref), 53 "k8s.io/api/networking/v1.NetworkPolicyIngressRule": schema_k8sio_api_networking_v1_NetworkPolicyIngressRule(ref), 54 "k8s.io/api/networking/v1.NetworkPolicyList": schema_k8sio_api_networking_v1_NetworkPolicyList(ref), 55 "k8s.io/api/networking/v1.NetworkPolicyPeer": schema_k8sio_api_networking_v1_NetworkPolicyPeer(ref), 56 "k8s.io/api/networking/v1.NetworkPolicyPort": schema_k8sio_api_networking_v1_NetworkPolicyPort(ref), 57 "k8s.io/api/networking/v1.NetworkPolicySpec": schema_k8sio_api_networking_v1_NetworkPolicySpec(ref), 58 "k8s.io/api/networking/v1.NetworkPolicyStatus": schema_k8sio_api_networking_v1_NetworkPolicyStatus(ref), 59 "k8s.io/api/networking/v1.ServiceBackendPort": schema_k8sio_api_networking_v1_ServiceBackendPort(ref), 60 "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup": schema_pkg_apis_meta_v1_APIGroup(ref), 61 "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroupList": schema_pkg_apis_meta_v1_APIGroupList(ref), 62 "k8s.io/apimachinery/pkg/apis/meta/v1.APIResource": schema_pkg_apis_meta_v1_APIResource(ref), 63 "k8s.io/apimachinery/pkg/apis/meta/v1.APIResourceList": schema_pkg_apis_meta_v1_APIResourceList(ref), 64 "k8s.io/apimachinery/pkg/apis/meta/v1.APIVersions": schema_pkg_apis_meta_v1_APIVersions(ref), 65 "k8s.io/apimachinery/pkg/apis/meta/v1.ApplyOptions": schema_pkg_apis_meta_v1_ApplyOptions(ref), 66 "k8s.io/apimachinery/pkg/apis/meta/v1.Condition": schema_pkg_apis_meta_v1_Condition(ref), 67 "k8s.io/apimachinery/pkg/apis/meta/v1.CreateOptions": schema_pkg_apis_meta_v1_CreateOptions(ref), 68 "k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions": schema_pkg_apis_meta_v1_DeleteOptions(ref), 69 "k8s.io/apimachinery/pkg/apis/meta/v1.Duration": schema_pkg_apis_meta_v1_Duration(ref), 70 "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1": schema_pkg_apis_meta_v1_FieldsV1(ref), 71 "k8s.io/apimachinery/pkg/apis/meta/v1.GetOptions": schema_pkg_apis_meta_v1_GetOptions(ref), 72 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupKind": schema_pkg_apis_meta_v1_GroupKind(ref), 73 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupResource": schema_pkg_apis_meta_v1_GroupResource(ref), 74 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersion": schema_pkg_apis_meta_v1_GroupVersion(ref), 75 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery": schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref), 76 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionKind": schema_pkg_apis_meta_v1_GroupVersionKind(ref), 77 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionResource": schema_pkg_apis_meta_v1_GroupVersionResource(ref), 78 "k8s.io/apimachinery/pkg/apis/meta/v1.InternalEvent": schema_pkg_apis_meta_v1_InternalEvent(ref), 79 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector": schema_pkg_apis_meta_v1_LabelSelector(ref), 80 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement": schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref), 81 "k8s.io/apimachinery/pkg/apis/meta/v1.List": schema_pkg_apis_meta_v1_List(ref), 82 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta": schema_pkg_apis_meta_v1_ListMeta(ref), 83 "k8s.io/apimachinery/pkg/apis/meta/v1.ListOptions": schema_pkg_apis_meta_v1_ListOptions(ref), 84 "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry": schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref), 85 "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime": schema_pkg_apis_meta_v1_MicroTime(ref), 86 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta": schema_pkg_apis_meta_v1_ObjectMeta(ref), 87 "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference": schema_pkg_apis_meta_v1_OwnerReference(ref), 88 "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata": schema_pkg_apis_meta_v1_PartialObjectMetadata(ref), 89 "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadataList": schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref), 90 "k8s.io/apimachinery/pkg/apis/meta/v1.Patch": schema_pkg_apis_meta_v1_Patch(ref), 91 "k8s.io/apimachinery/pkg/apis/meta/v1.PatchOptions": schema_pkg_apis_meta_v1_PatchOptions(ref), 92 "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions": schema_pkg_apis_meta_v1_Preconditions(ref), 93 "k8s.io/apimachinery/pkg/apis/meta/v1.RootPaths": schema_pkg_apis_meta_v1_RootPaths(ref), 94 "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR": schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref), 95 "k8s.io/apimachinery/pkg/apis/meta/v1.Status": schema_pkg_apis_meta_v1_Status(ref), 96 "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause": schema_pkg_apis_meta_v1_StatusCause(ref), 97 "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails": schema_pkg_apis_meta_v1_StatusDetails(ref), 98 "k8s.io/apimachinery/pkg/apis/meta/v1.Table": schema_pkg_apis_meta_v1_Table(ref), 99 "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition": schema_pkg_apis_meta_v1_TableColumnDefinition(ref), 100 "k8s.io/apimachinery/pkg/apis/meta/v1.TableOptions": schema_pkg_apis_meta_v1_TableOptions(ref), 101 "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow": schema_pkg_apis_meta_v1_TableRow(ref), 102 "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition": schema_pkg_apis_meta_v1_TableRowCondition(ref), 103 "k8s.io/apimachinery/pkg/apis/meta/v1.Time": schema_pkg_apis_meta_v1_Time(ref), 104 "k8s.io/apimachinery/pkg/apis/meta/v1.Timestamp": schema_pkg_apis_meta_v1_Timestamp(ref), 105 "k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta": schema_pkg_apis_meta_v1_TypeMeta(ref), 106 "k8s.io/apimachinery/pkg/apis/meta/v1.UpdateOptions": schema_pkg_apis_meta_v1_UpdateOptions(ref), 107 "k8s.io/apimachinery/pkg/apis/meta/v1.WatchEvent": schema_pkg_apis_meta_v1_WatchEvent(ref), 108 "k8s.io/apimachinery/pkg/util/intstr.IntOrString": schema_apimachinery_pkg_util_intstr_IntOrString(ref), 109 "kubesphere.io/api/network/v1alpha1.AllocationAttribute": schema_kubesphereio_api_network_v1alpha1_AllocationAttribute(ref), 110 "kubesphere.io/api/network/v1alpha1.DNS": schema_kubesphereio_api_network_v1alpha1_DNS(ref), 111 "kubesphere.io/api/network/v1alpha1.IPAMBlock": schema_kubesphereio_api_network_v1alpha1_IPAMBlock(ref), 112 "kubesphere.io/api/network/v1alpha1.IPAMBlockList": schema_kubesphereio_api_network_v1alpha1_IPAMBlockList(ref), 113 "kubesphere.io/api/network/v1alpha1.IPAMBlockSpec": schema_kubesphereio_api_network_v1alpha1_IPAMBlockSpec(ref), 114 "kubesphere.io/api/network/v1alpha1.IPAMHandle": schema_kubesphereio_api_network_v1alpha1_IPAMHandle(ref), 115 "kubesphere.io/api/network/v1alpha1.IPAMHandleList": schema_kubesphereio_api_network_v1alpha1_IPAMHandleList(ref), 116 "kubesphere.io/api/network/v1alpha1.IPAMHandleSpec": schema_kubesphereio_api_network_v1alpha1_IPAMHandleSpec(ref), 117 "kubesphere.io/api/network/v1alpha1.IPPool": schema_kubesphereio_api_network_v1alpha1_IPPool(ref), 118 "kubesphere.io/api/network/v1alpha1.IPPoolList": schema_kubesphereio_api_network_v1alpha1_IPPoolList(ref), 119 "kubesphere.io/api/network/v1alpha1.IPPoolSpec": schema_kubesphereio_api_network_v1alpha1_IPPoolSpec(ref), 120 "kubesphere.io/api/network/v1alpha1.IPPoolStatus": schema_kubesphereio_api_network_v1alpha1_IPPoolStatus(ref), 121 "kubesphere.io/api/network/v1alpha1.NamespaceNetworkPolicy": schema_kubesphereio_api_network_v1alpha1_NamespaceNetworkPolicy(ref), 122 "kubesphere.io/api/network/v1alpha1.NamespaceNetworkPolicyList": schema_kubesphereio_api_network_v1alpha1_NamespaceNetworkPolicyList(ref), 123 "kubesphere.io/api/network/v1alpha1.NamespaceNetworkPolicySpec": schema_kubesphereio_api_network_v1alpha1_NamespaceNetworkPolicySpec(ref), 124 "kubesphere.io/api/network/v1alpha1.NamespaceSelector": schema_kubesphereio_api_network_v1alpha1_NamespaceSelector(ref), 125 "kubesphere.io/api/network/v1alpha1.NetworkPolicyEgressRule": schema_kubesphereio_api_network_v1alpha1_NetworkPolicyEgressRule(ref), 126 "kubesphere.io/api/network/v1alpha1.NetworkPolicyIngressRule": schema_kubesphereio_api_network_v1alpha1_NetworkPolicyIngressRule(ref), 127 "kubesphere.io/api/network/v1alpha1.NetworkPolicyPeer": schema_kubesphereio_api_network_v1alpha1_NetworkPolicyPeer(ref), 128 "kubesphere.io/api/network/v1alpha1.ReservedAttr": schema_kubesphereio_api_network_v1alpha1_ReservedAttr(ref), 129 "kubesphere.io/api/network/v1alpha1.Route": schema_kubesphereio_api_network_v1alpha1_Route(ref), 130 "kubesphere.io/api/network/v1alpha1.ServiceSelector": schema_kubesphereio_api_network_v1alpha1_ServiceSelector(ref), 131 "kubesphere.io/api/network/v1alpha1.VLANConfig": schema_kubesphereio_api_network_v1alpha1_VLANConfig(ref), 132 "kubesphere.io/api/network/v1alpha1.WorkspaceStatus": schema_kubesphereio_api_network_v1alpha1_WorkspaceStatus(ref), 133 } 134 } 135 136 func schema_k8sio_api_networking_v1_HTTPIngressPath(ref common.ReferenceCallback) common.OpenAPIDefinition { 137 return common.OpenAPIDefinition{ 138 Schema: spec.Schema{ 139 SchemaProps: spec.SchemaProps{ 140 Description: "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.", 141 Type: []string{"object"}, 142 Properties: map[string]spec.Schema{ 143 "path": { 144 SchemaProps: spec.SchemaProps{ 145 Description: "Path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/' and must be present when using PathType with value \"Exact\" or \"Prefix\".", 146 Type: []string{"string"}, 147 Format: "", 148 }, 149 }, 150 "pathType": { 151 SchemaProps: spec.SchemaProps{ 152 Description: "PathType determines the interpretation of the Path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is\n done on a path element by element basis. A path element refers is the\n list of labels in the path split by the '/' separator. A request is a\n match for path p if every p is an element-wise prefix of p of the\n request path. Note that if the last element of the path is a substring\n of the last element in request path, it is not a match (e.g. /foo/bar\n matches /foo/bar/baz, but does not match /foo/barbaz).\n* ImplementationSpecific: Interpretation of the Path matching is up to\n the IngressClass. Implementations can treat this as a separate PathType\n or treat it identically to Prefix or Exact path types.\nImplementations are required to support all path types.", 153 Type: []string{"string"}, 154 Format: "", 155 }, 156 }, 157 "backend": { 158 SchemaProps: spec.SchemaProps{ 159 Description: "Backend defines the referenced service endpoint to which the traffic will be forwarded to.", 160 Default: map[string]interface{}{}, 161 Ref: ref("k8s.io/api/networking/v1.IngressBackend"), 162 }, 163 }, 164 }, 165 Required: []string{"pathType", "backend"}, 166 }, 167 }, 168 Dependencies: []string{ 169 "k8s.io/api/networking/v1.IngressBackend"}, 170 } 171 } 172 173 func schema_k8sio_api_networking_v1_HTTPIngressRuleValue(ref common.ReferenceCallback) common.OpenAPIDefinition { 174 return common.OpenAPIDefinition{ 175 Schema: spec.Schema{ 176 SchemaProps: spec.SchemaProps{ 177 Description: "HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http://<host>/<path>?<searchpart> -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.", 178 Type: []string{"object"}, 179 Properties: map[string]spec.Schema{ 180 "paths": { 181 VendorExtensible: spec.VendorExtensible{ 182 Extensions: spec.Extensions{ 183 "x-kubernetes-list-type": "atomic", 184 }, 185 }, 186 SchemaProps: spec.SchemaProps{ 187 Description: "A collection of paths that map requests to backends.", 188 Type: []string{"array"}, 189 Items: &spec.SchemaOrArray{ 190 Schema: &spec.Schema{ 191 SchemaProps: spec.SchemaProps{ 192 Default: map[string]interface{}{}, 193 Ref: ref("k8s.io/api/networking/v1.HTTPIngressPath"), 194 }, 195 }, 196 }, 197 }, 198 }, 199 }, 200 Required: []string{"paths"}, 201 }, 202 }, 203 Dependencies: []string{ 204 "k8s.io/api/networking/v1.HTTPIngressPath"}, 205 } 206 } 207 208 func schema_k8sio_api_networking_v1_IPBlock(ref common.ReferenceCallback) common.OpenAPIDefinition { 209 return common.OpenAPIDefinition{ 210 Schema: spec.Schema{ 211 SchemaProps: spec.SchemaProps{ 212 Description: "IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\",\"2001:db9::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.", 213 Type: []string{"object"}, 214 Properties: map[string]spec.Schema{ 215 "cidr": { 216 SchemaProps: spec.SchemaProps{ 217 Description: "CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\" or \"2001:db9::/64\"", 218 Default: "", 219 Type: []string{"string"}, 220 Format: "", 221 }, 222 }, 223 "except": { 224 SchemaProps: spec.SchemaProps{ 225 Description: "Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" or \"2001:db9::/64\" Except values will be rejected if they are outside the CIDR range", 226 Type: []string{"array"}, 227 Items: &spec.SchemaOrArray{ 228 Schema: &spec.Schema{ 229 SchemaProps: spec.SchemaProps{ 230 Default: "", 231 Type: []string{"string"}, 232 Format: "", 233 }, 234 }, 235 }, 236 }, 237 }, 238 }, 239 Required: []string{"cidr"}, 240 }, 241 }, 242 } 243 } 244 245 func schema_k8sio_api_networking_v1_Ingress(ref common.ReferenceCallback) common.OpenAPIDefinition { 246 return common.OpenAPIDefinition{ 247 Schema: spec.Schema{ 248 SchemaProps: spec.SchemaProps{ 249 Description: "Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.", 250 Type: []string{"object"}, 251 Properties: map[string]spec.Schema{ 252 "kind": { 253 SchemaProps: spec.SchemaProps{ 254 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", 255 Type: []string{"string"}, 256 Format: "", 257 }, 258 }, 259 "apiVersion": { 260 SchemaProps: spec.SchemaProps{ 261 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", 262 Type: []string{"string"}, 263 Format: "", 264 }, 265 }, 266 "metadata": { 267 SchemaProps: spec.SchemaProps{ 268 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 269 Default: map[string]interface{}{}, 270 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 271 }, 272 }, 273 "spec": { 274 SchemaProps: spec.SchemaProps{ 275 Description: "Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", 276 Default: map[string]interface{}{}, 277 Ref: ref("k8s.io/api/networking/v1.IngressSpec"), 278 }, 279 }, 280 "status": { 281 SchemaProps: spec.SchemaProps{ 282 Description: "Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", 283 Default: map[string]interface{}{}, 284 Ref: ref("k8s.io/api/networking/v1.IngressStatus"), 285 }, 286 }, 287 }, 288 }, 289 }, 290 Dependencies: []string{ 291 "k8s.io/api/networking/v1.IngressSpec", "k8s.io/api/networking/v1.IngressStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 292 } 293 } 294 295 func schema_k8sio_api_networking_v1_IngressBackend(ref common.ReferenceCallback) common.OpenAPIDefinition { 296 return common.OpenAPIDefinition{ 297 Schema: spec.Schema{ 298 SchemaProps: spec.SchemaProps{ 299 Description: "IngressBackend describes all endpoints for a given service and port.", 300 Type: []string{"object"}, 301 Properties: map[string]spec.Schema{ 302 "service": { 303 SchemaProps: spec.SchemaProps{ 304 Description: "Service references a Service as a Backend. This is a mutually exclusive setting with \"Resource\".", 305 Ref: ref("k8s.io/api/networking/v1.IngressServiceBackend"), 306 }, 307 }, 308 "resource": { 309 SchemaProps: spec.SchemaProps{ 310 Description: "Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with \"Service\".", 311 Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"), 312 }, 313 }, 314 }, 315 }, 316 }, 317 Dependencies: []string{ 318 "k8s.io/api/core/v1.TypedLocalObjectReference", "k8s.io/api/networking/v1.IngressServiceBackend"}, 319 } 320 } 321 322 func schema_k8sio_api_networking_v1_IngressClass(ref common.ReferenceCallback) common.OpenAPIDefinition { 323 return common.OpenAPIDefinition{ 324 Schema: spec.Schema{ 325 SchemaProps: spec.SchemaProps{ 326 Description: "IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class.", 327 Type: []string{"object"}, 328 Properties: map[string]spec.Schema{ 329 "kind": { 330 SchemaProps: spec.SchemaProps{ 331 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", 332 Type: []string{"string"}, 333 Format: "", 334 }, 335 }, 336 "apiVersion": { 337 SchemaProps: spec.SchemaProps{ 338 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", 339 Type: []string{"string"}, 340 Format: "", 341 }, 342 }, 343 "metadata": { 344 SchemaProps: spec.SchemaProps{ 345 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 346 Default: map[string]interface{}{}, 347 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 348 }, 349 }, 350 "spec": { 351 SchemaProps: spec.SchemaProps{ 352 Description: "Spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", 353 Default: map[string]interface{}{}, 354 Ref: ref("k8s.io/api/networking/v1.IngressClassSpec"), 355 }, 356 }, 357 }, 358 }, 359 }, 360 Dependencies: []string{ 361 "k8s.io/api/networking/v1.IngressClassSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 362 } 363 } 364 365 func schema_k8sio_api_networking_v1_IngressClassList(ref common.ReferenceCallback) common.OpenAPIDefinition { 366 return common.OpenAPIDefinition{ 367 Schema: spec.Schema{ 368 SchemaProps: spec.SchemaProps{ 369 Description: "IngressClassList is a collection of IngressClasses.", 370 Type: []string{"object"}, 371 Properties: map[string]spec.Schema{ 372 "kind": { 373 SchemaProps: spec.SchemaProps{ 374 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", 375 Type: []string{"string"}, 376 Format: "", 377 }, 378 }, 379 "apiVersion": { 380 SchemaProps: spec.SchemaProps{ 381 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", 382 Type: []string{"string"}, 383 Format: "", 384 }, 385 }, 386 "metadata": { 387 SchemaProps: spec.SchemaProps{ 388 Description: "Standard list metadata.", 389 Default: map[string]interface{}{}, 390 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 391 }, 392 }, 393 "items": { 394 SchemaProps: spec.SchemaProps{ 395 Description: "Items is the list of IngressClasses.", 396 Type: []string{"array"}, 397 Items: &spec.SchemaOrArray{ 398 Schema: &spec.Schema{ 399 SchemaProps: spec.SchemaProps{ 400 Default: map[string]interface{}{}, 401 Ref: ref("k8s.io/api/networking/v1.IngressClass"), 402 }, 403 }, 404 }, 405 }, 406 }, 407 }, 408 Required: []string{"items"}, 409 }, 410 }, 411 Dependencies: []string{ 412 "k8s.io/api/networking/v1.IngressClass", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 413 } 414 } 415 416 func schema_k8sio_api_networking_v1_IngressClassParametersReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 417 return common.OpenAPIDefinition{ 418 Schema: spec.Schema{ 419 SchemaProps: spec.SchemaProps{ 420 Description: "IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource.", 421 Type: []string{"object"}, 422 Properties: map[string]spec.Schema{ 423 "apiGroup": { 424 SchemaProps: spec.SchemaProps{ 425 Description: "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", 426 Type: []string{"string"}, 427 Format: "", 428 }, 429 }, 430 "kind": { 431 SchemaProps: spec.SchemaProps{ 432 Description: "Kind is the type of resource being referenced.", 433 Default: "", 434 Type: []string{"string"}, 435 Format: "", 436 }, 437 }, 438 "name": { 439 SchemaProps: spec.SchemaProps{ 440 Description: "Name is the name of resource being referenced.", 441 Default: "", 442 Type: []string{"string"}, 443 Format: "", 444 }, 445 }, 446 "scope": { 447 SchemaProps: spec.SchemaProps{ 448 Description: "Scope represents if this refers to a cluster or namespace scoped resource. This may be set to \"Cluster\" (default) or \"Namespace\".", 449 Type: []string{"string"}, 450 Format: "", 451 }, 452 }, 453 "namespace": { 454 SchemaProps: spec.SchemaProps{ 455 Description: "Namespace is the namespace of the resource being referenced. This field is required when scope is set to \"Namespace\" and must be unset when scope is set to \"Cluster\".", 456 Type: []string{"string"}, 457 Format: "", 458 }, 459 }, 460 }, 461 Required: []string{"kind", "name"}, 462 }, 463 }, 464 } 465 } 466 467 func schema_k8sio_api_networking_v1_IngressClassSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 468 return common.OpenAPIDefinition{ 469 Schema: spec.Schema{ 470 SchemaProps: spec.SchemaProps{ 471 Description: "IngressClassSpec provides information about the class of an Ingress.", 472 Type: []string{"object"}, 473 Properties: map[string]spec.Schema{ 474 "controller": { 475 SchemaProps: spec.SchemaProps{ 476 Description: "Controller refers to the name of the controller that should handle this class. This allows for different \"flavors\" that are controlled by the same controller. For example, you may have different Parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. \"acme.io/ingress-controller\". This field is immutable.", 477 Type: []string{"string"}, 478 Format: "", 479 }, 480 }, 481 "parameters": { 482 SchemaProps: spec.SchemaProps{ 483 Description: "Parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters.", 484 Ref: ref("k8s.io/api/networking/v1.IngressClassParametersReference"), 485 }, 486 }, 487 }, 488 }, 489 }, 490 Dependencies: []string{ 491 "k8s.io/api/networking/v1.IngressClassParametersReference"}, 492 } 493 } 494 495 func schema_k8sio_api_networking_v1_IngressList(ref common.ReferenceCallback) common.OpenAPIDefinition { 496 return common.OpenAPIDefinition{ 497 Schema: spec.Schema{ 498 SchemaProps: spec.SchemaProps{ 499 Description: "IngressList is a collection of Ingress.", 500 Type: []string{"object"}, 501 Properties: map[string]spec.Schema{ 502 "kind": { 503 SchemaProps: spec.SchemaProps{ 504 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", 505 Type: []string{"string"}, 506 Format: "", 507 }, 508 }, 509 "apiVersion": { 510 SchemaProps: spec.SchemaProps{ 511 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", 512 Type: []string{"string"}, 513 Format: "", 514 }, 515 }, 516 "metadata": { 517 SchemaProps: spec.SchemaProps{ 518 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 519 Default: map[string]interface{}{}, 520 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 521 }, 522 }, 523 "items": { 524 SchemaProps: spec.SchemaProps{ 525 Description: "Items is the list of Ingress.", 526 Type: []string{"array"}, 527 Items: &spec.SchemaOrArray{ 528 Schema: &spec.Schema{ 529 SchemaProps: spec.SchemaProps{ 530 Default: map[string]interface{}{}, 531 Ref: ref("k8s.io/api/networking/v1.Ingress"), 532 }, 533 }, 534 }, 535 }, 536 }, 537 }, 538 Required: []string{"items"}, 539 }, 540 }, 541 Dependencies: []string{ 542 "k8s.io/api/networking/v1.Ingress", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 543 } 544 } 545 546 func schema_k8sio_api_networking_v1_IngressRule(ref common.ReferenceCallback) common.OpenAPIDefinition { 547 return common.OpenAPIDefinition{ 548 Schema: spec.Schema{ 549 SchemaProps: spec.SchemaProps{ 550 Description: "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.", 551 Type: []string{"object"}, 552 Properties: map[string]spec.Schema{ 553 "host": { 554 SchemaProps: spec.SchemaProps{ 555 Description: "Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to\n the IP in the Spec of the parent Ingress.\n2. The `:` delimiter is not respected because ports are not allowed.\n\t Currently the port of an Ingress is implicitly :80 for http and\n\t :443 for https.\nBoth these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.\n\nHost can be \"precise\" which is a domain name without the terminating dot of a network host (e.g. \"foo.bar.com\") or \"wildcard\", which is a domain name prefixed with a single wildcard label (e.g. \"*.foo.com\"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == \"*\"). Requests will be matched against the Host field in the following way: 1. If Host is precise, the request matches this rule if the http host header is equal to Host. 2. If Host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule.", 556 Type: []string{"string"}, 557 Format: "", 558 }, 559 }, 560 "http": { 561 SchemaProps: spec.SchemaProps{ 562 Ref: ref("k8s.io/api/networking/v1.HTTPIngressRuleValue"), 563 }, 564 }, 565 }, 566 }, 567 }, 568 Dependencies: []string{ 569 "k8s.io/api/networking/v1.HTTPIngressRuleValue"}, 570 } 571 } 572 573 func schema_k8sio_api_networking_v1_IngressRuleValue(ref common.ReferenceCallback) common.OpenAPIDefinition { 574 return common.OpenAPIDefinition{ 575 Schema: spec.Schema{ 576 SchemaProps: spec.SchemaProps{ 577 Description: "IngressRuleValue represents a rule to apply against incoming requests. If the rule is satisfied, the request is routed to the specified backend. Currently mixing different types of rules in a single Ingress is disallowed, so exactly one of the following must be set.", 578 Type: []string{"object"}, 579 Properties: map[string]spec.Schema{ 580 "http": { 581 SchemaProps: spec.SchemaProps{ 582 Ref: ref("k8s.io/api/networking/v1.HTTPIngressRuleValue"), 583 }, 584 }, 585 }, 586 }, 587 }, 588 Dependencies: []string{ 589 "k8s.io/api/networking/v1.HTTPIngressRuleValue"}, 590 } 591 } 592 593 func schema_k8sio_api_networking_v1_IngressServiceBackend(ref common.ReferenceCallback) common.OpenAPIDefinition { 594 return common.OpenAPIDefinition{ 595 Schema: spec.Schema{ 596 SchemaProps: spec.SchemaProps{ 597 Description: "IngressServiceBackend references a Kubernetes Service as a Backend.", 598 Type: []string{"object"}, 599 Properties: map[string]spec.Schema{ 600 "name": { 601 SchemaProps: spec.SchemaProps{ 602 Description: "Name is the referenced service. The service must exist in the same namespace as the Ingress object.", 603 Default: "", 604 Type: []string{"string"}, 605 Format: "", 606 }, 607 }, 608 "port": { 609 SchemaProps: spec.SchemaProps{ 610 Description: "Port of the referenced service. A port name or port number is required for a IngressServiceBackend.", 611 Default: map[string]interface{}{}, 612 Ref: ref("k8s.io/api/networking/v1.ServiceBackendPort"), 613 }, 614 }, 615 }, 616 Required: []string{"name"}, 617 }, 618 }, 619 Dependencies: []string{ 620 "k8s.io/api/networking/v1.ServiceBackendPort"}, 621 } 622 } 623 624 func schema_k8sio_api_networking_v1_IngressSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 625 return common.OpenAPIDefinition{ 626 Schema: spec.Schema{ 627 SchemaProps: spec.SchemaProps{ 628 Description: "IngressSpec describes the Ingress the user wishes to exist.", 629 Type: []string{"object"}, 630 Properties: map[string]spec.Schema{ 631 "ingressClassName": { 632 SchemaProps: spec.SchemaProps{ 633 Description: "IngressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present.", 634 Type: []string{"string"}, 635 Format: "", 636 }, 637 }, 638 "defaultBackend": { 639 SchemaProps: spec.SchemaProps{ 640 Description: "DefaultBackend is the backend that should handle requests that don't match any rule. If Rules are not specified, DefaultBackend must be specified. If DefaultBackend is not set, the handling of requests that do not match any of the rules will be up to the Ingress controller.", 641 Ref: ref("k8s.io/api/networking/v1.IngressBackend"), 642 }, 643 }, 644 "tls": { 645 VendorExtensible: spec.VendorExtensible{ 646 Extensions: spec.Extensions{ 647 "x-kubernetes-list-type": "atomic", 648 }, 649 }, 650 SchemaProps: spec.SchemaProps{ 651 Description: "TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI.", 652 Type: []string{"array"}, 653 Items: &spec.SchemaOrArray{ 654 Schema: &spec.Schema{ 655 SchemaProps: spec.SchemaProps{ 656 Default: map[string]interface{}{}, 657 Ref: ref("k8s.io/api/networking/v1.IngressTLS"), 658 }, 659 }, 660 }, 661 }, 662 }, 663 "rules": { 664 VendorExtensible: spec.VendorExtensible{ 665 Extensions: spec.Extensions{ 666 "x-kubernetes-list-type": "atomic", 667 }, 668 }, 669 SchemaProps: spec.SchemaProps{ 670 Description: "A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.", 671 Type: []string{"array"}, 672 Items: &spec.SchemaOrArray{ 673 Schema: &spec.Schema{ 674 SchemaProps: spec.SchemaProps{ 675 Default: map[string]interface{}{}, 676 Ref: ref("k8s.io/api/networking/v1.IngressRule"), 677 }, 678 }, 679 }, 680 }, 681 }, 682 }, 683 }, 684 }, 685 Dependencies: []string{ 686 "k8s.io/api/networking/v1.IngressBackend", "k8s.io/api/networking/v1.IngressRule", "k8s.io/api/networking/v1.IngressTLS"}, 687 } 688 } 689 690 func schema_k8sio_api_networking_v1_IngressStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 691 return common.OpenAPIDefinition{ 692 Schema: spec.Schema{ 693 SchemaProps: spec.SchemaProps{ 694 Description: "IngressStatus describe the current state of the Ingress.", 695 Type: []string{"object"}, 696 Properties: map[string]spec.Schema{ 697 "loadBalancer": { 698 SchemaProps: spec.SchemaProps{ 699 Description: "LoadBalancer contains the current status of the load-balancer.", 700 Default: map[string]interface{}{}, 701 Ref: ref("k8s.io/api/core/v1.LoadBalancerStatus"), 702 }, 703 }, 704 }, 705 }, 706 }, 707 Dependencies: []string{ 708 "k8s.io/api/core/v1.LoadBalancerStatus"}, 709 } 710 } 711 712 func schema_k8sio_api_networking_v1_IngressTLS(ref common.ReferenceCallback) common.OpenAPIDefinition { 713 return common.OpenAPIDefinition{ 714 Schema: spec.Schema{ 715 SchemaProps: spec.SchemaProps{ 716 Description: "IngressTLS describes the transport layer security associated with an Ingress.", 717 Type: []string{"object"}, 718 Properties: map[string]spec.Schema{ 719 "hosts": { 720 VendorExtensible: spec.VendorExtensible{ 721 Extensions: spec.Extensions{ 722 "x-kubernetes-list-type": "atomic", 723 }, 724 }, 725 SchemaProps: spec.SchemaProps{ 726 Description: "Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified.", 727 Type: []string{"array"}, 728 Items: &spec.SchemaOrArray{ 729 Schema: &spec.Schema{ 730 SchemaProps: spec.SchemaProps{ 731 Default: "", 732 Type: []string{"string"}, 733 Format: "", 734 }, 735 }, 736 }, 737 }, 738 }, 739 "secretName": { 740 SchemaProps: spec.SchemaProps{ 741 Description: "SecretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing.", 742 Type: []string{"string"}, 743 Format: "", 744 }, 745 }, 746 }, 747 }, 748 }, 749 } 750 } 751 752 func schema_k8sio_api_networking_v1_NetworkPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { 753 return common.OpenAPIDefinition{ 754 Schema: spec.Schema{ 755 SchemaProps: spec.SchemaProps{ 756 Description: "NetworkPolicy describes what network traffic is allowed for a set of Pods", 757 Type: []string{"object"}, 758 Properties: map[string]spec.Schema{ 759 "kind": { 760 SchemaProps: spec.SchemaProps{ 761 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", 762 Type: []string{"string"}, 763 Format: "", 764 }, 765 }, 766 "apiVersion": { 767 SchemaProps: spec.SchemaProps{ 768 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", 769 Type: []string{"string"}, 770 Format: "", 771 }, 772 }, 773 "metadata": { 774 SchemaProps: spec.SchemaProps{ 775 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 776 Default: map[string]interface{}{}, 777 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 778 }, 779 }, 780 "spec": { 781 SchemaProps: spec.SchemaProps{ 782 Description: "Specification of the desired behavior for this NetworkPolicy.", 783 Default: map[string]interface{}{}, 784 Ref: ref("k8s.io/api/networking/v1.NetworkPolicySpec"), 785 }, 786 }, 787 "status": { 788 SchemaProps: spec.SchemaProps{ 789 Description: "Status is the current state of the NetworkPolicy. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", 790 Default: map[string]interface{}{}, 791 Ref: ref("k8s.io/api/networking/v1.NetworkPolicyStatus"), 792 }, 793 }, 794 }, 795 }, 796 }, 797 Dependencies: []string{ 798 "k8s.io/api/networking/v1.NetworkPolicySpec", "k8s.io/api/networking/v1.NetworkPolicyStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 799 } 800 } 801 802 func schema_k8sio_api_networking_v1_NetworkPolicyEgressRule(ref common.ReferenceCallback) common.OpenAPIDefinition { 803 return common.OpenAPIDefinition{ 804 Schema: spec.Schema{ 805 SchemaProps: spec.SchemaProps{ 806 Description: "NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8", 807 Type: []string{"object"}, 808 Properties: map[string]spec.Schema{ 809 "ports": { 810 SchemaProps: spec.SchemaProps{ 811 Description: "List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.", 812 Type: []string{"array"}, 813 Items: &spec.SchemaOrArray{ 814 Schema: &spec.Schema{ 815 SchemaProps: spec.SchemaProps{ 816 Default: map[string]interface{}{}, 817 Ref: ref("k8s.io/api/networking/v1.NetworkPolicyPort"), 818 }, 819 }, 820 }, 821 }, 822 }, 823 "to": { 824 SchemaProps: spec.SchemaProps{ 825 Description: "List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list.", 826 Type: []string{"array"}, 827 Items: &spec.SchemaOrArray{ 828 Schema: &spec.Schema{ 829 SchemaProps: spec.SchemaProps{ 830 Default: map[string]interface{}{}, 831 Ref: ref("k8s.io/api/networking/v1.NetworkPolicyPeer"), 832 }, 833 }, 834 }, 835 }, 836 }, 837 }, 838 }, 839 }, 840 Dependencies: []string{ 841 "k8s.io/api/networking/v1.NetworkPolicyPeer", "k8s.io/api/networking/v1.NetworkPolicyPort"}, 842 } 843 } 844 845 func schema_k8sio_api_networking_v1_NetworkPolicyIngressRule(ref common.ReferenceCallback) common.OpenAPIDefinition { 846 return common.OpenAPIDefinition{ 847 Schema: spec.Schema{ 848 SchemaProps: spec.SchemaProps{ 849 Description: "NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.", 850 Type: []string{"object"}, 851 Properties: map[string]spec.Schema{ 852 "ports": { 853 SchemaProps: spec.SchemaProps{ 854 Description: "List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.", 855 Type: []string{"array"}, 856 Items: &spec.SchemaOrArray{ 857 Schema: &spec.Schema{ 858 SchemaProps: spec.SchemaProps{ 859 Default: map[string]interface{}{}, 860 Ref: ref("k8s.io/api/networking/v1.NetworkPolicyPort"), 861 }, 862 }, 863 }, 864 }, 865 }, 866 "from": { 867 SchemaProps: spec.SchemaProps{ 868 Description: "List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list.", 869 Type: []string{"array"}, 870 Items: &spec.SchemaOrArray{ 871 Schema: &spec.Schema{ 872 SchemaProps: spec.SchemaProps{ 873 Default: map[string]interface{}{}, 874 Ref: ref("k8s.io/api/networking/v1.NetworkPolicyPeer"), 875 }, 876 }, 877 }, 878 }, 879 }, 880 }, 881 }, 882 }, 883 Dependencies: []string{ 884 "k8s.io/api/networking/v1.NetworkPolicyPeer", "k8s.io/api/networking/v1.NetworkPolicyPort"}, 885 } 886 } 887 888 func schema_k8sio_api_networking_v1_NetworkPolicyList(ref common.ReferenceCallback) common.OpenAPIDefinition { 889 return common.OpenAPIDefinition{ 890 Schema: spec.Schema{ 891 SchemaProps: spec.SchemaProps{ 892 Description: "NetworkPolicyList is a list of NetworkPolicy objects.", 893 Type: []string{"object"}, 894 Properties: map[string]spec.Schema{ 895 "kind": { 896 SchemaProps: spec.SchemaProps{ 897 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", 898 Type: []string{"string"}, 899 Format: "", 900 }, 901 }, 902 "apiVersion": { 903 SchemaProps: spec.SchemaProps{ 904 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", 905 Type: []string{"string"}, 906 Format: "", 907 }, 908 }, 909 "metadata": { 910 SchemaProps: spec.SchemaProps{ 911 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 912 Default: map[string]interface{}{}, 913 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 914 }, 915 }, 916 "items": { 917 SchemaProps: spec.SchemaProps{ 918 Description: "Items is a list of schema objects.", 919 Type: []string{"array"}, 920 Items: &spec.SchemaOrArray{ 921 Schema: &spec.Schema{ 922 SchemaProps: spec.SchemaProps{ 923 Default: map[string]interface{}{}, 924 Ref: ref("k8s.io/api/networking/v1.NetworkPolicy"), 925 }, 926 }, 927 }, 928 }, 929 }, 930 }, 931 Required: []string{"items"}, 932 }, 933 }, 934 Dependencies: []string{ 935 "k8s.io/api/networking/v1.NetworkPolicy", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 936 } 937 } 938 939 func schema_k8sio_api_networking_v1_NetworkPolicyPeer(ref common.ReferenceCallback) common.OpenAPIDefinition { 940 return common.OpenAPIDefinition{ 941 Schema: spec.Schema{ 942 SchemaProps: spec.SchemaProps{ 943 Description: "NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed", 944 Type: []string{"object"}, 945 Properties: map[string]spec.Schema{ 946 "podSelector": { 947 SchemaProps: spec.SchemaProps{ 948 Description: "This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods.\n\nIf NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace.", 949 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 950 }, 951 }, 952 "namespaceSelector": { 953 SchemaProps: spec.SchemaProps{ 954 Description: "Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces.\n\nIf PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector.", 955 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 956 }, 957 }, 958 "ipBlock": { 959 SchemaProps: spec.SchemaProps{ 960 Description: "IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be.", 961 Ref: ref("k8s.io/api/networking/v1.IPBlock"), 962 }, 963 }, 964 }, 965 }, 966 }, 967 Dependencies: []string{ 968 "k8s.io/api/networking/v1.IPBlock", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, 969 } 970 } 971 972 func schema_k8sio_api_networking_v1_NetworkPolicyPort(ref common.ReferenceCallback) common.OpenAPIDefinition { 973 return common.OpenAPIDefinition{ 974 Schema: spec.Schema{ 975 SchemaProps: spec.SchemaProps{ 976 Description: "NetworkPolicyPort describes a port to allow traffic on", 977 Type: []string{"object"}, 978 Properties: map[string]spec.Schema{ 979 "protocol": { 980 SchemaProps: spec.SchemaProps{ 981 Description: "The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.", 982 Type: []string{"string"}, 983 Format: "", 984 }, 985 }, 986 "port": { 987 SchemaProps: spec.SchemaProps{ 988 Description: "The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched.", 989 Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), 990 }, 991 }, 992 "endPort": { 993 SchemaProps: spec.SchemaProps{ 994 Description: "If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port.", 995 Type: []string{"integer"}, 996 Format: "int32", 997 }, 998 }, 999 }, 1000 }, 1001 }, 1002 Dependencies: []string{ 1003 "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, 1004 } 1005 } 1006 1007 func schema_k8sio_api_networking_v1_NetworkPolicySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 1008 return common.OpenAPIDefinition{ 1009 Schema: spec.Schema{ 1010 SchemaProps: spec.SchemaProps{ 1011 Description: "NetworkPolicySpec provides the specification of a NetworkPolicy", 1012 Type: []string{"object"}, 1013 Properties: map[string]spec.Schema{ 1014 "podSelector": { 1015 SchemaProps: spec.SchemaProps{ 1016 Description: "Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.", 1017 Default: map[string]interface{}{}, 1018 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 1019 }, 1020 }, 1021 "ingress": { 1022 SchemaProps: spec.SchemaProps{ 1023 Description: "List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default)", 1024 Type: []string{"array"}, 1025 Items: &spec.SchemaOrArray{ 1026 Schema: &spec.Schema{ 1027 SchemaProps: spec.SchemaProps{ 1028 Default: map[string]interface{}{}, 1029 Ref: ref("k8s.io/api/networking/v1.NetworkPolicyIngressRule"), 1030 }, 1031 }, 1032 }, 1033 }, 1034 }, 1035 "egress": { 1036 SchemaProps: spec.SchemaProps{ 1037 Description: "List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8", 1038 Type: []string{"array"}, 1039 Items: &spec.SchemaOrArray{ 1040 Schema: &spec.Schema{ 1041 SchemaProps: spec.SchemaProps{ 1042 Default: map[string]interface{}{}, 1043 Ref: ref("k8s.io/api/networking/v1.NetworkPolicyEgressRule"), 1044 }, 1045 }, 1046 }, 1047 }, 1048 }, 1049 "policyTypes": { 1050 SchemaProps: spec.SchemaProps{ 1051 Description: "List of rule types that the NetworkPolicy relates to. Valid options are [\"Ingress\"], [\"Egress\"], or [\"Ingress\", \"Egress\"]. If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an Egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8", 1052 Type: []string{"array"}, 1053 Items: &spec.SchemaOrArray{ 1054 Schema: &spec.Schema{ 1055 SchemaProps: spec.SchemaProps{ 1056 Default: "", 1057 Type: []string{"string"}, 1058 Format: "", 1059 }, 1060 }, 1061 }, 1062 }, 1063 }, 1064 }, 1065 Required: []string{"podSelector"}, 1066 }, 1067 }, 1068 Dependencies: []string{ 1069 "k8s.io/api/networking/v1.NetworkPolicyEgressRule", "k8s.io/api/networking/v1.NetworkPolicyIngressRule", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, 1070 } 1071 } 1072 1073 func schema_k8sio_api_networking_v1_NetworkPolicyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 1074 return common.OpenAPIDefinition{ 1075 Schema: spec.Schema{ 1076 SchemaProps: spec.SchemaProps{ 1077 Description: "NetworkPolicyStatus describe the current state of the NetworkPolicy.", 1078 Type: []string{"object"}, 1079 Properties: map[string]spec.Schema{ 1080 "conditions": { 1081 VendorExtensible: spec.VendorExtensible{ 1082 Extensions: spec.Extensions{ 1083 "x-kubernetes-list-map-keys": []interface{}{ 1084 "type", 1085 }, 1086 "x-kubernetes-list-type": "map", 1087 "x-kubernetes-patch-merge-key": "type", 1088 "x-kubernetes-patch-strategy": "merge", 1089 }, 1090 }, 1091 SchemaProps: spec.SchemaProps{ 1092 Description: "Conditions holds an array of metav1.Condition that describe the state of the NetworkPolicy. Current service state", 1093 Type: []string{"array"}, 1094 Items: &spec.SchemaOrArray{ 1095 Schema: &spec.Schema{ 1096 SchemaProps: spec.SchemaProps{ 1097 Default: map[string]interface{}{}, 1098 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Condition"), 1099 }, 1100 }, 1101 }, 1102 }, 1103 }, 1104 }, 1105 }, 1106 }, 1107 Dependencies: []string{ 1108 "k8s.io/apimachinery/pkg/apis/meta/v1.Condition"}, 1109 } 1110 } 1111 1112 func schema_k8sio_api_networking_v1_ServiceBackendPort(ref common.ReferenceCallback) common.OpenAPIDefinition { 1113 return common.OpenAPIDefinition{ 1114 Schema: spec.Schema{ 1115 SchemaProps: spec.SchemaProps{ 1116 Description: "ServiceBackendPort is the service port being referenced.", 1117 Type: []string{"object"}, 1118 Properties: map[string]spec.Schema{ 1119 "name": { 1120 SchemaProps: spec.SchemaProps{ 1121 Description: "Name is the name of the port on the Service. This is a mutually exclusive setting with \"Number\".", 1122 Type: []string{"string"}, 1123 Format: "", 1124 }, 1125 }, 1126 "number": { 1127 SchemaProps: spec.SchemaProps{ 1128 Description: "Number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with \"Name\".", 1129 Type: []string{"integer"}, 1130 Format: "int32", 1131 }, 1132 }, 1133 }, 1134 }, 1135 }, 1136 } 1137 } 1138 1139 func schema_pkg_apis_meta_v1_APIGroup(ref common.ReferenceCallback) common.OpenAPIDefinition { 1140 return common.OpenAPIDefinition{ 1141 Schema: spec.Schema{ 1142 SchemaProps: spec.SchemaProps{ 1143 Description: "APIGroup contains the name, the supported versions, and the preferred version of a group.", 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 "name": { 1161 SchemaProps: spec.SchemaProps{ 1162 Description: "name is the name of the group.", 1163 Default: "", 1164 Type: []string{"string"}, 1165 Format: "", 1166 }, 1167 }, 1168 "versions": { 1169 SchemaProps: spec.SchemaProps{ 1170 Description: "versions are the versions supported in this group.", 1171 Type: []string{"array"}, 1172 Items: &spec.SchemaOrArray{ 1173 Schema: &spec.Schema{ 1174 SchemaProps: spec.SchemaProps{ 1175 Default: map[string]interface{}{}, 1176 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery"), 1177 }, 1178 }, 1179 }, 1180 }, 1181 }, 1182 "preferredVersion": { 1183 SchemaProps: spec.SchemaProps{ 1184 Description: "preferredVersion is the version preferred by the API server, which probably is the storage version.", 1185 Default: map[string]interface{}{}, 1186 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery"), 1187 }, 1188 }, 1189 "serverAddressByClientCIDRs": { 1190 SchemaProps: spec.SchemaProps{ 1191 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.", 1192 Type: []string{"array"}, 1193 Items: &spec.SchemaOrArray{ 1194 Schema: &spec.Schema{ 1195 SchemaProps: spec.SchemaProps{ 1196 Default: map[string]interface{}{}, 1197 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"), 1198 }, 1199 }, 1200 }, 1201 }, 1202 }, 1203 }, 1204 Required: []string{"name", "versions"}, 1205 }, 1206 }, 1207 Dependencies: []string{ 1208 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery", "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"}, 1209 } 1210 } 1211 1212 func schema_pkg_apis_meta_v1_APIGroupList(ref common.ReferenceCallback) common.OpenAPIDefinition { 1213 return common.OpenAPIDefinition{ 1214 Schema: spec.Schema{ 1215 SchemaProps: spec.SchemaProps{ 1216 Description: "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", 1217 Type: []string{"object"}, 1218 Properties: map[string]spec.Schema{ 1219 "kind": { 1220 SchemaProps: spec.SchemaProps{ 1221 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", 1222 Type: []string{"string"}, 1223 Format: "", 1224 }, 1225 }, 1226 "apiVersion": { 1227 SchemaProps: spec.SchemaProps{ 1228 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", 1229 Type: []string{"string"}, 1230 Format: "", 1231 }, 1232 }, 1233 "groups": { 1234 SchemaProps: spec.SchemaProps{ 1235 Description: "groups is a list of APIGroup.", 1236 Type: []string{"array"}, 1237 Items: &spec.SchemaOrArray{ 1238 Schema: &spec.Schema{ 1239 SchemaProps: spec.SchemaProps{ 1240 Default: map[string]interface{}{}, 1241 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup"), 1242 }, 1243 }, 1244 }, 1245 }, 1246 }, 1247 }, 1248 Required: []string{"groups"}, 1249 }, 1250 }, 1251 Dependencies: []string{ 1252 "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup"}, 1253 } 1254 } 1255 1256 func schema_pkg_apis_meta_v1_APIResource(ref common.ReferenceCallback) common.OpenAPIDefinition { 1257 return common.OpenAPIDefinition{ 1258 Schema: spec.Schema{ 1259 SchemaProps: spec.SchemaProps{ 1260 Description: "APIResource specifies the name of a resource and whether it is namespaced.", 1261 Type: []string{"object"}, 1262 Properties: map[string]spec.Schema{ 1263 "name": { 1264 SchemaProps: spec.SchemaProps{ 1265 Description: "name is the plural name of the resource.", 1266 Default: "", 1267 Type: []string{"string"}, 1268 Format: "", 1269 }, 1270 }, 1271 "singularName": { 1272 SchemaProps: spec.SchemaProps{ 1273 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.", 1274 Default: "", 1275 Type: []string{"string"}, 1276 Format: "", 1277 }, 1278 }, 1279 "namespaced": { 1280 SchemaProps: spec.SchemaProps{ 1281 Description: "namespaced indicates if a resource is namespaced or not.", 1282 Default: false, 1283 Type: []string{"boolean"}, 1284 Format: "", 1285 }, 1286 }, 1287 "group": { 1288 SchemaProps: spec.SchemaProps{ 1289 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\".", 1290 Type: []string{"string"}, 1291 Format: "", 1292 }, 1293 }, 1294 "version": { 1295 SchemaProps: spec.SchemaProps{ 1296 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)\".", 1297 Type: []string{"string"}, 1298 Format: "", 1299 }, 1300 }, 1301 "kind": { 1302 SchemaProps: spec.SchemaProps{ 1303 Description: "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", 1304 Default: "", 1305 Type: []string{"string"}, 1306 Format: "", 1307 }, 1308 }, 1309 "verbs": { 1310 SchemaProps: spec.SchemaProps{ 1311 Description: "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", 1312 Type: []string{"array"}, 1313 Items: &spec.SchemaOrArray{ 1314 Schema: &spec.Schema{ 1315 SchemaProps: spec.SchemaProps{ 1316 Default: "", 1317 Type: []string{"string"}, 1318 Format: "", 1319 }, 1320 }, 1321 }, 1322 }, 1323 }, 1324 "shortNames": { 1325 SchemaProps: spec.SchemaProps{ 1326 Description: "shortNames is a list of suggested short names of the resource.", 1327 Type: []string{"array"}, 1328 Items: &spec.SchemaOrArray{ 1329 Schema: &spec.Schema{ 1330 SchemaProps: spec.SchemaProps{ 1331 Default: "", 1332 Type: []string{"string"}, 1333 Format: "", 1334 }, 1335 }, 1336 }, 1337 }, 1338 }, 1339 "categories": { 1340 SchemaProps: spec.SchemaProps{ 1341 Description: "categories is a list of the grouped resources this resource belongs to (e.g. 'all')", 1342 Type: []string{"array"}, 1343 Items: &spec.SchemaOrArray{ 1344 Schema: &spec.Schema{ 1345 SchemaProps: spec.SchemaProps{ 1346 Default: "", 1347 Type: []string{"string"}, 1348 Format: "", 1349 }, 1350 }, 1351 }, 1352 }, 1353 }, 1354 "storageVersionHash": { 1355 SchemaProps: spec.SchemaProps{ 1356 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.", 1357 Type: []string{"string"}, 1358 Format: "", 1359 }, 1360 }, 1361 }, 1362 Required: []string{"name", "singularName", "namespaced", "kind", "verbs"}, 1363 }, 1364 }, 1365 } 1366 } 1367 1368 func schema_pkg_apis_meta_v1_APIResourceList(ref common.ReferenceCallback) common.OpenAPIDefinition { 1369 return common.OpenAPIDefinition{ 1370 Schema: spec.Schema{ 1371 SchemaProps: spec.SchemaProps{ 1372 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.", 1373 Type: []string{"object"}, 1374 Properties: map[string]spec.Schema{ 1375 "kind": { 1376 SchemaProps: spec.SchemaProps{ 1377 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", 1378 Type: []string{"string"}, 1379 Format: "", 1380 }, 1381 }, 1382 "apiVersion": { 1383 SchemaProps: spec.SchemaProps{ 1384 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", 1385 Type: []string{"string"}, 1386 Format: "", 1387 }, 1388 }, 1389 "groupVersion": { 1390 SchemaProps: spec.SchemaProps{ 1391 Description: "groupVersion is the group and version this APIResourceList is for.", 1392 Default: "", 1393 Type: []string{"string"}, 1394 Format: "", 1395 }, 1396 }, 1397 "resources": { 1398 SchemaProps: spec.SchemaProps{ 1399 Description: "resources contains the name of the resources and if they are namespaced.", 1400 Type: []string{"array"}, 1401 Items: &spec.SchemaOrArray{ 1402 Schema: &spec.Schema{ 1403 SchemaProps: spec.SchemaProps{ 1404 Default: map[string]interface{}{}, 1405 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.APIResource"), 1406 }, 1407 }, 1408 }, 1409 }, 1410 }, 1411 }, 1412 Required: []string{"groupVersion", "resources"}, 1413 }, 1414 }, 1415 Dependencies: []string{ 1416 "k8s.io/apimachinery/pkg/apis/meta/v1.APIResource"}, 1417 } 1418 } 1419 1420 func schema_pkg_apis_meta_v1_APIVersions(ref common.ReferenceCallback) common.OpenAPIDefinition { 1421 return common.OpenAPIDefinition{ 1422 Schema: spec.Schema{ 1423 SchemaProps: spec.SchemaProps{ 1424 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.", 1425 Type: []string{"object"}, 1426 Properties: map[string]spec.Schema{ 1427 "kind": { 1428 SchemaProps: spec.SchemaProps{ 1429 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", 1430 Type: []string{"string"}, 1431 Format: "", 1432 }, 1433 }, 1434 "apiVersion": { 1435 SchemaProps: spec.SchemaProps{ 1436 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", 1437 Type: []string{"string"}, 1438 Format: "", 1439 }, 1440 }, 1441 "versions": { 1442 SchemaProps: spec.SchemaProps{ 1443 Description: "versions are the api versions that are available.", 1444 Type: []string{"array"}, 1445 Items: &spec.SchemaOrArray{ 1446 Schema: &spec.Schema{ 1447 SchemaProps: spec.SchemaProps{ 1448 Default: "", 1449 Type: []string{"string"}, 1450 Format: "", 1451 }, 1452 }, 1453 }, 1454 }, 1455 }, 1456 "serverAddressByClientCIDRs": { 1457 SchemaProps: spec.SchemaProps{ 1458 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.", 1459 Type: []string{"array"}, 1460 Items: &spec.SchemaOrArray{ 1461 Schema: &spec.Schema{ 1462 SchemaProps: spec.SchemaProps{ 1463 Default: map[string]interface{}{}, 1464 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"), 1465 }, 1466 }, 1467 }, 1468 }, 1469 }, 1470 }, 1471 Required: []string{"versions", "serverAddressByClientCIDRs"}, 1472 }, 1473 }, 1474 Dependencies: []string{ 1475 "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"}, 1476 } 1477 } 1478 1479 func schema_pkg_apis_meta_v1_ApplyOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 1480 return common.OpenAPIDefinition{ 1481 Schema: spec.Schema{ 1482 SchemaProps: spec.SchemaProps{ 1483 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.", 1484 Type: []string{"object"}, 1485 Properties: map[string]spec.Schema{ 1486 "kind": { 1487 SchemaProps: spec.SchemaProps{ 1488 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", 1489 Type: []string{"string"}, 1490 Format: "", 1491 }, 1492 }, 1493 "apiVersion": { 1494 SchemaProps: spec.SchemaProps{ 1495 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", 1496 Type: []string{"string"}, 1497 Format: "", 1498 }, 1499 }, 1500 "dryRun": { 1501 SchemaProps: spec.SchemaProps{ 1502 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", 1503 Type: []string{"array"}, 1504 Items: &spec.SchemaOrArray{ 1505 Schema: &spec.Schema{ 1506 SchemaProps: spec.SchemaProps{ 1507 Default: "", 1508 Type: []string{"string"}, 1509 Format: "", 1510 }, 1511 }, 1512 }, 1513 }, 1514 }, 1515 "force": { 1516 SchemaProps: spec.SchemaProps{ 1517 Description: "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people.", 1518 Default: false, 1519 Type: []string{"boolean"}, 1520 Format: "", 1521 }, 1522 }, 1523 "fieldManager": { 1524 SchemaProps: spec.SchemaProps{ 1525 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.", 1526 Default: "", 1527 Type: []string{"string"}, 1528 Format: "", 1529 }, 1530 }, 1531 }, 1532 Required: []string{"force", "fieldManager"}, 1533 }, 1534 }, 1535 } 1536 } 1537 1538 func schema_pkg_apis_meta_v1_Condition(ref common.ReferenceCallback) common.OpenAPIDefinition { 1539 return common.OpenAPIDefinition{ 1540 Schema: spec.Schema{ 1541 SchemaProps: spec.SchemaProps{ 1542 Description: "Condition contains details for one aspect of the current state of this API Resource.", 1543 Type: []string{"object"}, 1544 Properties: map[string]spec.Schema{ 1545 "type": { 1546 SchemaProps: spec.SchemaProps{ 1547 Description: "type of condition in CamelCase or in foo.example.com/CamelCase.", 1548 Default: "", 1549 Type: []string{"string"}, 1550 Format: "", 1551 }, 1552 }, 1553 "status": { 1554 SchemaProps: spec.SchemaProps{ 1555 Description: "status of the condition, one of True, False, Unknown.", 1556 Default: "", 1557 Type: []string{"string"}, 1558 Format: "", 1559 }, 1560 }, 1561 "observedGeneration": { 1562 SchemaProps: spec.SchemaProps{ 1563 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.", 1564 Type: []string{"integer"}, 1565 Format: "int64", 1566 }, 1567 }, 1568 "lastTransitionTime": { 1569 SchemaProps: spec.SchemaProps{ 1570 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.", 1571 Default: map[string]interface{}{}, 1572 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 1573 }, 1574 }, 1575 "reason": { 1576 SchemaProps: spec.SchemaProps{ 1577 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.", 1578 Default: "", 1579 Type: []string{"string"}, 1580 Format: "", 1581 }, 1582 }, 1583 "message": { 1584 SchemaProps: spec.SchemaProps{ 1585 Description: "message is a human readable message indicating details about the transition. This may be an empty string.", 1586 Default: "", 1587 Type: []string{"string"}, 1588 Format: "", 1589 }, 1590 }, 1591 }, 1592 Required: []string{"type", "status", "lastTransitionTime", "reason", "message"}, 1593 }, 1594 }, 1595 Dependencies: []string{ 1596 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 1597 } 1598 } 1599 1600 func schema_pkg_apis_meta_v1_CreateOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 1601 return common.OpenAPIDefinition{ 1602 Schema: spec.Schema{ 1603 SchemaProps: spec.SchemaProps{ 1604 Description: "CreateOptions may be provided when creating an API object.", 1605 Type: []string{"object"}, 1606 Properties: map[string]spec.Schema{ 1607 "kind": { 1608 SchemaProps: spec.SchemaProps{ 1609 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", 1610 Type: []string{"string"}, 1611 Format: "", 1612 }, 1613 }, 1614 "apiVersion": { 1615 SchemaProps: spec.SchemaProps{ 1616 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", 1617 Type: []string{"string"}, 1618 Format: "", 1619 }, 1620 }, 1621 "dryRun": { 1622 SchemaProps: spec.SchemaProps{ 1623 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", 1624 Type: []string{"array"}, 1625 Items: &spec.SchemaOrArray{ 1626 Schema: &spec.Schema{ 1627 SchemaProps: spec.SchemaProps{ 1628 Default: "", 1629 Type: []string{"string"}, 1630 Format: "", 1631 }, 1632 }, 1633 }, 1634 }, 1635 }, 1636 "fieldManager": { 1637 SchemaProps: spec.SchemaProps{ 1638 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.", 1639 Type: []string{"string"}, 1640 Format: "", 1641 }, 1642 }, 1643 "fieldValidation": { 1644 SchemaProps: spec.SchemaProps{ 1645 Description: "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", 1646 Type: []string{"string"}, 1647 Format: "", 1648 }, 1649 }, 1650 }, 1651 }, 1652 }, 1653 } 1654 } 1655 1656 func schema_pkg_apis_meta_v1_DeleteOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 1657 return common.OpenAPIDefinition{ 1658 Schema: spec.Schema{ 1659 SchemaProps: spec.SchemaProps{ 1660 Description: "DeleteOptions may be provided when deleting an API object.", 1661 Type: []string{"object"}, 1662 Properties: map[string]spec.Schema{ 1663 "kind": { 1664 SchemaProps: spec.SchemaProps{ 1665 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", 1666 Type: []string{"string"}, 1667 Format: "", 1668 }, 1669 }, 1670 "apiVersion": { 1671 SchemaProps: spec.SchemaProps{ 1672 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", 1673 Type: []string{"string"}, 1674 Format: "", 1675 }, 1676 }, 1677 "gracePeriodSeconds": { 1678 SchemaProps: spec.SchemaProps{ 1679 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.", 1680 Type: []string{"integer"}, 1681 Format: "int64", 1682 }, 1683 }, 1684 "preconditions": { 1685 SchemaProps: spec.SchemaProps{ 1686 Description: "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.", 1687 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions"), 1688 }, 1689 }, 1690 "orphanDependents": { 1691 SchemaProps: spec.SchemaProps{ 1692 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.", 1693 Type: []string{"boolean"}, 1694 Format: "", 1695 }, 1696 }, 1697 "propagationPolicy": { 1698 SchemaProps: spec.SchemaProps{ 1699 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.", 1700 Type: []string{"string"}, 1701 Format: "", 1702 }, 1703 }, 1704 "dryRun": { 1705 SchemaProps: spec.SchemaProps{ 1706 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", 1707 Type: []string{"array"}, 1708 Items: &spec.SchemaOrArray{ 1709 Schema: &spec.Schema{ 1710 SchemaProps: spec.SchemaProps{ 1711 Default: "", 1712 Type: []string{"string"}, 1713 Format: "", 1714 }, 1715 }, 1716 }, 1717 }, 1718 }, 1719 }, 1720 }, 1721 }, 1722 Dependencies: []string{ 1723 "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions"}, 1724 } 1725 } 1726 1727 func schema_pkg_apis_meta_v1_Duration(ref common.ReferenceCallback) common.OpenAPIDefinition { 1728 return common.OpenAPIDefinition{ 1729 Schema: spec.Schema{ 1730 SchemaProps: spec.SchemaProps{ 1731 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.", 1732 Type: v1.Duration{}.OpenAPISchemaType(), 1733 Format: v1.Duration{}.OpenAPISchemaFormat(), 1734 }, 1735 }, 1736 } 1737 } 1738 1739 func schema_pkg_apis_meta_v1_FieldsV1(ref common.ReferenceCallback) common.OpenAPIDefinition { 1740 return common.OpenAPIDefinition{ 1741 Schema: spec.Schema{ 1742 SchemaProps: spec.SchemaProps{ 1743 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", 1744 Type: []string{"object"}, 1745 }, 1746 }, 1747 } 1748 } 1749 1750 func schema_pkg_apis_meta_v1_GetOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 1751 return common.OpenAPIDefinition{ 1752 Schema: spec.Schema{ 1753 SchemaProps: spec.SchemaProps{ 1754 Description: "GetOptions is the standard query options to the standard REST get call.", 1755 Type: []string{"object"}, 1756 Properties: map[string]spec.Schema{ 1757 "kind": { 1758 SchemaProps: spec.SchemaProps{ 1759 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", 1760 Type: []string{"string"}, 1761 Format: "", 1762 }, 1763 }, 1764 "apiVersion": { 1765 SchemaProps: spec.SchemaProps{ 1766 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", 1767 Type: []string{"string"}, 1768 Format: "", 1769 }, 1770 }, 1771 "resourceVersion": { 1772 SchemaProps: spec.SchemaProps{ 1773 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", 1774 Type: []string{"string"}, 1775 Format: "", 1776 }, 1777 }, 1778 }, 1779 }, 1780 }, 1781 } 1782 } 1783 1784 func schema_pkg_apis_meta_v1_GroupKind(ref common.ReferenceCallback) common.OpenAPIDefinition { 1785 return common.OpenAPIDefinition{ 1786 Schema: spec.Schema{ 1787 SchemaProps: spec.SchemaProps{ 1788 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", 1789 Type: []string{"object"}, 1790 Properties: map[string]spec.Schema{ 1791 "group": { 1792 SchemaProps: spec.SchemaProps{ 1793 Default: "", 1794 Type: []string{"string"}, 1795 Format: "", 1796 }, 1797 }, 1798 "kind": { 1799 SchemaProps: spec.SchemaProps{ 1800 Default: "", 1801 Type: []string{"string"}, 1802 Format: "", 1803 }, 1804 }, 1805 }, 1806 Required: []string{"group", "kind"}, 1807 }, 1808 }, 1809 } 1810 } 1811 1812 func schema_pkg_apis_meta_v1_GroupResource(ref common.ReferenceCallback) common.OpenAPIDefinition { 1813 return common.OpenAPIDefinition{ 1814 Schema: spec.Schema{ 1815 SchemaProps: spec.SchemaProps{ 1816 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", 1817 Type: []string{"object"}, 1818 Properties: map[string]spec.Schema{ 1819 "group": { 1820 SchemaProps: spec.SchemaProps{ 1821 Default: "", 1822 Type: []string{"string"}, 1823 Format: "", 1824 }, 1825 }, 1826 "resource": { 1827 SchemaProps: spec.SchemaProps{ 1828 Default: "", 1829 Type: []string{"string"}, 1830 Format: "", 1831 }, 1832 }, 1833 }, 1834 Required: []string{"group", "resource"}, 1835 }, 1836 }, 1837 } 1838 } 1839 1840 func schema_pkg_apis_meta_v1_GroupVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { 1841 return common.OpenAPIDefinition{ 1842 Schema: spec.Schema{ 1843 SchemaProps: spec.SchemaProps{ 1844 Description: "GroupVersion contains the \"group\" and the \"version\", which uniquely identifies the API.", 1845 Type: []string{"object"}, 1846 Properties: map[string]spec.Schema{ 1847 "group": { 1848 SchemaProps: spec.SchemaProps{ 1849 Default: "", 1850 Type: []string{"string"}, 1851 Format: "", 1852 }, 1853 }, 1854 "version": { 1855 SchemaProps: spec.SchemaProps{ 1856 Default: "", 1857 Type: []string{"string"}, 1858 Format: "", 1859 }, 1860 }, 1861 }, 1862 Required: []string{"group", "version"}, 1863 }, 1864 }, 1865 } 1866 } 1867 1868 func schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref common.ReferenceCallback) common.OpenAPIDefinition { 1869 return common.OpenAPIDefinition{ 1870 Schema: spec.Schema{ 1871 SchemaProps: spec.SchemaProps{ 1872 Description: "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", 1873 Type: []string{"object"}, 1874 Properties: map[string]spec.Schema{ 1875 "groupVersion": { 1876 SchemaProps: spec.SchemaProps{ 1877 Description: "groupVersion specifies the API group and version in the form \"group/version\"", 1878 Default: "", 1879 Type: []string{"string"}, 1880 Format: "", 1881 }, 1882 }, 1883 "version": { 1884 SchemaProps: spec.SchemaProps{ 1885 Description: "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", 1886 Default: "", 1887 Type: []string{"string"}, 1888 Format: "", 1889 }, 1890 }, 1891 }, 1892 Required: []string{"groupVersion", "version"}, 1893 }, 1894 }, 1895 } 1896 } 1897 1898 func schema_pkg_apis_meta_v1_GroupVersionKind(ref common.ReferenceCallback) common.OpenAPIDefinition { 1899 return common.OpenAPIDefinition{ 1900 Schema: spec.Schema{ 1901 SchemaProps: spec.SchemaProps{ 1902 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", 1903 Type: []string{"object"}, 1904 Properties: map[string]spec.Schema{ 1905 "group": { 1906 SchemaProps: spec.SchemaProps{ 1907 Default: "", 1908 Type: []string{"string"}, 1909 Format: "", 1910 }, 1911 }, 1912 "version": { 1913 SchemaProps: spec.SchemaProps{ 1914 Default: "", 1915 Type: []string{"string"}, 1916 Format: "", 1917 }, 1918 }, 1919 "kind": { 1920 SchemaProps: spec.SchemaProps{ 1921 Default: "", 1922 Type: []string{"string"}, 1923 Format: "", 1924 }, 1925 }, 1926 }, 1927 Required: []string{"group", "version", "kind"}, 1928 }, 1929 }, 1930 } 1931 } 1932 1933 func schema_pkg_apis_meta_v1_GroupVersionResource(ref common.ReferenceCallback) common.OpenAPIDefinition { 1934 return common.OpenAPIDefinition{ 1935 Schema: spec.Schema{ 1936 SchemaProps: spec.SchemaProps{ 1937 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", 1938 Type: []string{"object"}, 1939 Properties: map[string]spec.Schema{ 1940 "group": { 1941 SchemaProps: spec.SchemaProps{ 1942 Default: "", 1943 Type: []string{"string"}, 1944 Format: "", 1945 }, 1946 }, 1947 "version": { 1948 SchemaProps: spec.SchemaProps{ 1949 Default: "", 1950 Type: []string{"string"}, 1951 Format: "", 1952 }, 1953 }, 1954 "resource": { 1955 SchemaProps: spec.SchemaProps{ 1956 Default: "", 1957 Type: []string{"string"}, 1958 Format: "", 1959 }, 1960 }, 1961 }, 1962 Required: []string{"group", "version", "resource"}, 1963 }, 1964 }, 1965 } 1966 } 1967 1968 func schema_pkg_apis_meta_v1_InternalEvent(ref common.ReferenceCallback) common.OpenAPIDefinition { 1969 return common.OpenAPIDefinition{ 1970 Schema: spec.Schema{ 1971 SchemaProps: spec.SchemaProps{ 1972 Description: "InternalEvent makes watch.Event versioned", 1973 Type: []string{"object"}, 1974 Properties: map[string]spec.Schema{ 1975 "Type": { 1976 SchemaProps: spec.SchemaProps{ 1977 Default: "", 1978 Type: []string{"string"}, 1979 Format: "", 1980 }, 1981 }, 1982 "Object": { 1983 SchemaProps: spec.SchemaProps{ 1984 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.", 1985 Ref: ref("k8s.io/apimachinery/pkg/runtime.Object"), 1986 }, 1987 }, 1988 }, 1989 Required: []string{"Type", "Object"}, 1990 }, 1991 }, 1992 Dependencies: []string{ 1993 "k8s.io/apimachinery/pkg/runtime.Object"}, 1994 } 1995 } 1996 1997 func schema_pkg_apis_meta_v1_LabelSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 1998 return common.OpenAPIDefinition{ 1999 Schema: spec.Schema{ 2000 SchemaProps: spec.SchemaProps{ 2001 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.", 2002 Type: []string{"object"}, 2003 Properties: map[string]spec.Schema{ 2004 "matchLabels": { 2005 SchemaProps: spec.SchemaProps{ 2006 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.", 2007 Type: []string{"object"}, 2008 AdditionalProperties: &spec.SchemaOrBool{ 2009 Allows: true, 2010 Schema: &spec.Schema{ 2011 SchemaProps: spec.SchemaProps{ 2012 Default: "", 2013 Type: []string{"string"}, 2014 Format: "", 2015 }, 2016 }, 2017 }, 2018 }, 2019 }, 2020 "matchExpressions": { 2021 SchemaProps: spec.SchemaProps{ 2022 Description: "matchExpressions is a list of label selector requirements. The requirements are ANDed.", 2023 Type: []string{"array"}, 2024 Items: &spec.SchemaOrArray{ 2025 Schema: &spec.Schema{ 2026 SchemaProps: spec.SchemaProps{ 2027 Default: map[string]interface{}{}, 2028 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"), 2029 }, 2030 }, 2031 }, 2032 }, 2033 }, 2034 }, 2035 }, 2036 VendorExtensible: spec.VendorExtensible{ 2037 Extensions: spec.Extensions{ 2038 "x-kubernetes-map-type": "atomic", 2039 }, 2040 }, 2041 }, 2042 Dependencies: []string{ 2043 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"}, 2044 } 2045 } 2046 2047 func schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref common.ReferenceCallback) common.OpenAPIDefinition { 2048 return common.OpenAPIDefinition{ 2049 Schema: spec.Schema{ 2050 SchemaProps: spec.SchemaProps{ 2051 Description: "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", 2052 Type: []string{"object"}, 2053 Properties: map[string]spec.Schema{ 2054 "key": { 2055 VendorExtensible: spec.VendorExtensible{ 2056 Extensions: spec.Extensions{ 2057 "x-kubernetes-patch-merge-key": "key", 2058 "x-kubernetes-patch-strategy": "merge", 2059 }, 2060 }, 2061 SchemaProps: spec.SchemaProps{ 2062 Description: "key is the label key that the selector applies to.", 2063 Default: "", 2064 Type: []string{"string"}, 2065 Format: "", 2066 }, 2067 }, 2068 "operator": { 2069 SchemaProps: spec.SchemaProps{ 2070 Description: "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", 2071 Default: "", 2072 Type: []string{"string"}, 2073 Format: "", 2074 }, 2075 }, 2076 "values": { 2077 SchemaProps: spec.SchemaProps{ 2078 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.", 2079 Type: []string{"array"}, 2080 Items: &spec.SchemaOrArray{ 2081 Schema: &spec.Schema{ 2082 SchemaProps: spec.SchemaProps{ 2083 Default: "", 2084 Type: []string{"string"}, 2085 Format: "", 2086 }, 2087 }, 2088 }, 2089 }, 2090 }, 2091 }, 2092 Required: []string{"key", "operator"}, 2093 }, 2094 }, 2095 } 2096 } 2097 2098 func schema_pkg_apis_meta_v1_List(ref common.ReferenceCallback) common.OpenAPIDefinition { 2099 return common.OpenAPIDefinition{ 2100 Schema: spec.Schema{ 2101 SchemaProps: spec.SchemaProps{ 2102 Description: "List holds a list of objects, which may not be known by the server.", 2103 Type: []string{"object"}, 2104 Properties: map[string]spec.Schema{ 2105 "kind": { 2106 SchemaProps: spec.SchemaProps{ 2107 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", 2108 Type: []string{"string"}, 2109 Format: "", 2110 }, 2111 }, 2112 "apiVersion": { 2113 SchemaProps: spec.SchemaProps{ 2114 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", 2115 Type: []string{"string"}, 2116 Format: "", 2117 }, 2118 }, 2119 "metadata": { 2120 SchemaProps: spec.SchemaProps{ 2121 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 2122 Default: map[string]interface{}{}, 2123 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 2124 }, 2125 }, 2126 "items": { 2127 SchemaProps: spec.SchemaProps{ 2128 Description: "List of objects", 2129 Type: []string{"array"}, 2130 Items: &spec.SchemaOrArray{ 2131 Schema: &spec.Schema{ 2132 SchemaProps: spec.SchemaProps{ 2133 Default: map[string]interface{}{}, 2134 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), 2135 }, 2136 }, 2137 }, 2138 }, 2139 }, 2140 }, 2141 Required: []string{"items"}, 2142 }, 2143 }, 2144 Dependencies: []string{ 2145 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, 2146 } 2147 } 2148 2149 func schema_pkg_apis_meta_v1_ListMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { 2150 return common.OpenAPIDefinition{ 2151 Schema: spec.Schema{ 2152 SchemaProps: spec.SchemaProps{ 2153 Description: "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", 2154 Type: []string{"object"}, 2155 Properties: map[string]spec.Schema{ 2156 "selfLink": { 2157 SchemaProps: spec.SchemaProps{ 2158 Description: "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", 2159 Type: []string{"string"}, 2160 Format: "", 2161 }, 2162 }, 2163 "resourceVersion": { 2164 SchemaProps: spec.SchemaProps{ 2165 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", 2166 Type: []string{"string"}, 2167 Format: "", 2168 }, 2169 }, 2170 "continue": { 2171 SchemaProps: spec.SchemaProps{ 2172 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.", 2173 Type: []string{"string"}, 2174 Format: "", 2175 }, 2176 }, 2177 "remainingItemCount": { 2178 SchemaProps: spec.SchemaProps{ 2179 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.", 2180 Type: []string{"integer"}, 2181 Format: "int64", 2182 }, 2183 }, 2184 }, 2185 }, 2186 }, 2187 } 2188 } 2189 2190 func schema_pkg_apis_meta_v1_ListOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 2191 return common.OpenAPIDefinition{ 2192 Schema: spec.Schema{ 2193 SchemaProps: spec.SchemaProps{ 2194 Description: "ListOptions is the query options to a standard REST list call.", 2195 Type: []string{"object"}, 2196 Properties: map[string]spec.Schema{ 2197 "kind": { 2198 SchemaProps: spec.SchemaProps{ 2199 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", 2200 Type: []string{"string"}, 2201 Format: "", 2202 }, 2203 }, 2204 "apiVersion": { 2205 SchemaProps: spec.SchemaProps{ 2206 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", 2207 Type: []string{"string"}, 2208 Format: "", 2209 }, 2210 }, 2211 "labelSelector": { 2212 SchemaProps: spec.SchemaProps{ 2213 Description: "A selector to restrict the list of returned objects by their labels. Defaults to everything.", 2214 Type: []string{"string"}, 2215 Format: "", 2216 }, 2217 }, 2218 "fieldSelector": { 2219 SchemaProps: spec.SchemaProps{ 2220 Description: "A selector to restrict the list of returned objects by their fields. Defaults to everything.", 2221 Type: []string{"string"}, 2222 Format: "", 2223 }, 2224 }, 2225 "watch": { 2226 SchemaProps: spec.SchemaProps{ 2227 Description: "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", 2228 Type: []string{"boolean"}, 2229 Format: "", 2230 }, 2231 }, 2232 "allowWatchBookmarks": { 2233 SchemaProps: spec.SchemaProps{ 2234 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.", 2235 Type: []string{"boolean"}, 2236 Format: "", 2237 }, 2238 }, 2239 "resourceVersion": { 2240 SchemaProps: spec.SchemaProps{ 2241 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", 2242 Type: []string{"string"}, 2243 Format: "", 2244 }, 2245 }, 2246 "resourceVersionMatch": { 2247 SchemaProps: spec.SchemaProps{ 2248 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", 2249 Type: []string{"string"}, 2250 Format: "", 2251 }, 2252 }, 2253 "timeoutSeconds": { 2254 SchemaProps: spec.SchemaProps{ 2255 Description: "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", 2256 Type: []string{"integer"}, 2257 Format: "int64", 2258 }, 2259 }, 2260 "limit": { 2261 SchemaProps: spec.SchemaProps{ 2262 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.", 2263 Type: []string{"integer"}, 2264 Format: "int64", 2265 }, 2266 }, 2267 "continue": { 2268 SchemaProps: spec.SchemaProps{ 2269 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.", 2270 Type: []string{"string"}, 2271 Format: "", 2272 }, 2273 }, 2274 }, 2275 }, 2276 }, 2277 } 2278 } 2279 2280 func schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref common.ReferenceCallback) common.OpenAPIDefinition { 2281 return common.OpenAPIDefinition{ 2282 Schema: spec.Schema{ 2283 SchemaProps: spec.SchemaProps{ 2284 Description: "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.", 2285 Type: []string{"object"}, 2286 Properties: map[string]spec.Schema{ 2287 "manager": { 2288 SchemaProps: spec.SchemaProps{ 2289 Description: "Manager is an identifier of the workflow managing these fields.", 2290 Type: []string{"string"}, 2291 Format: "", 2292 }, 2293 }, 2294 "operation": { 2295 SchemaProps: spec.SchemaProps{ 2296 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'.", 2297 Type: []string{"string"}, 2298 Format: "", 2299 }, 2300 }, 2301 "apiVersion": { 2302 SchemaProps: spec.SchemaProps{ 2303 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.", 2304 Type: []string{"string"}, 2305 Format: "", 2306 }, 2307 }, 2308 "time": { 2309 SchemaProps: spec.SchemaProps{ 2310 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.", 2311 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 2312 }, 2313 }, 2314 "fieldsType": { 2315 SchemaProps: spec.SchemaProps{ 2316 Description: "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"", 2317 Type: []string{"string"}, 2318 Format: "", 2319 }, 2320 }, 2321 "fieldsV1": { 2322 SchemaProps: spec.SchemaProps{ 2323 Description: "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type.", 2324 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1"), 2325 }, 2326 }, 2327 "subresource": { 2328 SchemaProps: spec.SchemaProps{ 2329 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.", 2330 Type: []string{"string"}, 2331 Format: "", 2332 }, 2333 }, 2334 }, 2335 }, 2336 }, 2337 Dependencies: []string{ 2338 "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 2339 } 2340 } 2341 2342 func schema_pkg_apis_meta_v1_MicroTime(ref common.ReferenceCallback) common.OpenAPIDefinition { 2343 return common.OpenAPIDefinition{ 2344 Schema: spec.Schema{ 2345 SchemaProps: spec.SchemaProps{ 2346 Description: "MicroTime is version of Time with microsecond level precision.", 2347 Type: v1.MicroTime{}.OpenAPISchemaType(), 2348 Format: v1.MicroTime{}.OpenAPISchemaFormat(), 2349 }, 2350 }, 2351 } 2352 } 2353 2354 func schema_pkg_apis_meta_v1_ObjectMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { 2355 return common.OpenAPIDefinition{ 2356 Schema: spec.Schema{ 2357 SchemaProps: spec.SchemaProps{ 2358 Description: "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", 2359 Type: []string{"object"}, 2360 Properties: map[string]spec.Schema{ 2361 "name": { 2362 SchemaProps: spec.SchemaProps{ 2363 Description: "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names", 2364 Type: []string{"string"}, 2365 Format: "", 2366 }, 2367 }, 2368 "generateName": { 2369 SchemaProps: spec.SchemaProps{ 2370 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", 2371 Type: []string{"string"}, 2372 Format: "", 2373 }, 2374 }, 2375 "namespace": { 2376 SchemaProps: spec.SchemaProps{ 2377 Description: "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces", 2378 Type: []string{"string"}, 2379 Format: "", 2380 }, 2381 }, 2382 "selfLink": { 2383 SchemaProps: spec.SchemaProps{ 2384 Description: "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", 2385 Type: []string{"string"}, 2386 Format: "", 2387 }, 2388 }, 2389 "uid": { 2390 SchemaProps: spec.SchemaProps{ 2391 Description: "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", 2392 Type: []string{"string"}, 2393 Format: "", 2394 }, 2395 }, 2396 "resourceVersion": { 2397 SchemaProps: spec.SchemaProps{ 2398 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", 2399 Type: []string{"string"}, 2400 Format: "", 2401 }, 2402 }, 2403 "generation": { 2404 SchemaProps: spec.SchemaProps{ 2405 Description: "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", 2406 Type: []string{"integer"}, 2407 Format: "int64", 2408 }, 2409 }, 2410 "creationTimestamp": { 2411 SchemaProps: spec.SchemaProps{ 2412 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", 2413 Default: map[string]interface{}{}, 2414 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 2415 }, 2416 }, 2417 "deletionTimestamp": { 2418 SchemaProps: spec.SchemaProps{ 2419 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", 2420 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 2421 }, 2422 }, 2423 "deletionGracePeriodSeconds": { 2424 SchemaProps: spec.SchemaProps{ 2425 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.", 2426 Type: []string{"integer"}, 2427 Format: "int64", 2428 }, 2429 }, 2430 "labels": { 2431 SchemaProps: spec.SchemaProps{ 2432 Description: "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels", 2433 Type: []string{"object"}, 2434 AdditionalProperties: &spec.SchemaOrBool{ 2435 Allows: true, 2436 Schema: &spec.Schema{ 2437 SchemaProps: spec.SchemaProps{ 2438 Default: "", 2439 Type: []string{"string"}, 2440 Format: "", 2441 }, 2442 }, 2443 }, 2444 }, 2445 }, 2446 "annotations": { 2447 SchemaProps: spec.SchemaProps{ 2448 Description: "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations", 2449 Type: []string{"object"}, 2450 AdditionalProperties: &spec.SchemaOrBool{ 2451 Allows: true, 2452 Schema: &spec.Schema{ 2453 SchemaProps: spec.SchemaProps{ 2454 Default: "", 2455 Type: []string{"string"}, 2456 Format: "", 2457 }, 2458 }, 2459 }, 2460 }, 2461 }, 2462 "ownerReferences": { 2463 VendorExtensible: spec.VendorExtensible{ 2464 Extensions: spec.Extensions{ 2465 "x-kubernetes-patch-merge-key": "uid", 2466 "x-kubernetes-patch-strategy": "merge", 2467 }, 2468 }, 2469 SchemaProps: spec.SchemaProps{ 2470 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.", 2471 Type: []string{"array"}, 2472 Items: &spec.SchemaOrArray{ 2473 Schema: &spec.Schema{ 2474 SchemaProps: spec.SchemaProps{ 2475 Default: map[string]interface{}{}, 2476 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference"), 2477 }, 2478 }, 2479 }, 2480 }, 2481 }, 2482 "finalizers": { 2483 VendorExtensible: spec.VendorExtensible{ 2484 Extensions: spec.Extensions{ 2485 "x-kubernetes-patch-strategy": "merge", 2486 }, 2487 }, 2488 SchemaProps: spec.SchemaProps{ 2489 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.", 2490 Type: []string{"array"}, 2491 Items: &spec.SchemaOrArray{ 2492 Schema: &spec.Schema{ 2493 SchemaProps: spec.SchemaProps{ 2494 Default: "", 2495 Type: []string{"string"}, 2496 Format: "", 2497 }, 2498 }, 2499 }, 2500 }, 2501 }, 2502 "managedFields": { 2503 SchemaProps: spec.SchemaProps{ 2504 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.", 2505 Type: []string{"array"}, 2506 Items: &spec.SchemaOrArray{ 2507 Schema: &spec.Schema{ 2508 SchemaProps: spec.SchemaProps{ 2509 Default: map[string]interface{}{}, 2510 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry"), 2511 }, 2512 }, 2513 }, 2514 }, 2515 }, 2516 }, 2517 }, 2518 }, 2519 Dependencies: []string{ 2520 "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry", "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 2521 } 2522 } 2523 2524 func schema_pkg_apis_meta_v1_OwnerReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 2525 return common.OpenAPIDefinition{ 2526 Schema: spec.Schema{ 2527 SchemaProps: spec.SchemaProps{ 2528 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.", 2529 Type: []string{"object"}, 2530 Properties: map[string]spec.Schema{ 2531 "apiVersion": { 2532 SchemaProps: spec.SchemaProps{ 2533 Description: "API version of the referent.", 2534 Default: "", 2535 Type: []string{"string"}, 2536 Format: "", 2537 }, 2538 }, 2539 "kind": { 2540 SchemaProps: spec.SchemaProps{ 2541 Description: "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 2542 Default: "", 2543 Type: []string{"string"}, 2544 Format: "", 2545 }, 2546 }, 2547 "name": { 2548 SchemaProps: spec.SchemaProps{ 2549 Description: "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", 2550 Default: "", 2551 Type: []string{"string"}, 2552 Format: "", 2553 }, 2554 }, 2555 "uid": { 2556 SchemaProps: spec.SchemaProps{ 2557 Description: "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", 2558 Default: "", 2559 Type: []string{"string"}, 2560 Format: "", 2561 }, 2562 }, 2563 "controller": { 2564 SchemaProps: spec.SchemaProps{ 2565 Description: "If true, this reference points to the managing controller.", 2566 Type: []string{"boolean"}, 2567 Format: "", 2568 }, 2569 }, 2570 "blockOwnerDeletion": { 2571 SchemaProps: spec.SchemaProps{ 2572 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.", 2573 Type: []string{"boolean"}, 2574 Format: "", 2575 }, 2576 }, 2577 }, 2578 Required: []string{"apiVersion", "kind", "name", "uid"}, 2579 }, 2580 VendorExtensible: spec.VendorExtensible{ 2581 Extensions: spec.Extensions{ 2582 "x-kubernetes-map-type": "atomic", 2583 }, 2584 }, 2585 }, 2586 } 2587 } 2588 2589 func schema_pkg_apis_meta_v1_PartialObjectMetadata(ref common.ReferenceCallback) common.OpenAPIDefinition { 2590 return common.OpenAPIDefinition{ 2591 Schema: spec.Schema{ 2592 SchemaProps: spec.SchemaProps{ 2593 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.", 2594 Type: []string{"object"}, 2595 Properties: map[string]spec.Schema{ 2596 "kind": { 2597 SchemaProps: spec.SchemaProps{ 2598 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", 2599 Type: []string{"string"}, 2600 Format: "", 2601 }, 2602 }, 2603 "apiVersion": { 2604 SchemaProps: spec.SchemaProps{ 2605 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", 2606 Type: []string{"string"}, 2607 Format: "", 2608 }, 2609 }, 2610 "metadata": { 2611 SchemaProps: spec.SchemaProps{ 2612 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 2613 Default: map[string]interface{}{}, 2614 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 2615 }, 2616 }, 2617 }, 2618 }, 2619 }, 2620 Dependencies: []string{ 2621 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 2622 } 2623 } 2624 2625 func schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref common.ReferenceCallback) common.OpenAPIDefinition { 2626 return common.OpenAPIDefinition{ 2627 Schema: spec.Schema{ 2628 SchemaProps: spec.SchemaProps{ 2629 Description: "PartialObjectMetadataList contains a list of objects containing only their metadata", 2630 Type: []string{"object"}, 2631 Properties: map[string]spec.Schema{ 2632 "kind": { 2633 SchemaProps: spec.SchemaProps{ 2634 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", 2635 Type: []string{"string"}, 2636 Format: "", 2637 }, 2638 }, 2639 "apiVersion": { 2640 SchemaProps: spec.SchemaProps{ 2641 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", 2642 Type: []string{"string"}, 2643 Format: "", 2644 }, 2645 }, 2646 "metadata": { 2647 SchemaProps: spec.SchemaProps{ 2648 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 2649 Default: map[string]interface{}{}, 2650 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 2651 }, 2652 }, 2653 "items": { 2654 SchemaProps: spec.SchemaProps{ 2655 Description: "items contains each of the included items.", 2656 Type: []string{"array"}, 2657 Items: &spec.SchemaOrArray{ 2658 Schema: &spec.Schema{ 2659 SchemaProps: spec.SchemaProps{ 2660 Default: map[string]interface{}{}, 2661 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata"), 2662 }, 2663 }, 2664 }, 2665 }, 2666 }, 2667 }, 2668 Required: []string{"items"}, 2669 }, 2670 }, 2671 Dependencies: []string{ 2672 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata"}, 2673 } 2674 } 2675 2676 func schema_pkg_apis_meta_v1_Patch(ref common.ReferenceCallback) common.OpenAPIDefinition { 2677 return common.OpenAPIDefinition{ 2678 Schema: spec.Schema{ 2679 SchemaProps: spec.SchemaProps{ 2680 Description: "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", 2681 Type: []string{"object"}, 2682 }, 2683 }, 2684 } 2685 } 2686 2687 func schema_pkg_apis_meta_v1_PatchOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 2688 return common.OpenAPIDefinition{ 2689 Schema: spec.Schema{ 2690 SchemaProps: spec.SchemaProps{ 2691 Description: "PatchOptions may be provided when patching an API object. PatchOptions is meant to be a superset of UpdateOptions.", 2692 Type: []string{"object"}, 2693 Properties: map[string]spec.Schema{ 2694 "kind": { 2695 SchemaProps: spec.SchemaProps{ 2696 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", 2697 Type: []string{"string"}, 2698 Format: "", 2699 }, 2700 }, 2701 "apiVersion": { 2702 SchemaProps: spec.SchemaProps{ 2703 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", 2704 Type: []string{"string"}, 2705 Format: "", 2706 }, 2707 }, 2708 "dryRun": { 2709 SchemaProps: spec.SchemaProps{ 2710 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", 2711 Type: []string{"array"}, 2712 Items: &spec.SchemaOrArray{ 2713 Schema: &spec.Schema{ 2714 SchemaProps: spec.SchemaProps{ 2715 Default: "", 2716 Type: []string{"string"}, 2717 Format: "", 2718 }, 2719 }, 2720 }, 2721 }, 2722 }, 2723 "force": { 2724 SchemaProps: spec.SchemaProps{ 2725 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.", 2726 Type: []string{"boolean"}, 2727 Format: "", 2728 }, 2729 }, 2730 "fieldManager": { 2731 SchemaProps: spec.SchemaProps{ 2732 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).", 2733 Type: []string{"string"}, 2734 Format: "", 2735 }, 2736 }, 2737 "fieldValidation": { 2738 SchemaProps: spec.SchemaProps{ 2739 Description: "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", 2740 Type: []string{"string"}, 2741 Format: "", 2742 }, 2743 }, 2744 }, 2745 }, 2746 }, 2747 } 2748 } 2749 2750 func schema_pkg_apis_meta_v1_Preconditions(ref common.ReferenceCallback) common.OpenAPIDefinition { 2751 return common.OpenAPIDefinition{ 2752 Schema: spec.Schema{ 2753 SchemaProps: spec.SchemaProps{ 2754 Description: "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", 2755 Type: []string{"object"}, 2756 Properties: map[string]spec.Schema{ 2757 "uid": { 2758 SchemaProps: spec.SchemaProps{ 2759 Description: "Specifies the target UID.", 2760 Type: []string{"string"}, 2761 Format: "", 2762 }, 2763 }, 2764 "resourceVersion": { 2765 SchemaProps: spec.SchemaProps{ 2766 Description: "Specifies the target ResourceVersion", 2767 Type: []string{"string"}, 2768 Format: "", 2769 }, 2770 }, 2771 }, 2772 }, 2773 }, 2774 } 2775 } 2776 2777 func schema_pkg_apis_meta_v1_RootPaths(ref common.ReferenceCallback) common.OpenAPIDefinition { 2778 return common.OpenAPIDefinition{ 2779 Schema: spec.Schema{ 2780 SchemaProps: spec.SchemaProps{ 2781 Description: "RootPaths lists the paths available at root. For example: \"/healthz\", \"/apis\".", 2782 Type: []string{"object"}, 2783 Properties: map[string]spec.Schema{ 2784 "paths": { 2785 SchemaProps: spec.SchemaProps{ 2786 Description: "paths are the paths available at root.", 2787 Type: []string{"array"}, 2788 Items: &spec.SchemaOrArray{ 2789 Schema: &spec.Schema{ 2790 SchemaProps: spec.SchemaProps{ 2791 Default: "", 2792 Type: []string{"string"}, 2793 Format: "", 2794 }, 2795 }, 2796 }, 2797 }, 2798 }, 2799 }, 2800 Required: []string{"paths"}, 2801 }, 2802 }, 2803 } 2804 } 2805 2806 func schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref common.ReferenceCallback) common.OpenAPIDefinition { 2807 return common.OpenAPIDefinition{ 2808 Schema: spec.Schema{ 2809 SchemaProps: spec.SchemaProps{ 2810 Description: "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", 2811 Type: []string{"object"}, 2812 Properties: map[string]spec.Schema{ 2813 "clientCIDR": { 2814 SchemaProps: spec.SchemaProps{ 2815 Description: "The CIDR with which clients can match their IP to figure out the server address that they should use.", 2816 Default: "", 2817 Type: []string{"string"}, 2818 Format: "", 2819 }, 2820 }, 2821 "serverAddress": { 2822 SchemaProps: spec.SchemaProps{ 2823 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.", 2824 Default: "", 2825 Type: []string{"string"}, 2826 Format: "", 2827 }, 2828 }, 2829 }, 2830 Required: []string{"clientCIDR", "serverAddress"}, 2831 }, 2832 }, 2833 } 2834 } 2835 2836 func schema_pkg_apis_meta_v1_Status(ref common.ReferenceCallback) common.OpenAPIDefinition { 2837 return common.OpenAPIDefinition{ 2838 Schema: spec.Schema{ 2839 SchemaProps: spec.SchemaProps{ 2840 Description: "Status is a return value for calls that don't return other objects.", 2841 Type: []string{"object"}, 2842 Properties: map[string]spec.Schema{ 2843 "kind": { 2844 SchemaProps: spec.SchemaProps{ 2845 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", 2846 Type: []string{"string"}, 2847 Format: "", 2848 }, 2849 }, 2850 "apiVersion": { 2851 SchemaProps: spec.SchemaProps{ 2852 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", 2853 Type: []string{"string"}, 2854 Format: "", 2855 }, 2856 }, 2857 "metadata": { 2858 SchemaProps: spec.SchemaProps{ 2859 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 2860 Default: map[string]interface{}{}, 2861 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 2862 }, 2863 }, 2864 "status": { 2865 SchemaProps: spec.SchemaProps{ 2866 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", 2867 Type: []string{"string"}, 2868 Format: "", 2869 }, 2870 }, 2871 "message": { 2872 SchemaProps: spec.SchemaProps{ 2873 Description: "A human-readable description of the status of this operation.", 2874 Type: []string{"string"}, 2875 Format: "", 2876 }, 2877 }, 2878 "reason": { 2879 SchemaProps: spec.SchemaProps{ 2880 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.", 2881 Type: []string{"string"}, 2882 Format: "", 2883 }, 2884 }, 2885 "details": { 2886 SchemaProps: spec.SchemaProps{ 2887 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.", 2888 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails"), 2889 }, 2890 }, 2891 "code": { 2892 SchemaProps: spec.SchemaProps{ 2893 Description: "Suggested HTTP return code for this status, 0 if not set.", 2894 Type: []string{"integer"}, 2895 Format: "int32", 2896 }, 2897 }, 2898 }, 2899 }, 2900 }, 2901 Dependencies: []string{ 2902 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails"}, 2903 } 2904 } 2905 2906 func schema_pkg_apis_meta_v1_StatusCause(ref common.ReferenceCallback) common.OpenAPIDefinition { 2907 return common.OpenAPIDefinition{ 2908 Schema: spec.Schema{ 2909 SchemaProps: spec.SchemaProps{ 2910 Description: "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", 2911 Type: []string{"object"}, 2912 Properties: map[string]spec.Schema{ 2913 "reason": { 2914 SchemaProps: spec.SchemaProps{ 2915 Description: "A machine-readable description of the cause of the error. If this value is empty there is no information available.", 2916 Type: []string{"string"}, 2917 Format: "", 2918 }, 2919 }, 2920 "message": { 2921 SchemaProps: spec.SchemaProps{ 2922 Description: "A human-readable description of the cause of the error. This field may be presented as-is to a reader.", 2923 Type: []string{"string"}, 2924 Format: "", 2925 }, 2926 }, 2927 "field": { 2928 SchemaProps: spec.SchemaProps{ 2929 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\"", 2930 Type: []string{"string"}, 2931 Format: "", 2932 }, 2933 }, 2934 }, 2935 }, 2936 }, 2937 } 2938 } 2939 2940 func schema_pkg_apis_meta_v1_StatusDetails(ref common.ReferenceCallback) common.OpenAPIDefinition { 2941 return common.OpenAPIDefinition{ 2942 Schema: spec.Schema{ 2943 SchemaProps: spec.SchemaProps{ 2944 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.", 2945 Type: []string{"object"}, 2946 Properties: map[string]spec.Schema{ 2947 "name": { 2948 SchemaProps: spec.SchemaProps{ 2949 Description: "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).", 2950 Type: []string{"string"}, 2951 Format: "", 2952 }, 2953 }, 2954 "group": { 2955 SchemaProps: spec.SchemaProps{ 2956 Description: "The group attribute of the resource associated with the status StatusReason.", 2957 Type: []string{"string"}, 2958 Format: "", 2959 }, 2960 }, 2961 "kind": { 2962 SchemaProps: spec.SchemaProps{ 2963 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", 2964 Type: []string{"string"}, 2965 Format: "", 2966 }, 2967 }, 2968 "uid": { 2969 SchemaProps: spec.SchemaProps{ 2970 Description: "UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids", 2971 Type: []string{"string"}, 2972 Format: "", 2973 }, 2974 }, 2975 "causes": { 2976 SchemaProps: spec.SchemaProps{ 2977 Description: "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", 2978 Type: []string{"array"}, 2979 Items: &spec.SchemaOrArray{ 2980 Schema: &spec.Schema{ 2981 SchemaProps: spec.SchemaProps{ 2982 Default: map[string]interface{}{}, 2983 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause"), 2984 }, 2985 }, 2986 }, 2987 }, 2988 }, 2989 "retryAfterSeconds": { 2990 SchemaProps: spec.SchemaProps{ 2991 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.", 2992 Type: []string{"integer"}, 2993 Format: "int32", 2994 }, 2995 }, 2996 }, 2997 }, 2998 }, 2999 Dependencies: []string{ 3000 "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause"}, 3001 } 3002 } 3003 3004 func schema_pkg_apis_meta_v1_Table(ref common.ReferenceCallback) common.OpenAPIDefinition { 3005 return common.OpenAPIDefinition{ 3006 Schema: spec.Schema{ 3007 SchemaProps: spec.SchemaProps{ 3008 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.", 3009 Type: []string{"object"}, 3010 Properties: map[string]spec.Schema{ 3011 "kind": { 3012 SchemaProps: spec.SchemaProps{ 3013 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", 3014 Type: []string{"string"}, 3015 Format: "", 3016 }, 3017 }, 3018 "apiVersion": { 3019 SchemaProps: spec.SchemaProps{ 3020 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", 3021 Type: []string{"string"}, 3022 Format: "", 3023 }, 3024 }, 3025 "metadata": { 3026 SchemaProps: spec.SchemaProps{ 3027 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 3028 Default: map[string]interface{}{}, 3029 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 3030 }, 3031 }, 3032 "columnDefinitions": { 3033 SchemaProps: spec.SchemaProps{ 3034 Description: "columnDefinitions describes each column in the returned items array. The number of cells per row will always match the number of column definitions.", 3035 Type: []string{"array"}, 3036 Items: &spec.SchemaOrArray{ 3037 Schema: &spec.Schema{ 3038 SchemaProps: spec.SchemaProps{ 3039 Default: map[string]interface{}{}, 3040 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition"), 3041 }, 3042 }, 3043 }, 3044 }, 3045 }, 3046 "rows": { 3047 SchemaProps: spec.SchemaProps{ 3048 Description: "rows is the list of items in the table.", 3049 Type: []string{"array"}, 3050 Items: &spec.SchemaOrArray{ 3051 Schema: &spec.Schema{ 3052 SchemaProps: spec.SchemaProps{ 3053 Default: map[string]interface{}{}, 3054 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableRow"), 3055 }, 3056 }, 3057 }, 3058 }, 3059 }, 3060 }, 3061 Required: []string{"columnDefinitions", "rows"}, 3062 }, 3063 }, 3064 Dependencies: []string{ 3065 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition", "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow"}, 3066 } 3067 } 3068 3069 func schema_pkg_apis_meta_v1_TableColumnDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { 3070 return common.OpenAPIDefinition{ 3071 Schema: spec.Schema{ 3072 SchemaProps: spec.SchemaProps{ 3073 Description: "TableColumnDefinition contains information about a column returned in the Table.", 3074 Type: []string{"object"}, 3075 Properties: map[string]spec.Schema{ 3076 "name": { 3077 SchemaProps: spec.SchemaProps{ 3078 Description: "name is a human readable name for the column.", 3079 Default: "", 3080 Type: []string{"string"}, 3081 Format: "", 3082 }, 3083 }, 3084 "type": { 3085 SchemaProps: spec.SchemaProps{ 3086 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.", 3087 Default: "", 3088 Type: []string{"string"}, 3089 Format: "", 3090 }, 3091 }, 3092 "format": { 3093 SchemaProps: spec.SchemaProps{ 3094 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.", 3095 Default: "", 3096 Type: []string{"string"}, 3097 Format: "", 3098 }, 3099 }, 3100 "description": { 3101 SchemaProps: spec.SchemaProps{ 3102 Description: "description is a human readable description of this column.", 3103 Default: "", 3104 Type: []string{"string"}, 3105 Format: "", 3106 }, 3107 }, 3108 "priority": { 3109 SchemaProps: spec.SchemaProps{ 3110 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.", 3111 Default: 0, 3112 Type: []string{"integer"}, 3113 Format: "int32", 3114 }, 3115 }, 3116 }, 3117 Required: []string{"name", "type", "format", "description", "priority"}, 3118 }, 3119 }, 3120 } 3121 } 3122 3123 func schema_pkg_apis_meta_v1_TableOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 3124 return common.OpenAPIDefinition{ 3125 Schema: spec.Schema{ 3126 SchemaProps: spec.SchemaProps{ 3127 Description: "TableOptions are used when a Table is requested by the caller.", 3128 Type: []string{"object"}, 3129 Properties: map[string]spec.Schema{ 3130 "kind": { 3131 SchemaProps: spec.SchemaProps{ 3132 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", 3133 Type: []string{"string"}, 3134 Format: "", 3135 }, 3136 }, 3137 "apiVersion": { 3138 SchemaProps: spec.SchemaProps{ 3139 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", 3140 Type: []string{"string"}, 3141 Format: "", 3142 }, 3143 }, 3144 "includeObject": { 3145 SchemaProps: spec.SchemaProps{ 3146 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.", 3147 Type: []string{"string"}, 3148 Format: "", 3149 }, 3150 }, 3151 }, 3152 }, 3153 }, 3154 } 3155 } 3156 3157 func schema_pkg_apis_meta_v1_TableRow(ref common.ReferenceCallback) common.OpenAPIDefinition { 3158 return common.OpenAPIDefinition{ 3159 Schema: spec.Schema{ 3160 SchemaProps: spec.SchemaProps{ 3161 Description: "TableRow is an individual row in a table.", 3162 Type: []string{"object"}, 3163 Properties: map[string]spec.Schema{ 3164 "cells": { 3165 SchemaProps: spec.SchemaProps{ 3166 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.", 3167 Type: []string{"array"}, 3168 Items: &spec.SchemaOrArray{ 3169 Schema: &spec.Schema{ 3170 SchemaProps: spec.SchemaProps{ 3171 Type: []string{"object"}, 3172 Format: "", 3173 }, 3174 }, 3175 }, 3176 }, 3177 }, 3178 "conditions": { 3179 SchemaProps: spec.SchemaProps{ 3180 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.", 3181 Type: []string{"array"}, 3182 Items: &spec.SchemaOrArray{ 3183 Schema: &spec.Schema{ 3184 SchemaProps: spec.SchemaProps{ 3185 Default: map[string]interface{}{}, 3186 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition"), 3187 }, 3188 }, 3189 }, 3190 }, 3191 }, 3192 "object": { 3193 SchemaProps: spec.SchemaProps{ 3194 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.", 3195 Default: map[string]interface{}{}, 3196 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), 3197 }, 3198 }, 3199 }, 3200 Required: []string{"cells"}, 3201 }, 3202 }, 3203 Dependencies: []string{ 3204 "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, 3205 } 3206 } 3207 3208 func schema_pkg_apis_meta_v1_TableRowCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 3209 return common.OpenAPIDefinition{ 3210 Schema: spec.Schema{ 3211 SchemaProps: spec.SchemaProps{ 3212 Description: "TableRowCondition allows a row to be marked with additional information.", 3213 Type: []string{"object"}, 3214 Properties: map[string]spec.Schema{ 3215 "type": { 3216 SchemaProps: spec.SchemaProps{ 3217 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.", 3218 Default: "", 3219 Type: []string{"string"}, 3220 Format: "", 3221 }, 3222 }, 3223 "status": { 3224 SchemaProps: spec.SchemaProps{ 3225 Description: "Status of the condition, one of True, False, Unknown.", 3226 Default: "", 3227 Type: []string{"string"}, 3228 Format: "", 3229 }, 3230 }, 3231 "reason": { 3232 SchemaProps: spec.SchemaProps{ 3233 Description: "(brief) machine readable reason for the condition's last transition.", 3234 Type: []string{"string"}, 3235 Format: "", 3236 }, 3237 }, 3238 "message": { 3239 SchemaProps: spec.SchemaProps{ 3240 Description: "Human readable message indicating details about last transition.", 3241 Type: []string{"string"}, 3242 Format: "", 3243 }, 3244 }, 3245 }, 3246 Required: []string{"type", "status"}, 3247 }, 3248 }, 3249 } 3250 } 3251 3252 func schema_pkg_apis_meta_v1_Time(ref common.ReferenceCallback) common.OpenAPIDefinition { 3253 return common.OpenAPIDefinition{ 3254 Schema: spec.Schema{ 3255 SchemaProps: spec.SchemaProps{ 3256 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.", 3257 Type: v1.Time{}.OpenAPISchemaType(), 3258 Format: v1.Time{}.OpenAPISchemaFormat(), 3259 }, 3260 }, 3261 } 3262 } 3263 3264 func schema_pkg_apis_meta_v1_Timestamp(ref common.ReferenceCallback) common.OpenAPIDefinition { 3265 return common.OpenAPIDefinition{ 3266 Schema: spec.Schema{ 3267 SchemaProps: spec.SchemaProps{ 3268 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.", 3269 Type: []string{"object"}, 3270 Properties: map[string]spec.Schema{ 3271 "seconds": { 3272 SchemaProps: spec.SchemaProps{ 3273 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.", 3274 Default: 0, 3275 Type: []string{"integer"}, 3276 Format: "int64", 3277 }, 3278 }, 3279 "nanos": { 3280 SchemaProps: spec.SchemaProps{ 3281 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.", 3282 Default: 0, 3283 Type: []string{"integer"}, 3284 Format: "int32", 3285 }, 3286 }, 3287 }, 3288 Required: []string{"seconds", "nanos"}, 3289 }, 3290 }, 3291 } 3292 } 3293 3294 func schema_pkg_apis_meta_v1_TypeMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { 3295 return common.OpenAPIDefinition{ 3296 Schema: spec.Schema{ 3297 SchemaProps: spec.SchemaProps{ 3298 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.", 3299 Type: []string{"object"}, 3300 Properties: map[string]spec.Schema{ 3301 "kind": { 3302 SchemaProps: spec.SchemaProps{ 3303 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", 3304 Type: []string{"string"}, 3305 Format: "", 3306 }, 3307 }, 3308 "apiVersion": { 3309 SchemaProps: spec.SchemaProps{ 3310 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", 3311 Type: []string{"string"}, 3312 Format: "", 3313 }, 3314 }, 3315 }, 3316 }, 3317 }, 3318 } 3319 } 3320 3321 func schema_pkg_apis_meta_v1_UpdateOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 3322 return common.OpenAPIDefinition{ 3323 Schema: spec.Schema{ 3324 SchemaProps: spec.SchemaProps{ 3325 Description: "UpdateOptions may be provided when updating an API object. All fields in UpdateOptions should also be present in PatchOptions.", 3326 Type: []string{"object"}, 3327 Properties: map[string]spec.Schema{ 3328 "kind": { 3329 SchemaProps: spec.SchemaProps{ 3330 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", 3331 Type: []string{"string"}, 3332 Format: "", 3333 }, 3334 }, 3335 "apiVersion": { 3336 SchemaProps: spec.SchemaProps{ 3337 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", 3338 Type: []string{"string"}, 3339 Format: "", 3340 }, 3341 }, 3342 "dryRun": { 3343 SchemaProps: spec.SchemaProps{ 3344 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", 3345 Type: []string{"array"}, 3346 Items: &spec.SchemaOrArray{ 3347 Schema: &spec.Schema{ 3348 SchemaProps: spec.SchemaProps{ 3349 Default: "", 3350 Type: []string{"string"}, 3351 Format: "", 3352 }, 3353 }, 3354 }, 3355 }, 3356 }, 3357 "fieldManager": { 3358 SchemaProps: spec.SchemaProps{ 3359 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.", 3360 Type: []string{"string"}, 3361 Format: "", 3362 }, 3363 }, 3364 "fieldValidation": { 3365 SchemaProps: spec.SchemaProps{ 3366 Description: "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", 3367 Type: []string{"string"}, 3368 Format: "", 3369 }, 3370 }, 3371 }, 3372 }, 3373 }, 3374 } 3375 } 3376 3377 func schema_pkg_apis_meta_v1_WatchEvent(ref common.ReferenceCallback) common.OpenAPIDefinition { 3378 return common.OpenAPIDefinition{ 3379 Schema: spec.Schema{ 3380 SchemaProps: spec.SchemaProps{ 3381 Description: "Event represents a single event to a watched resource.", 3382 Type: []string{"object"}, 3383 Properties: map[string]spec.Schema{ 3384 "type": { 3385 SchemaProps: spec.SchemaProps{ 3386 Default: "", 3387 Type: []string{"string"}, 3388 Format: "", 3389 }, 3390 }, 3391 "object": { 3392 SchemaProps: spec.SchemaProps{ 3393 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.", 3394 Default: map[string]interface{}{}, 3395 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), 3396 }, 3397 }, 3398 }, 3399 Required: []string{"type", "object"}, 3400 }, 3401 }, 3402 Dependencies: []string{ 3403 "k8s.io/apimachinery/pkg/runtime.RawExtension"}, 3404 } 3405 } 3406 3407 func schema_apimachinery_pkg_util_intstr_IntOrString(ref common.ReferenceCallback) common.OpenAPIDefinition { 3408 return common.EmbedOpenAPIDefinitionIntoV2Extension(common.OpenAPIDefinition{ 3409 Schema: spec.Schema{ 3410 SchemaProps: spec.SchemaProps{ 3411 Description: "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.", 3412 OneOf: common.GenerateOpenAPIV3OneOfSchema(intstr.IntOrString{}.OpenAPIV3OneOfTypes()), 3413 Format: intstr.IntOrString{}.OpenAPISchemaFormat(), 3414 }, 3415 }, 3416 }, common.OpenAPIDefinition{ 3417 Schema: spec.Schema{ 3418 SchemaProps: spec.SchemaProps{ 3419 Description: "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.", 3420 Type: intstr.IntOrString{}.OpenAPISchemaType(), 3421 Format: intstr.IntOrString{}.OpenAPISchemaFormat(), 3422 }, 3423 }, 3424 }) 3425 } 3426 3427 func schema_kubesphereio_api_network_v1alpha1_AllocationAttribute(ref common.ReferenceCallback) common.OpenAPIDefinition { 3428 return common.OpenAPIDefinition{ 3429 Schema: spec.Schema{ 3430 SchemaProps: spec.SchemaProps{ 3431 Type: []string{"object"}, 3432 Properties: map[string]spec.Schema{ 3433 "handle_id": { 3434 SchemaProps: spec.SchemaProps{ 3435 Type: []string{"string"}, 3436 Format: "", 3437 }, 3438 }, 3439 "secondary": { 3440 SchemaProps: spec.SchemaProps{ 3441 Type: []string{"object"}, 3442 AdditionalProperties: &spec.SchemaOrBool{ 3443 Allows: true, 3444 Schema: &spec.Schema{ 3445 SchemaProps: spec.SchemaProps{ 3446 Default: "", 3447 Type: []string{"string"}, 3448 Format: "", 3449 }, 3450 }, 3451 }, 3452 }, 3453 }, 3454 }, 3455 }, 3456 }, 3457 } 3458 } 3459 3460 func schema_kubesphereio_api_network_v1alpha1_DNS(ref common.ReferenceCallback) common.OpenAPIDefinition { 3461 return common.OpenAPIDefinition{ 3462 Schema: spec.Schema{ 3463 SchemaProps: spec.SchemaProps{ 3464 Description: "DNS contains values interesting for DNS resolvers", 3465 Type: []string{"object"}, 3466 Properties: map[string]spec.Schema{ 3467 "nameservers": { 3468 SchemaProps: spec.SchemaProps{ 3469 Type: []string{"array"}, 3470 Items: &spec.SchemaOrArray{ 3471 Schema: &spec.Schema{ 3472 SchemaProps: spec.SchemaProps{ 3473 Default: "", 3474 Type: []string{"string"}, 3475 Format: "", 3476 }, 3477 }, 3478 }, 3479 }, 3480 }, 3481 "domain": { 3482 SchemaProps: spec.SchemaProps{ 3483 Type: []string{"string"}, 3484 Format: "", 3485 }, 3486 }, 3487 "search": { 3488 SchemaProps: spec.SchemaProps{ 3489 Type: []string{"array"}, 3490 Items: &spec.SchemaOrArray{ 3491 Schema: &spec.Schema{ 3492 SchemaProps: spec.SchemaProps{ 3493 Default: "", 3494 Type: []string{"string"}, 3495 Format: "", 3496 }, 3497 }, 3498 }, 3499 }, 3500 }, 3501 "options": { 3502 SchemaProps: spec.SchemaProps{ 3503 Type: []string{"array"}, 3504 Items: &spec.SchemaOrArray{ 3505 Schema: &spec.Schema{ 3506 SchemaProps: spec.SchemaProps{ 3507 Default: "", 3508 Type: []string{"string"}, 3509 Format: "", 3510 }, 3511 }, 3512 }, 3513 }, 3514 }, 3515 }, 3516 }, 3517 }, 3518 } 3519 } 3520 3521 func schema_kubesphereio_api_network_v1alpha1_IPAMBlock(ref common.ReferenceCallback) common.OpenAPIDefinition { 3522 return common.OpenAPIDefinition{ 3523 Schema: spec.Schema{ 3524 SchemaProps: spec.SchemaProps{ 3525 Type: []string{"object"}, 3526 Properties: map[string]spec.Schema{ 3527 "kind": { 3528 SchemaProps: spec.SchemaProps{ 3529 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", 3530 Type: []string{"string"}, 3531 Format: "", 3532 }, 3533 }, 3534 "apiVersion": { 3535 SchemaProps: spec.SchemaProps{ 3536 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", 3537 Type: []string{"string"}, 3538 Format: "", 3539 }, 3540 }, 3541 "metadata": { 3542 SchemaProps: spec.SchemaProps{ 3543 Default: map[string]interface{}{}, 3544 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 3545 }, 3546 }, 3547 "spec": { 3548 SchemaProps: spec.SchemaProps{ 3549 Description: "Specification of the IPAMBlock.", 3550 Default: map[string]interface{}{}, 3551 Ref: ref("kubesphere.io/api/network/v1alpha1.IPAMBlockSpec"), 3552 }, 3553 }, 3554 }, 3555 }, 3556 }, 3557 Dependencies: []string{ 3558 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kubesphere.io/api/network/v1alpha1.IPAMBlockSpec"}, 3559 } 3560 } 3561 3562 func schema_kubesphereio_api_network_v1alpha1_IPAMBlockList(ref common.ReferenceCallback) common.OpenAPIDefinition { 3563 return common.OpenAPIDefinition{ 3564 Schema: spec.Schema{ 3565 SchemaProps: spec.SchemaProps{ 3566 Type: []string{"object"}, 3567 Properties: map[string]spec.Schema{ 3568 "kind": { 3569 SchemaProps: spec.SchemaProps{ 3570 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", 3571 Type: []string{"string"}, 3572 Format: "", 3573 }, 3574 }, 3575 "apiVersion": { 3576 SchemaProps: spec.SchemaProps{ 3577 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", 3578 Type: []string{"string"}, 3579 Format: "", 3580 }, 3581 }, 3582 "metadata": { 3583 SchemaProps: spec.SchemaProps{ 3584 Default: map[string]interface{}{}, 3585 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 3586 }, 3587 }, 3588 "items": { 3589 SchemaProps: spec.SchemaProps{ 3590 Type: []string{"array"}, 3591 Items: &spec.SchemaOrArray{ 3592 Schema: &spec.Schema{ 3593 SchemaProps: spec.SchemaProps{ 3594 Default: map[string]interface{}{}, 3595 Ref: ref("kubesphere.io/api/network/v1alpha1.IPAMBlock"), 3596 }, 3597 }, 3598 }, 3599 }, 3600 }, 3601 }, 3602 Required: []string{"metadata", "items"}, 3603 }, 3604 }, 3605 Dependencies: []string{ 3606 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubesphere.io/api/network/v1alpha1.IPAMBlock"}, 3607 } 3608 } 3609 3610 func schema_kubesphereio_api_network_v1alpha1_IPAMBlockSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 3611 return common.OpenAPIDefinition{ 3612 Schema: spec.Schema{ 3613 SchemaProps: spec.SchemaProps{ 3614 Description: "IPAMBlockSpec contains the specification for an IPAMBlock resource.", 3615 Type: []string{"object"}, 3616 Properties: map[string]spec.Schema{ 3617 "id": { 3618 SchemaProps: spec.SchemaProps{ 3619 Default: 0, 3620 Type: []string{"integer"}, 3621 Format: "int64", 3622 }, 3623 }, 3624 "cidr": { 3625 SchemaProps: spec.SchemaProps{ 3626 Default: "", 3627 Type: []string{"string"}, 3628 Format: "", 3629 }, 3630 }, 3631 "allocations": { 3632 SchemaProps: spec.SchemaProps{ 3633 Type: []string{"array"}, 3634 Items: &spec.SchemaOrArray{ 3635 Schema: &spec.Schema{ 3636 SchemaProps: spec.SchemaProps{ 3637 Type: []string{"integer"}, 3638 Format: "int32", 3639 }, 3640 }, 3641 }, 3642 }, 3643 }, 3644 "unallocated": { 3645 SchemaProps: spec.SchemaProps{ 3646 Type: []string{"array"}, 3647 Items: &spec.SchemaOrArray{ 3648 Schema: &spec.Schema{ 3649 SchemaProps: spec.SchemaProps{ 3650 Default: 0, 3651 Type: []string{"integer"}, 3652 Format: "int32", 3653 }, 3654 }, 3655 }, 3656 }, 3657 }, 3658 "attributes": { 3659 SchemaProps: spec.SchemaProps{ 3660 Type: []string{"array"}, 3661 Items: &spec.SchemaOrArray{ 3662 Schema: &spec.Schema{ 3663 SchemaProps: spec.SchemaProps{ 3664 Default: map[string]interface{}{}, 3665 Ref: ref("kubesphere.io/api/network/v1alpha1.AllocationAttribute"), 3666 }, 3667 }, 3668 }, 3669 }, 3670 }, 3671 "deleted": { 3672 SchemaProps: spec.SchemaProps{ 3673 Default: false, 3674 Type: []string{"boolean"}, 3675 Format: "", 3676 }, 3677 }, 3678 }, 3679 Required: []string{"id", "cidr", "allocations", "unallocated", "attributes", "deleted"}, 3680 }, 3681 }, 3682 Dependencies: []string{ 3683 "kubesphere.io/api/network/v1alpha1.AllocationAttribute"}, 3684 } 3685 } 3686 3687 func schema_kubesphereio_api_network_v1alpha1_IPAMHandle(ref common.ReferenceCallback) common.OpenAPIDefinition { 3688 return common.OpenAPIDefinition{ 3689 Schema: spec.Schema{ 3690 SchemaProps: spec.SchemaProps{ 3691 Type: []string{"object"}, 3692 Properties: map[string]spec.Schema{ 3693 "kind": { 3694 SchemaProps: spec.SchemaProps{ 3695 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", 3696 Type: []string{"string"}, 3697 Format: "", 3698 }, 3699 }, 3700 "apiVersion": { 3701 SchemaProps: spec.SchemaProps{ 3702 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", 3703 Type: []string{"string"}, 3704 Format: "", 3705 }, 3706 }, 3707 "metadata": { 3708 SchemaProps: spec.SchemaProps{ 3709 Default: map[string]interface{}{}, 3710 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 3711 }, 3712 }, 3713 "spec": { 3714 SchemaProps: spec.SchemaProps{ 3715 Description: "Specification of the IPAMHandle.", 3716 Default: map[string]interface{}{}, 3717 Ref: ref("kubesphere.io/api/network/v1alpha1.IPAMHandleSpec"), 3718 }, 3719 }, 3720 }, 3721 }, 3722 }, 3723 Dependencies: []string{ 3724 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kubesphere.io/api/network/v1alpha1.IPAMHandleSpec"}, 3725 } 3726 } 3727 3728 func schema_kubesphereio_api_network_v1alpha1_IPAMHandleList(ref common.ReferenceCallback) common.OpenAPIDefinition { 3729 return common.OpenAPIDefinition{ 3730 Schema: spec.Schema{ 3731 SchemaProps: spec.SchemaProps{ 3732 Type: []string{"object"}, 3733 Properties: map[string]spec.Schema{ 3734 "kind": { 3735 SchemaProps: spec.SchemaProps{ 3736 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", 3737 Type: []string{"string"}, 3738 Format: "", 3739 }, 3740 }, 3741 "apiVersion": { 3742 SchemaProps: spec.SchemaProps{ 3743 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", 3744 Type: []string{"string"}, 3745 Format: "", 3746 }, 3747 }, 3748 "metadata": { 3749 SchemaProps: spec.SchemaProps{ 3750 Default: map[string]interface{}{}, 3751 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 3752 }, 3753 }, 3754 "items": { 3755 SchemaProps: spec.SchemaProps{ 3756 Type: []string{"array"}, 3757 Items: &spec.SchemaOrArray{ 3758 Schema: &spec.Schema{ 3759 SchemaProps: spec.SchemaProps{ 3760 Default: map[string]interface{}{}, 3761 Ref: ref("kubesphere.io/api/network/v1alpha1.IPAMHandle"), 3762 }, 3763 }, 3764 }, 3765 }, 3766 }, 3767 }, 3768 Required: []string{"metadata", "items"}, 3769 }, 3770 }, 3771 Dependencies: []string{ 3772 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubesphere.io/api/network/v1alpha1.IPAMHandle"}, 3773 } 3774 } 3775 3776 func schema_kubesphereio_api_network_v1alpha1_IPAMHandleSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 3777 return common.OpenAPIDefinition{ 3778 Schema: spec.Schema{ 3779 SchemaProps: spec.SchemaProps{ 3780 Description: "IPAMHandleSpec contains the specification for an IPAMHandle resource.", 3781 Type: []string{"object"}, 3782 Properties: map[string]spec.Schema{ 3783 "handleID": { 3784 SchemaProps: spec.SchemaProps{ 3785 Default: "", 3786 Type: []string{"string"}, 3787 Format: "", 3788 }, 3789 }, 3790 "block": { 3791 SchemaProps: spec.SchemaProps{ 3792 Type: []string{"object"}, 3793 AdditionalProperties: &spec.SchemaOrBool{ 3794 Allows: true, 3795 Schema: &spec.Schema{ 3796 SchemaProps: spec.SchemaProps{ 3797 Default: 0, 3798 Type: []string{"integer"}, 3799 Format: "int32", 3800 }, 3801 }, 3802 }, 3803 }, 3804 }, 3805 "deleted": { 3806 SchemaProps: spec.SchemaProps{ 3807 Default: false, 3808 Type: []string{"boolean"}, 3809 Format: "", 3810 }, 3811 }, 3812 }, 3813 Required: []string{"handleID", "block", "deleted"}, 3814 }, 3815 }, 3816 } 3817 } 3818 3819 func schema_kubesphereio_api_network_v1alpha1_IPPool(ref common.ReferenceCallback) common.OpenAPIDefinition { 3820 return common.OpenAPIDefinition{ 3821 Schema: spec.Schema{ 3822 SchemaProps: spec.SchemaProps{ 3823 Type: []string{"object"}, 3824 Properties: map[string]spec.Schema{ 3825 "kind": { 3826 SchemaProps: spec.SchemaProps{ 3827 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", 3828 Type: []string{"string"}, 3829 Format: "", 3830 }, 3831 }, 3832 "apiVersion": { 3833 SchemaProps: spec.SchemaProps{ 3834 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", 3835 Type: []string{"string"}, 3836 Format: "", 3837 }, 3838 }, 3839 "metadata": { 3840 SchemaProps: spec.SchemaProps{ 3841 Default: map[string]interface{}{}, 3842 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 3843 }, 3844 }, 3845 "spec": { 3846 SchemaProps: spec.SchemaProps{ 3847 Default: map[string]interface{}{}, 3848 Ref: ref("kubesphere.io/api/network/v1alpha1.IPPoolSpec"), 3849 }, 3850 }, 3851 "status": { 3852 SchemaProps: spec.SchemaProps{ 3853 Default: map[string]interface{}{}, 3854 Ref: ref("kubesphere.io/api/network/v1alpha1.IPPoolStatus"), 3855 }, 3856 }, 3857 }, 3858 }, 3859 }, 3860 Dependencies: []string{ 3861 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kubesphere.io/api/network/v1alpha1.IPPoolSpec", "kubesphere.io/api/network/v1alpha1.IPPoolStatus"}, 3862 } 3863 } 3864 3865 func schema_kubesphereio_api_network_v1alpha1_IPPoolList(ref common.ReferenceCallback) common.OpenAPIDefinition { 3866 return common.OpenAPIDefinition{ 3867 Schema: spec.Schema{ 3868 SchemaProps: spec.SchemaProps{ 3869 Type: []string{"object"}, 3870 Properties: map[string]spec.Schema{ 3871 "kind": { 3872 SchemaProps: spec.SchemaProps{ 3873 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", 3874 Type: []string{"string"}, 3875 Format: "", 3876 }, 3877 }, 3878 "apiVersion": { 3879 SchemaProps: spec.SchemaProps{ 3880 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", 3881 Type: []string{"string"}, 3882 Format: "", 3883 }, 3884 }, 3885 "metadata": { 3886 SchemaProps: spec.SchemaProps{ 3887 Default: map[string]interface{}{}, 3888 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 3889 }, 3890 }, 3891 "items": { 3892 SchemaProps: spec.SchemaProps{ 3893 Type: []string{"array"}, 3894 Items: &spec.SchemaOrArray{ 3895 Schema: &spec.Schema{ 3896 SchemaProps: spec.SchemaProps{ 3897 Default: map[string]interface{}{}, 3898 Ref: ref("kubesphere.io/api/network/v1alpha1.IPPool"), 3899 }, 3900 }, 3901 }, 3902 }, 3903 }, 3904 }, 3905 Required: []string{"items"}, 3906 }, 3907 }, 3908 Dependencies: []string{ 3909 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubesphere.io/api/network/v1alpha1.IPPool"}, 3910 } 3911 } 3912 3913 func schema_kubesphereio_api_network_v1alpha1_IPPoolSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 3914 return common.OpenAPIDefinition{ 3915 Schema: spec.Schema{ 3916 SchemaProps: spec.SchemaProps{ 3917 Type: []string{"object"}, 3918 Properties: map[string]spec.Schema{ 3919 "type": { 3920 SchemaProps: spec.SchemaProps{ 3921 Default: "", 3922 Type: []string{"string"}, 3923 Format: "", 3924 }, 3925 }, 3926 "cidr": { 3927 SchemaProps: spec.SchemaProps{ 3928 Description: "The pool CIDR.", 3929 Default: "", 3930 Type: []string{"string"}, 3931 Format: "", 3932 }, 3933 }, 3934 "rangeStart": { 3935 SchemaProps: spec.SchemaProps{ 3936 Description: "The first ip, inclusive", 3937 Type: []string{"string"}, 3938 Format: "", 3939 }, 3940 }, 3941 "rangeEnd": { 3942 SchemaProps: spec.SchemaProps{ 3943 Description: "The last ip, inclusive", 3944 Type: []string{"string"}, 3945 Format: "", 3946 }, 3947 }, 3948 "disabled": { 3949 SchemaProps: spec.SchemaProps{ 3950 Description: "When disabled is true, IPAM will not assign addresses from this pool.", 3951 Type: []string{"boolean"}, 3952 Format: "", 3953 }, 3954 }, 3955 "blockSize": { 3956 SchemaProps: spec.SchemaProps{ 3957 Description: "The block size to use for IP address assignments from this pool. Defaults to 26 for IPv4 and 112 for IPv6.", 3958 Type: []string{"integer"}, 3959 Format: "int32", 3960 }, 3961 }, 3962 "vlanConfig": { 3963 SchemaProps: spec.SchemaProps{ 3964 Default: map[string]interface{}{}, 3965 Ref: ref("kubesphere.io/api/network/v1alpha1.VLANConfig"), 3966 }, 3967 }, 3968 "gateway": { 3969 SchemaProps: spec.SchemaProps{ 3970 Type: []string{"string"}, 3971 Format: "", 3972 }, 3973 }, 3974 "routes": { 3975 SchemaProps: spec.SchemaProps{ 3976 Type: []string{"array"}, 3977 Items: &spec.SchemaOrArray{ 3978 Schema: &spec.Schema{ 3979 SchemaProps: spec.SchemaProps{ 3980 Default: map[string]interface{}{}, 3981 Ref: ref("kubesphere.io/api/network/v1alpha1.Route"), 3982 }, 3983 }, 3984 }, 3985 }, 3986 }, 3987 "dns": { 3988 SchemaProps: spec.SchemaProps{ 3989 Default: map[string]interface{}{}, 3990 Ref: ref("kubesphere.io/api/network/v1alpha1.DNS"), 3991 }, 3992 }, 3993 }, 3994 Required: []string{"type", "cidr"}, 3995 }, 3996 }, 3997 Dependencies: []string{ 3998 "kubesphere.io/api/network/v1alpha1.DNS", "kubesphere.io/api/network/v1alpha1.Route", "kubesphere.io/api/network/v1alpha1.VLANConfig"}, 3999 } 4000 } 4001 4002 func schema_kubesphereio_api_network_v1alpha1_IPPoolStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 4003 return common.OpenAPIDefinition{ 4004 Schema: spec.Schema{ 4005 SchemaProps: spec.SchemaProps{ 4006 Type: []string{"object"}, 4007 Properties: map[string]spec.Schema{ 4008 "unallocated": { 4009 SchemaProps: spec.SchemaProps{ 4010 Default: 0, 4011 Type: []string{"integer"}, 4012 Format: "int32", 4013 }, 4014 }, 4015 "allocations": { 4016 SchemaProps: spec.SchemaProps{ 4017 Default: 0, 4018 Type: []string{"integer"}, 4019 Format: "int32", 4020 }, 4021 }, 4022 "capacity": { 4023 SchemaProps: spec.SchemaProps{ 4024 Default: 0, 4025 Type: []string{"integer"}, 4026 Format: "int32", 4027 }, 4028 }, 4029 "reserved": { 4030 SchemaProps: spec.SchemaProps{ 4031 Type: []string{"integer"}, 4032 Format: "int32", 4033 }, 4034 }, 4035 "synced": { 4036 SchemaProps: spec.SchemaProps{ 4037 Type: []string{"boolean"}, 4038 Format: "", 4039 }, 4040 }, 4041 "workspaces": { 4042 SchemaProps: spec.SchemaProps{ 4043 Type: []string{"object"}, 4044 AdditionalProperties: &spec.SchemaOrBool{ 4045 Allows: true, 4046 Schema: &spec.Schema{ 4047 SchemaProps: spec.SchemaProps{ 4048 Default: map[string]interface{}{}, 4049 Ref: ref("kubesphere.io/api/network/v1alpha1.WorkspaceStatus"), 4050 }, 4051 }, 4052 }, 4053 }, 4054 }, 4055 }, 4056 Required: []string{"unallocated", "allocations", "capacity"}, 4057 }, 4058 }, 4059 Dependencies: []string{ 4060 "kubesphere.io/api/network/v1alpha1.WorkspaceStatus"}, 4061 } 4062 } 4063 4064 func schema_kubesphereio_api_network_v1alpha1_NamespaceNetworkPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { 4065 return common.OpenAPIDefinition{ 4066 Schema: spec.Schema{ 4067 SchemaProps: spec.SchemaProps{ 4068 Description: "NamespaceNetworkPolicy is the Schema for the namespacenetworkpolicies API", 4069 Type: []string{"object"}, 4070 Properties: map[string]spec.Schema{ 4071 "kind": { 4072 SchemaProps: spec.SchemaProps{ 4073 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", 4074 Type: []string{"string"}, 4075 Format: "", 4076 }, 4077 }, 4078 "apiVersion": { 4079 SchemaProps: spec.SchemaProps{ 4080 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", 4081 Type: []string{"string"}, 4082 Format: "", 4083 }, 4084 }, 4085 "metadata": { 4086 SchemaProps: spec.SchemaProps{ 4087 Default: map[string]interface{}{}, 4088 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 4089 }, 4090 }, 4091 "spec": { 4092 SchemaProps: spec.SchemaProps{ 4093 Default: map[string]interface{}{}, 4094 Ref: ref("kubesphere.io/api/network/v1alpha1.NamespaceNetworkPolicySpec"), 4095 }, 4096 }, 4097 }, 4098 }, 4099 }, 4100 Dependencies: []string{ 4101 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kubesphere.io/api/network/v1alpha1.NamespaceNetworkPolicySpec"}, 4102 } 4103 } 4104 4105 func schema_kubesphereio_api_network_v1alpha1_NamespaceNetworkPolicyList(ref common.ReferenceCallback) common.OpenAPIDefinition { 4106 return common.OpenAPIDefinition{ 4107 Schema: spec.Schema{ 4108 SchemaProps: spec.SchemaProps{ 4109 Description: "NamespaceNetworkPolicyList contains a list of NamespaceNetworkPolicy", 4110 Type: []string{"object"}, 4111 Properties: map[string]spec.Schema{ 4112 "kind": { 4113 SchemaProps: spec.SchemaProps{ 4114 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", 4115 Type: []string{"string"}, 4116 Format: "", 4117 }, 4118 }, 4119 "apiVersion": { 4120 SchemaProps: spec.SchemaProps{ 4121 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", 4122 Type: []string{"string"}, 4123 Format: "", 4124 }, 4125 }, 4126 "metadata": { 4127 SchemaProps: spec.SchemaProps{ 4128 Default: map[string]interface{}{}, 4129 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 4130 }, 4131 }, 4132 "items": { 4133 SchemaProps: spec.SchemaProps{ 4134 Type: []string{"array"}, 4135 Items: &spec.SchemaOrArray{ 4136 Schema: &spec.Schema{ 4137 SchemaProps: spec.SchemaProps{ 4138 Default: map[string]interface{}{}, 4139 Ref: ref("kubesphere.io/api/network/v1alpha1.NamespaceNetworkPolicy"), 4140 }, 4141 }, 4142 }, 4143 }, 4144 }, 4145 }, 4146 Required: []string{"items"}, 4147 }, 4148 }, 4149 Dependencies: []string{ 4150 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubesphere.io/api/network/v1alpha1.NamespaceNetworkPolicy"}, 4151 } 4152 } 4153 4154 func schema_kubesphereio_api_network_v1alpha1_NamespaceNetworkPolicySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 4155 return common.OpenAPIDefinition{ 4156 Schema: spec.Schema{ 4157 SchemaProps: spec.SchemaProps{ 4158 Description: "NamespaceNetworkPolicySpec provides the specification of a NamespaceNetworkPolicy", 4159 Type: []string{"object"}, 4160 Properties: map[string]spec.Schema{ 4161 "ingress": { 4162 SchemaProps: spec.SchemaProps{ 4163 Description: "List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default)", 4164 Type: []string{"array"}, 4165 Items: &spec.SchemaOrArray{ 4166 Schema: &spec.Schema{ 4167 SchemaProps: spec.SchemaProps{ 4168 Default: map[string]interface{}{}, 4169 Ref: ref("kubesphere.io/api/network/v1alpha1.NetworkPolicyIngressRule"), 4170 }, 4171 }, 4172 }, 4173 }, 4174 }, 4175 "egress": { 4176 SchemaProps: spec.SchemaProps{ 4177 Description: "List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8", 4178 Type: []string{"array"}, 4179 Items: &spec.SchemaOrArray{ 4180 Schema: &spec.Schema{ 4181 SchemaProps: spec.SchemaProps{ 4182 Default: map[string]interface{}{}, 4183 Ref: ref("kubesphere.io/api/network/v1alpha1.NetworkPolicyEgressRule"), 4184 }, 4185 }, 4186 }, 4187 }, 4188 }, 4189 "policyTypes": { 4190 SchemaProps: spec.SchemaProps{ 4191 Description: "List of rule types that the NetworkPolicy relates to. Valid options are \"Ingress\", \"Egress\", or \"Ingress,Egress\". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an Egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8", 4192 Type: []string{"array"}, 4193 Items: &spec.SchemaOrArray{ 4194 Schema: &spec.Schema{ 4195 SchemaProps: spec.SchemaProps{ 4196 Default: "", 4197 Type: []string{"string"}, 4198 Format: "", 4199 }, 4200 }, 4201 }, 4202 }, 4203 }, 4204 }, 4205 }, 4206 }, 4207 Dependencies: []string{ 4208 "kubesphere.io/api/network/v1alpha1.NetworkPolicyEgressRule", "kubesphere.io/api/network/v1alpha1.NetworkPolicyIngressRule"}, 4209 } 4210 } 4211 4212 func schema_kubesphereio_api_network_v1alpha1_NamespaceSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 4213 return common.OpenAPIDefinition{ 4214 Schema: spec.Schema{ 4215 SchemaProps: spec.SchemaProps{ 4216 Type: []string{"object"}, 4217 Properties: map[string]spec.Schema{ 4218 "name": { 4219 SchemaProps: spec.SchemaProps{ 4220 Default: "", 4221 Type: []string{"string"}, 4222 Format: "", 4223 }, 4224 }, 4225 }, 4226 Required: []string{"name"}, 4227 }, 4228 }, 4229 } 4230 } 4231 4232 func schema_kubesphereio_api_network_v1alpha1_NetworkPolicyEgressRule(ref common.ReferenceCallback) common.OpenAPIDefinition { 4233 return common.OpenAPIDefinition{ 4234 Schema: spec.Schema{ 4235 SchemaProps: spec.SchemaProps{ 4236 Description: "NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8", 4237 Type: []string{"object"}, 4238 Properties: map[string]spec.Schema{ 4239 "ports": { 4240 SchemaProps: spec.SchemaProps{ 4241 Description: "List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.", 4242 Type: []string{"array"}, 4243 Items: &spec.SchemaOrArray{ 4244 Schema: &spec.Schema{ 4245 SchemaProps: spec.SchemaProps{ 4246 Default: map[string]interface{}{}, 4247 Ref: ref("k8s.io/api/networking/v1.NetworkPolicyPort"), 4248 }, 4249 }, 4250 }, 4251 }, 4252 }, 4253 "to": { 4254 SchemaProps: spec.SchemaProps{ 4255 Description: "List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list.", 4256 Type: []string{"array"}, 4257 Items: &spec.SchemaOrArray{ 4258 Schema: &spec.Schema{ 4259 SchemaProps: spec.SchemaProps{ 4260 Default: map[string]interface{}{}, 4261 Ref: ref("kubesphere.io/api/network/v1alpha1.NetworkPolicyPeer"), 4262 }, 4263 }, 4264 }, 4265 }, 4266 }, 4267 }, 4268 }, 4269 }, 4270 Dependencies: []string{ 4271 "k8s.io/api/networking/v1.NetworkPolicyPort", "kubesphere.io/api/network/v1alpha1.NetworkPolicyPeer"}, 4272 } 4273 } 4274 4275 func schema_kubesphereio_api_network_v1alpha1_NetworkPolicyIngressRule(ref common.ReferenceCallback) common.OpenAPIDefinition { 4276 return common.OpenAPIDefinition{ 4277 Schema: spec.Schema{ 4278 SchemaProps: spec.SchemaProps{ 4279 Description: "NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.", 4280 Type: []string{"object"}, 4281 Properties: map[string]spec.Schema{ 4282 "ports": { 4283 SchemaProps: spec.SchemaProps{ 4284 Description: "List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.", 4285 Type: []string{"array"}, 4286 Items: &spec.SchemaOrArray{ 4287 Schema: &spec.Schema{ 4288 SchemaProps: spec.SchemaProps{ 4289 Default: map[string]interface{}{}, 4290 Ref: ref("k8s.io/api/networking/v1.NetworkPolicyPort"), 4291 }, 4292 }, 4293 }, 4294 }, 4295 }, 4296 "from": { 4297 SchemaProps: spec.SchemaProps{ 4298 Description: "List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list.", 4299 Type: []string{"array"}, 4300 Items: &spec.SchemaOrArray{ 4301 Schema: &spec.Schema{ 4302 SchemaProps: spec.SchemaProps{ 4303 Default: map[string]interface{}{}, 4304 Ref: ref("kubesphere.io/api/network/v1alpha1.NetworkPolicyPeer"), 4305 }, 4306 }, 4307 }, 4308 }, 4309 }, 4310 }, 4311 }, 4312 }, 4313 Dependencies: []string{ 4314 "k8s.io/api/networking/v1.NetworkPolicyPort", "kubesphere.io/api/network/v1alpha1.NetworkPolicyPeer"}, 4315 } 4316 } 4317 4318 func schema_kubesphereio_api_network_v1alpha1_NetworkPolicyPeer(ref common.ReferenceCallback) common.OpenAPIDefinition { 4319 return common.OpenAPIDefinition{ 4320 Schema: spec.Schema{ 4321 SchemaProps: spec.SchemaProps{ 4322 Description: "NetworkPolicyPeer describes a peer to allow traffic from. Only certain combinations of fields are allowed", 4323 Type: []string{"object"}, 4324 Properties: map[string]spec.Schema{ 4325 "namespace": { 4326 SchemaProps: spec.SchemaProps{ 4327 Ref: ref("kubesphere.io/api/network/v1alpha1.NamespaceSelector"), 4328 }, 4329 }, 4330 "ipBlock": { 4331 SchemaProps: spec.SchemaProps{ 4332 Description: "IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be.", 4333 Ref: ref("k8s.io/api/networking/v1.IPBlock"), 4334 }, 4335 }, 4336 "service": { 4337 SchemaProps: spec.SchemaProps{ 4338 Ref: ref("kubesphere.io/api/network/v1alpha1.ServiceSelector"), 4339 }, 4340 }, 4341 }, 4342 }, 4343 }, 4344 Dependencies: []string{ 4345 "k8s.io/api/networking/v1.IPBlock", "kubesphere.io/api/network/v1alpha1.NamespaceSelector", "kubesphere.io/api/network/v1alpha1.ServiceSelector"}, 4346 } 4347 } 4348 4349 func schema_kubesphereio_api_network_v1alpha1_ReservedAttr(ref common.ReferenceCallback) common.OpenAPIDefinition { 4350 return common.OpenAPIDefinition{ 4351 Schema: spec.Schema{ 4352 SchemaProps: spec.SchemaProps{ 4353 Type: []string{"object"}, 4354 Properties: map[string]spec.Schema{ 4355 "StartOfBlock": { 4356 SchemaProps: spec.SchemaProps{ 4357 Description: "Number of addresses reserved from start of the block.", 4358 Default: 0, 4359 Type: []string{"integer"}, 4360 Format: "int32", 4361 }, 4362 }, 4363 "EndOfBlock": { 4364 SchemaProps: spec.SchemaProps{ 4365 Description: "Number of addresses reserved from end of the block.", 4366 Default: 0, 4367 Type: []string{"integer"}, 4368 Format: "int32", 4369 }, 4370 }, 4371 "Handle": { 4372 SchemaProps: spec.SchemaProps{ 4373 Description: "Handle for reserved addresses.", 4374 Default: "", 4375 Type: []string{"string"}, 4376 Format: "", 4377 }, 4378 }, 4379 "Note": { 4380 SchemaProps: spec.SchemaProps{ 4381 Description: "A description about the reserves.", 4382 Default: "", 4383 Type: []string{"string"}, 4384 Format: "", 4385 }, 4386 }, 4387 }, 4388 Required: []string{"StartOfBlock", "EndOfBlock", "Handle", "Note"}, 4389 }, 4390 }, 4391 } 4392 } 4393 4394 func schema_kubesphereio_api_network_v1alpha1_Route(ref common.ReferenceCallback) common.OpenAPIDefinition { 4395 return common.OpenAPIDefinition{ 4396 Schema: spec.Schema{ 4397 SchemaProps: spec.SchemaProps{ 4398 Type: []string{"object"}, 4399 Properties: map[string]spec.Schema{ 4400 "dst": { 4401 SchemaProps: spec.SchemaProps{ 4402 Type: []string{"string"}, 4403 Format: "", 4404 }, 4405 }, 4406 "gateway": { 4407 SchemaProps: spec.SchemaProps{ 4408 Type: []string{"string"}, 4409 Format: "", 4410 }, 4411 }, 4412 }, 4413 }, 4414 }, 4415 } 4416 } 4417 4418 func schema_kubesphereio_api_network_v1alpha1_ServiceSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 4419 return common.OpenAPIDefinition{ 4420 Schema: spec.Schema{ 4421 SchemaProps: spec.SchemaProps{ 4422 Type: []string{"object"}, 4423 Properties: map[string]spec.Schema{ 4424 "name": { 4425 SchemaProps: spec.SchemaProps{ 4426 Default: "", 4427 Type: []string{"string"}, 4428 Format: "", 4429 }, 4430 }, 4431 "namespace": { 4432 SchemaProps: spec.SchemaProps{ 4433 Default: "", 4434 Type: []string{"string"}, 4435 Format: "", 4436 }, 4437 }, 4438 }, 4439 Required: []string{"name", "namespace"}, 4440 }, 4441 }, 4442 } 4443 } 4444 4445 func schema_kubesphereio_api_network_v1alpha1_VLANConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 4446 return common.OpenAPIDefinition{ 4447 Schema: spec.Schema{ 4448 SchemaProps: spec.SchemaProps{ 4449 Type: []string{"object"}, 4450 Properties: map[string]spec.Schema{ 4451 "vlanId": { 4452 SchemaProps: spec.SchemaProps{ 4453 Default: 0, 4454 Type: []string{"integer"}, 4455 Format: "int64", 4456 }, 4457 }, 4458 "master": { 4459 SchemaProps: spec.SchemaProps{ 4460 Default: "", 4461 Type: []string{"string"}, 4462 Format: "", 4463 }, 4464 }, 4465 }, 4466 Required: []string{"vlanId", "master"}, 4467 }, 4468 }, 4469 } 4470 } 4471 4472 func schema_kubesphereio_api_network_v1alpha1_WorkspaceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 4473 return common.OpenAPIDefinition{ 4474 Schema: spec.Schema{ 4475 SchemaProps: spec.SchemaProps{ 4476 Type: []string{"object"}, 4477 Properties: map[string]spec.Schema{ 4478 "allocations": { 4479 SchemaProps: spec.SchemaProps{ 4480 Default: 0, 4481 Type: []string{"integer"}, 4482 Format: "int32", 4483 }, 4484 }, 4485 }, 4486 Required: []string{"allocations"}, 4487 }, 4488 }, 4489 } 4490 }