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