sigs.k8s.io/cluster-api@v1.7.1/exp/runtime/hooks/api/v1alpha1/zz_generated.openapi.go (about) 1 //go:build !ignore_autogenerated 2 // +build !ignore_autogenerated 3 4 /* 5 Copyright The Kubernetes Authors. 6 7 Licensed under the Apache License, Version 2.0 (the "License"); 8 you may not use this file except in compliance with the License. 9 You may obtain a copy of the License at 10 11 http://www.apache.org/licenses/LICENSE-2.0 12 13 Unless required by applicable law or agreed to in writing, software 14 distributed under the License is distributed on an "AS IS" BASIS, 15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 See the License for the specific language governing permissions and 17 limitations under the License. 18 */ 19 20 // Code generated by openapi-gen. DO NOT EDIT. 21 22 package v1alpha1 23 24 import ( 25 common "k8s.io/kube-openapi/pkg/common" 26 spec "k8s.io/kube-openapi/pkg/validation/spec" 27 ) 28 29 func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { 30 return map[string]common.OpenAPIDefinition{ 31 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.AfterClusterUpgradeRequest": schema_runtime_hooks_api_v1alpha1_AfterClusterUpgradeRequest(ref), 32 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.AfterClusterUpgradeResponse": schema_runtime_hooks_api_v1alpha1_AfterClusterUpgradeResponse(ref), 33 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.AfterControlPlaneInitializedRequest": schema_runtime_hooks_api_v1alpha1_AfterControlPlaneInitializedRequest(ref), 34 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.AfterControlPlaneInitializedResponse": schema_runtime_hooks_api_v1alpha1_AfterControlPlaneInitializedResponse(ref), 35 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.AfterControlPlaneUpgradeRequest": schema_runtime_hooks_api_v1alpha1_AfterControlPlaneUpgradeRequest(ref), 36 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.AfterControlPlaneUpgradeResponse": schema_runtime_hooks_api_v1alpha1_AfterControlPlaneUpgradeResponse(ref), 37 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.BeforeClusterCreateRequest": schema_runtime_hooks_api_v1alpha1_BeforeClusterCreateRequest(ref), 38 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.BeforeClusterCreateResponse": schema_runtime_hooks_api_v1alpha1_BeforeClusterCreateResponse(ref), 39 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.BeforeClusterDeleteRequest": schema_runtime_hooks_api_v1alpha1_BeforeClusterDeleteRequest(ref), 40 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.BeforeClusterDeleteResponse": schema_runtime_hooks_api_v1alpha1_BeforeClusterDeleteResponse(ref), 41 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.BeforeClusterUpgradeRequest": schema_runtime_hooks_api_v1alpha1_BeforeClusterUpgradeRequest(ref), 42 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.BeforeClusterUpgradeResponse": schema_runtime_hooks_api_v1alpha1_BeforeClusterUpgradeResponse(ref), 43 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.Builtins": schema_runtime_hooks_api_v1alpha1_Builtins(ref), 44 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ClusterBuiltins": schema_runtime_hooks_api_v1alpha1_ClusterBuiltins(ref), 45 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ClusterNetworkBuiltins": schema_runtime_hooks_api_v1alpha1_ClusterNetworkBuiltins(ref), 46 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ClusterTopologyBuiltins": schema_runtime_hooks_api_v1alpha1_ClusterTopologyBuiltins(ref), 47 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.CommonRequest": schema_runtime_hooks_api_v1alpha1_CommonRequest(ref), 48 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.CommonResponse": schema_runtime_hooks_api_v1alpha1_CommonResponse(ref), 49 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.CommonRetryResponse": schema_runtime_hooks_api_v1alpha1_CommonRetryResponse(ref), 50 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ControlPlaneBuiltins": schema_runtime_hooks_api_v1alpha1_ControlPlaneBuiltins(ref), 51 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ControlPlaneMachineTemplateBuiltins": schema_runtime_hooks_api_v1alpha1_ControlPlaneMachineTemplateBuiltins(ref), 52 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ControlPlaneMachineTemplateInfrastructureRefBuiltins": schema_runtime_hooks_api_v1alpha1_ControlPlaneMachineTemplateInfrastructureRefBuiltins(ref), 53 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.DiscoverVariablesRequest": schema_runtime_hooks_api_v1alpha1_DiscoverVariablesRequest(ref), 54 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.DiscoverVariablesResponse": schema_runtime_hooks_api_v1alpha1_DiscoverVariablesResponse(ref), 55 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.DiscoveryRequest": schema_runtime_hooks_api_v1alpha1_DiscoveryRequest(ref), 56 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.DiscoveryResponse": schema_runtime_hooks_api_v1alpha1_DiscoveryResponse(ref), 57 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ExtensionHandler": schema_runtime_hooks_api_v1alpha1_ExtensionHandler(ref), 58 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.GeneratePatchesRequest": schema_runtime_hooks_api_v1alpha1_GeneratePatchesRequest(ref), 59 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.GeneratePatchesRequestItem": schema_runtime_hooks_api_v1alpha1_GeneratePatchesRequestItem(ref), 60 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.GeneratePatchesResponse": schema_runtime_hooks_api_v1alpha1_GeneratePatchesResponse(ref), 61 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.GeneratePatchesResponseItem": schema_runtime_hooks_api_v1alpha1_GeneratePatchesResponseItem(ref), 62 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.GroupVersionHook": schema_runtime_hooks_api_v1alpha1_GroupVersionHook(ref), 63 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.HolderReference": schema_runtime_hooks_api_v1alpha1_HolderReference(ref), 64 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.MachineBootstrapBuiltins": schema_runtime_hooks_api_v1alpha1_MachineBootstrapBuiltins(ref), 65 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.MachineBootstrapConfigRefBuiltins": schema_runtime_hooks_api_v1alpha1_MachineBootstrapConfigRefBuiltins(ref), 66 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.MachineDeploymentBuiltins": schema_runtime_hooks_api_v1alpha1_MachineDeploymentBuiltins(ref), 67 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.MachineInfrastructureRefBuiltins": schema_runtime_hooks_api_v1alpha1_MachineInfrastructureRefBuiltins(ref), 68 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.MachinePoolBuiltins": schema_runtime_hooks_api_v1alpha1_MachinePoolBuiltins(ref), 69 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ValidateTopologyRequest": schema_runtime_hooks_api_v1alpha1_ValidateTopologyRequest(ref), 70 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ValidateTopologyRequestItem": schema_runtime_hooks_api_v1alpha1_ValidateTopologyRequestItem(ref), 71 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ValidateTopologyResponse": schema_runtime_hooks_api_v1alpha1_ValidateTopologyResponse(ref), 72 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.Variable": schema_runtime_hooks_api_v1alpha1_Variable(ref), 73 } 74 } 75 76 func schema_runtime_hooks_api_v1alpha1_AfterClusterUpgradeRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { 77 return common.OpenAPIDefinition{ 78 Schema: spec.Schema{ 79 SchemaProps: spec.SchemaProps{ 80 Description: "AfterClusterUpgradeRequest is the request of the AfterClusterUpgrade hook.", 81 Type: []string{"object"}, 82 Properties: map[string]spec.Schema{ 83 "kind": { 84 SchemaProps: spec.SchemaProps{ 85 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 86 Type: []string{"string"}, 87 Format: "", 88 }, 89 }, 90 "apiVersion": { 91 SchemaProps: spec.SchemaProps{ 92 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 93 Type: []string{"string"}, 94 Format: "", 95 }, 96 }, 97 "settings": { 98 SchemaProps: spec.SchemaProps{ 99 Description: "Settings defines key value pairs to be passed to the call.", 100 Type: []string{"object"}, 101 AdditionalProperties: &spec.SchemaOrBool{ 102 Allows: true, 103 Schema: &spec.Schema{ 104 SchemaProps: spec.SchemaProps{ 105 Default: "", 106 Type: []string{"string"}, 107 Format: "", 108 }, 109 }, 110 }, 111 }, 112 }, 113 "cluster": { 114 SchemaProps: spec.SchemaProps{ 115 Description: "Cluster is the cluster object the lifecycle hook corresponds to.", 116 Default: map[string]interface{}{}, 117 Ref: ref("sigs.k8s.io/cluster-api/api/v1beta1.Cluster"), 118 }, 119 }, 120 "kubernetesVersion": { 121 SchemaProps: spec.SchemaProps{ 122 Description: "KubernetesVersion is the Kubernetes version after upgrade.", 123 Default: "", 124 Type: []string{"string"}, 125 Format: "", 126 }, 127 }, 128 }, 129 Required: []string{"cluster", "kubernetesVersion"}, 130 }, 131 }, 132 Dependencies: []string{ 133 "sigs.k8s.io/cluster-api/api/v1beta1.Cluster"}, 134 } 135 } 136 137 func schema_runtime_hooks_api_v1alpha1_AfterClusterUpgradeResponse(ref common.ReferenceCallback) common.OpenAPIDefinition { 138 return common.OpenAPIDefinition{ 139 Schema: spec.Schema{ 140 SchemaProps: spec.SchemaProps{ 141 Description: "AfterClusterUpgradeResponse is the response of the AfterClusterUpgrade hook.", 142 Type: []string{"object"}, 143 Properties: map[string]spec.Schema{ 144 "kind": { 145 SchemaProps: spec.SchemaProps{ 146 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 147 Type: []string{"string"}, 148 Format: "", 149 }, 150 }, 151 "apiVersion": { 152 SchemaProps: spec.SchemaProps{ 153 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 154 Type: []string{"string"}, 155 Format: "", 156 }, 157 }, 158 "status": { 159 SchemaProps: spec.SchemaProps{ 160 Description: "Status of the call. One of \"Success\" or \"Failure\".\n\nPossible enum values:\n - `\"Failure\"` represents a failure response.\n - `\"Success\"` represents a success response.", 161 Default: "", 162 Type: []string{"string"}, 163 Format: "", 164 Enum: []interface{}{"Failure", "Success"}, 165 }, 166 }, 167 "message": { 168 SchemaProps: spec.SchemaProps{ 169 Description: "A human-readable description of the status of the call.", 170 Default: "", 171 Type: []string{"string"}, 172 Format: "", 173 }, 174 }, 175 }, 176 Required: []string{"status", "message"}, 177 }, 178 }, 179 } 180 } 181 182 func schema_runtime_hooks_api_v1alpha1_AfterControlPlaneInitializedRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { 183 return common.OpenAPIDefinition{ 184 Schema: spec.Schema{ 185 SchemaProps: spec.SchemaProps{ 186 Description: "AfterControlPlaneInitializedRequest is the request of the AfterControlPlaneInitialized hook.", 187 Type: []string{"object"}, 188 Properties: map[string]spec.Schema{ 189 "kind": { 190 SchemaProps: spec.SchemaProps{ 191 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 192 Type: []string{"string"}, 193 Format: "", 194 }, 195 }, 196 "apiVersion": { 197 SchemaProps: spec.SchemaProps{ 198 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 199 Type: []string{"string"}, 200 Format: "", 201 }, 202 }, 203 "settings": { 204 SchemaProps: spec.SchemaProps{ 205 Description: "Settings defines key value pairs to be passed to the call.", 206 Type: []string{"object"}, 207 AdditionalProperties: &spec.SchemaOrBool{ 208 Allows: true, 209 Schema: &spec.Schema{ 210 SchemaProps: spec.SchemaProps{ 211 Default: "", 212 Type: []string{"string"}, 213 Format: "", 214 }, 215 }, 216 }, 217 }, 218 }, 219 "cluster": { 220 SchemaProps: spec.SchemaProps{ 221 Description: "Cluster is the cluster object the lifecycle hook corresponds to.", 222 Default: map[string]interface{}{}, 223 Ref: ref("sigs.k8s.io/cluster-api/api/v1beta1.Cluster"), 224 }, 225 }, 226 }, 227 Required: []string{"cluster"}, 228 }, 229 }, 230 Dependencies: []string{ 231 "sigs.k8s.io/cluster-api/api/v1beta1.Cluster"}, 232 } 233 } 234 235 func schema_runtime_hooks_api_v1alpha1_AfterControlPlaneInitializedResponse(ref common.ReferenceCallback) common.OpenAPIDefinition { 236 return common.OpenAPIDefinition{ 237 Schema: spec.Schema{ 238 SchemaProps: spec.SchemaProps{ 239 Description: "AfterControlPlaneInitializedResponse is the response of the AfterControlPlaneInitialized hook.", 240 Type: []string{"object"}, 241 Properties: map[string]spec.Schema{ 242 "kind": { 243 SchemaProps: spec.SchemaProps{ 244 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 245 Type: []string{"string"}, 246 Format: "", 247 }, 248 }, 249 "apiVersion": { 250 SchemaProps: spec.SchemaProps{ 251 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 252 Type: []string{"string"}, 253 Format: "", 254 }, 255 }, 256 "status": { 257 SchemaProps: spec.SchemaProps{ 258 Description: "Status of the call. One of \"Success\" or \"Failure\".\n\nPossible enum values:\n - `\"Failure\"` represents a failure response.\n - `\"Success\"` represents a success response.", 259 Default: "", 260 Type: []string{"string"}, 261 Format: "", 262 Enum: []interface{}{"Failure", "Success"}, 263 }, 264 }, 265 "message": { 266 SchemaProps: spec.SchemaProps{ 267 Description: "A human-readable description of the status of the call.", 268 Default: "", 269 Type: []string{"string"}, 270 Format: "", 271 }, 272 }, 273 }, 274 Required: []string{"status", "message"}, 275 }, 276 }, 277 } 278 } 279 280 func schema_runtime_hooks_api_v1alpha1_AfterControlPlaneUpgradeRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { 281 return common.OpenAPIDefinition{ 282 Schema: spec.Schema{ 283 SchemaProps: spec.SchemaProps{ 284 Description: "AfterControlPlaneUpgradeRequest is the request of the AfterControlPlaneUpgrade hook.", 285 Type: []string{"object"}, 286 Properties: map[string]spec.Schema{ 287 "kind": { 288 SchemaProps: spec.SchemaProps{ 289 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 290 Type: []string{"string"}, 291 Format: "", 292 }, 293 }, 294 "apiVersion": { 295 SchemaProps: spec.SchemaProps{ 296 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 297 Type: []string{"string"}, 298 Format: "", 299 }, 300 }, 301 "settings": { 302 SchemaProps: spec.SchemaProps{ 303 Description: "Settings defines key value pairs to be passed to the call.", 304 Type: []string{"object"}, 305 AdditionalProperties: &spec.SchemaOrBool{ 306 Allows: true, 307 Schema: &spec.Schema{ 308 SchemaProps: spec.SchemaProps{ 309 Default: "", 310 Type: []string{"string"}, 311 Format: "", 312 }, 313 }, 314 }, 315 }, 316 }, 317 "cluster": { 318 SchemaProps: spec.SchemaProps{ 319 Description: "Cluster is the cluster object the lifecycle hook corresponds to.", 320 Default: map[string]interface{}{}, 321 Ref: ref("sigs.k8s.io/cluster-api/api/v1beta1.Cluster"), 322 }, 323 }, 324 "kubernetesVersion": { 325 SchemaProps: spec.SchemaProps{ 326 Description: "KubernetesVersion is the Kubernetes version of the Control Plane after the upgrade.", 327 Default: "", 328 Type: []string{"string"}, 329 Format: "", 330 }, 331 }, 332 }, 333 Required: []string{"cluster", "kubernetesVersion"}, 334 }, 335 }, 336 Dependencies: []string{ 337 "sigs.k8s.io/cluster-api/api/v1beta1.Cluster"}, 338 } 339 } 340 341 func schema_runtime_hooks_api_v1alpha1_AfterControlPlaneUpgradeResponse(ref common.ReferenceCallback) common.OpenAPIDefinition { 342 return common.OpenAPIDefinition{ 343 Schema: spec.Schema{ 344 SchemaProps: spec.SchemaProps{ 345 Description: "AfterControlPlaneUpgradeResponse is the response of the AfterControlPlaneUpgrade hook.", 346 Type: []string{"object"}, 347 Properties: map[string]spec.Schema{ 348 "kind": { 349 SchemaProps: spec.SchemaProps{ 350 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 351 Type: []string{"string"}, 352 Format: "", 353 }, 354 }, 355 "apiVersion": { 356 SchemaProps: spec.SchemaProps{ 357 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 358 Type: []string{"string"}, 359 Format: "", 360 }, 361 }, 362 "status": { 363 SchemaProps: spec.SchemaProps{ 364 Description: "Status of the call. One of \"Success\" or \"Failure\".\n\nPossible enum values:\n - `\"Failure\"` represents a failure response.\n - `\"Success\"` represents a success response.", 365 Default: "", 366 Type: []string{"string"}, 367 Format: "", 368 Enum: []interface{}{"Failure", "Success"}, 369 }, 370 }, 371 "message": { 372 SchemaProps: spec.SchemaProps{ 373 Description: "A human-readable description of the status of the call.", 374 Default: "", 375 Type: []string{"string"}, 376 Format: "", 377 }, 378 }, 379 "retryAfterSeconds": { 380 SchemaProps: spec.SchemaProps{ 381 Description: "RetryAfterSeconds when set to a non-zero value signifies that the hook will be called again at a future time.", 382 Default: 0, 383 Type: []string{"integer"}, 384 Format: "int32", 385 }, 386 }, 387 }, 388 Required: []string{"status", "message", "retryAfterSeconds"}, 389 }, 390 }, 391 } 392 } 393 394 func schema_runtime_hooks_api_v1alpha1_BeforeClusterCreateRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { 395 return common.OpenAPIDefinition{ 396 Schema: spec.Schema{ 397 SchemaProps: spec.SchemaProps{ 398 Description: "BeforeClusterCreateRequest is the request of the BeforeClusterCreate hook.", 399 Type: []string{"object"}, 400 Properties: map[string]spec.Schema{ 401 "kind": { 402 SchemaProps: spec.SchemaProps{ 403 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 404 Type: []string{"string"}, 405 Format: "", 406 }, 407 }, 408 "apiVersion": { 409 SchemaProps: spec.SchemaProps{ 410 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 411 Type: []string{"string"}, 412 Format: "", 413 }, 414 }, 415 "settings": { 416 SchemaProps: spec.SchemaProps{ 417 Description: "Settings defines key value pairs to be passed to the call.", 418 Type: []string{"object"}, 419 AdditionalProperties: &spec.SchemaOrBool{ 420 Allows: true, 421 Schema: &spec.Schema{ 422 SchemaProps: spec.SchemaProps{ 423 Default: "", 424 Type: []string{"string"}, 425 Format: "", 426 }, 427 }, 428 }, 429 }, 430 }, 431 "cluster": { 432 SchemaProps: spec.SchemaProps{ 433 Description: "Cluster is the cluster object the lifecycle hook corresponds to.", 434 Default: map[string]interface{}{}, 435 Ref: ref("sigs.k8s.io/cluster-api/api/v1beta1.Cluster"), 436 }, 437 }, 438 }, 439 Required: []string{"cluster"}, 440 }, 441 }, 442 Dependencies: []string{ 443 "sigs.k8s.io/cluster-api/api/v1beta1.Cluster"}, 444 } 445 } 446 447 func schema_runtime_hooks_api_v1alpha1_BeforeClusterCreateResponse(ref common.ReferenceCallback) common.OpenAPIDefinition { 448 return common.OpenAPIDefinition{ 449 Schema: spec.Schema{ 450 SchemaProps: spec.SchemaProps{ 451 Description: "BeforeClusterCreateResponse is the response of the BeforeClusterCreate hook.", 452 Type: []string{"object"}, 453 Properties: map[string]spec.Schema{ 454 "kind": { 455 SchemaProps: spec.SchemaProps{ 456 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 457 Type: []string{"string"}, 458 Format: "", 459 }, 460 }, 461 "apiVersion": { 462 SchemaProps: spec.SchemaProps{ 463 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 464 Type: []string{"string"}, 465 Format: "", 466 }, 467 }, 468 "status": { 469 SchemaProps: spec.SchemaProps{ 470 Description: "Status of the call. One of \"Success\" or \"Failure\".\n\nPossible enum values:\n - `\"Failure\"` represents a failure response.\n - `\"Success\"` represents a success response.", 471 Default: "", 472 Type: []string{"string"}, 473 Format: "", 474 Enum: []interface{}{"Failure", "Success"}, 475 }, 476 }, 477 "message": { 478 SchemaProps: spec.SchemaProps{ 479 Description: "A human-readable description of the status of the call.", 480 Default: "", 481 Type: []string{"string"}, 482 Format: "", 483 }, 484 }, 485 "retryAfterSeconds": { 486 SchemaProps: spec.SchemaProps{ 487 Description: "RetryAfterSeconds when set to a non-zero value signifies that the hook will be called again at a future time.", 488 Default: 0, 489 Type: []string{"integer"}, 490 Format: "int32", 491 }, 492 }, 493 }, 494 Required: []string{"status", "message", "retryAfterSeconds"}, 495 }, 496 }, 497 } 498 } 499 500 func schema_runtime_hooks_api_v1alpha1_BeforeClusterDeleteRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { 501 return common.OpenAPIDefinition{ 502 Schema: spec.Schema{ 503 SchemaProps: spec.SchemaProps{ 504 Description: "BeforeClusterDeleteRequest is the request of the BeforeClusterDelete hook.", 505 Type: []string{"object"}, 506 Properties: map[string]spec.Schema{ 507 "kind": { 508 SchemaProps: spec.SchemaProps{ 509 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 510 Type: []string{"string"}, 511 Format: "", 512 }, 513 }, 514 "apiVersion": { 515 SchemaProps: spec.SchemaProps{ 516 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 517 Type: []string{"string"}, 518 Format: "", 519 }, 520 }, 521 "settings": { 522 SchemaProps: spec.SchemaProps{ 523 Description: "Settings defines key value pairs to be passed to the call.", 524 Type: []string{"object"}, 525 AdditionalProperties: &spec.SchemaOrBool{ 526 Allows: true, 527 Schema: &spec.Schema{ 528 SchemaProps: spec.SchemaProps{ 529 Default: "", 530 Type: []string{"string"}, 531 Format: "", 532 }, 533 }, 534 }, 535 }, 536 }, 537 "cluster": { 538 SchemaProps: spec.SchemaProps{ 539 Description: "Cluster is the cluster object the lifecycle hook corresponds to.", 540 Default: map[string]interface{}{}, 541 Ref: ref("sigs.k8s.io/cluster-api/api/v1beta1.Cluster"), 542 }, 543 }, 544 }, 545 Required: []string{"cluster"}, 546 }, 547 }, 548 Dependencies: []string{ 549 "sigs.k8s.io/cluster-api/api/v1beta1.Cluster"}, 550 } 551 } 552 553 func schema_runtime_hooks_api_v1alpha1_BeforeClusterDeleteResponse(ref common.ReferenceCallback) common.OpenAPIDefinition { 554 return common.OpenAPIDefinition{ 555 Schema: spec.Schema{ 556 SchemaProps: spec.SchemaProps{ 557 Description: "BeforeClusterDeleteResponse is the response of the BeforeClusterDelete hook.", 558 Type: []string{"object"}, 559 Properties: map[string]spec.Schema{ 560 "kind": { 561 SchemaProps: spec.SchemaProps{ 562 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 563 Type: []string{"string"}, 564 Format: "", 565 }, 566 }, 567 "apiVersion": { 568 SchemaProps: spec.SchemaProps{ 569 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 570 Type: []string{"string"}, 571 Format: "", 572 }, 573 }, 574 "status": { 575 SchemaProps: spec.SchemaProps{ 576 Description: "Status of the call. One of \"Success\" or \"Failure\".\n\nPossible enum values:\n - `\"Failure\"` represents a failure response.\n - `\"Success\"` represents a success response.", 577 Default: "", 578 Type: []string{"string"}, 579 Format: "", 580 Enum: []interface{}{"Failure", "Success"}, 581 }, 582 }, 583 "message": { 584 SchemaProps: spec.SchemaProps{ 585 Description: "A human-readable description of the status of the call.", 586 Default: "", 587 Type: []string{"string"}, 588 Format: "", 589 }, 590 }, 591 "retryAfterSeconds": { 592 SchemaProps: spec.SchemaProps{ 593 Description: "RetryAfterSeconds when set to a non-zero value signifies that the hook will be called again at a future time.", 594 Default: 0, 595 Type: []string{"integer"}, 596 Format: "int32", 597 }, 598 }, 599 }, 600 Required: []string{"status", "message", "retryAfterSeconds"}, 601 }, 602 }, 603 } 604 } 605 606 func schema_runtime_hooks_api_v1alpha1_BeforeClusterUpgradeRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { 607 return common.OpenAPIDefinition{ 608 Schema: spec.Schema{ 609 SchemaProps: spec.SchemaProps{ 610 Description: "BeforeClusterUpgradeRequest is the request of the BeforeClusterUpgrade hook.", 611 Type: []string{"object"}, 612 Properties: map[string]spec.Schema{ 613 "kind": { 614 SchemaProps: spec.SchemaProps{ 615 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 616 Type: []string{"string"}, 617 Format: "", 618 }, 619 }, 620 "apiVersion": { 621 SchemaProps: spec.SchemaProps{ 622 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 623 Type: []string{"string"}, 624 Format: "", 625 }, 626 }, 627 "settings": { 628 SchemaProps: spec.SchemaProps{ 629 Description: "Settings defines key value pairs to be passed to the call.", 630 Type: []string{"object"}, 631 AdditionalProperties: &spec.SchemaOrBool{ 632 Allows: true, 633 Schema: &spec.Schema{ 634 SchemaProps: spec.SchemaProps{ 635 Default: "", 636 Type: []string{"string"}, 637 Format: "", 638 }, 639 }, 640 }, 641 }, 642 }, 643 "cluster": { 644 SchemaProps: spec.SchemaProps{ 645 Description: "Cluster is the cluster object the lifecycle hook corresponds to.", 646 Default: map[string]interface{}{}, 647 Ref: ref("sigs.k8s.io/cluster-api/api/v1beta1.Cluster"), 648 }, 649 }, 650 "fromKubernetesVersion": { 651 SchemaProps: spec.SchemaProps{ 652 Description: "FromKubernetesVersion is the current Kubernetes version of the cluster.", 653 Default: "", 654 Type: []string{"string"}, 655 Format: "", 656 }, 657 }, 658 "toKubernetesVersion": { 659 SchemaProps: spec.SchemaProps{ 660 Description: "ToKubernetesVersion is the target Kubernetes version of the upgrade.", 661 Default: "", 662 Type: []string{"string"}, 663 Format: "", 664 }, 665 }, 666 }, 667 Required: []string{"cluster", "fromKubernetesVersion", "toKubernetesVersion"}, 668 }, 669 }, 670 Dependencies: []string{ 671 "sigs.k8s.io/cluster-api/api/v1beta1.Cluster"}, 672 } 673 } 674 675 func schema_runtime_hooks_api_v1alpha1_BeforeClusterUpgradeResponse(ref common.ReferenceCallback) common.OpenAPIDefinition { 676 return common.OpenAPIDefinition{ 677 Schema: spec.Schema{ 678 SchemaProps: spec.SchemaProps{ 679 Description: "BeforeClusterUpgradeResponse is the response of the BeforeClusterUpgrade hook.", 680 Type: []string{"object"}, 681 Properties: map[string]spec.Schema{ 682 "kind": { 683 SchemaProps: spec.SchemaProps{ 684 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 685 Type: []string{"string"}, 686 Format: "", 687 }, 688 }, 689 "apiVersion": { 690 SchemaProps: spec.SchemaProps{ 691 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 692 Type: []string{"string"}, 693 Format: "", 694 }, 695 }, 696 "status": { 697 SchemaProps: spec.SchemaProps{ 698 Description: "Status of the call. One of \"Success\" or \"Failure\".\n\nPossible enum values:\n - `\"Failure\"` represents a failure response.\n - `\"Success\"` represents a success response.", 699 Default: "", 700 Type: []string{"string"}, 701 Format: "", 702 Enum: []interface{}{"Failure", "Success"}, 703 }, 704 }, 705 "message": { 706 SchemaProps: spec.SchemaProps{ 707 Description: "A human-readable description of the status of the call.", 708 Default: "", 709 Type: []string{"string"}, 710 Format: "", 711 }, 712 }, 713 "retryAfterSeconds": { 714 SchemaProps: spec.SchemaProps{ 715 Description: "RetryAfterSeconds when set to a non-zero value signifies that the hook will be called again at a future time.", 716 Default: 0, 717 Type: []string{"integer"}, 718 Format: "int32", 719 }, 720 }, 721 }, 722 Required: []string{"status", "message", "retryAfterSeconds"}, 723 }, 724 }, 725 } 726 } 727 728 func schema_runtime_hooks_api_v1alpha1_Builtins(ref common.ReferenceCallback) common.OpenAPIDefinition { 729 return common.OpenAPIDefinition{ 730 Schema: spec.Schema{ 731 SchemaProps: spec.SchemaProps{ 732 Description: "Builtins represents builtin variables exposed through patches.", 733 Type: []string{"object"}, 734 Properties: map[string]spec.Schema{ 735 "cluster": { 736 SchemaProps: spec.SchemaProps{ 737 Ref: ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ClusterBuiltins"), 738 }, 739 }, 740 "controlPlane": { 741 SchemaProps: spec.SchemaProps{ 742 Ref: ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ControlPlaneBuiltins"), 743 }, 744 }, 745 "machineDeployment": { 746 SchemaProps: spec.SchemaProps{ 747 Ref: ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.MachineDeploymentBuiltins"), 748 }, 749 }, 750 "machinePool": { 751 SchemaProps: spec.SchemaProps{ 752 Ref: ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.MachinePoolBuiltins"), 753 }, 754 }, 755 }, 756 }, 757 }, 758 Dependencies: []string{ 759 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ClusterBuiltins", "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ControlPlaneBuiltins", "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.MachineDeploymentBuiltins", "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.MachinePoolBuiltins"}, 760 } 761 } 762 763 func schema_runtime_hooks_api_v1alpha1_ClusterBuiltins(ref common.ReferenceCallback) common.OpenAPIDefinition { 764 return common.OpenAPIDefinition{ 765 Schema: spec.Schema{ 766 SchemaProps: spec.SchemaProps{ 767 Description: "ClusterBuiltins represents builtin cluster variables.", 768 Type: []string{"object"}, 769 Properties: map[string]spec.Schema{ 770 "name": { 771 SchemaProps: spec.SchemaProps{ 772 Description: "Name is the name of the cluster.", 773 Type: []string{"string"}, 774 Format: "", 775 }, 776 }, 777 "namespace": { 778 SchemaProps: spec.SchemaProps{ 779 Description: "Namespace is the namespace of the cluster.", 780 Type: []string{"string"}, 781 Format: "", 782 }, 783 }, 784 "topology": { 785 SchemaProps: spec.SchemaProps{ 786 Description: "Topology represents the cluster topology variables.", 787 Ref: ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ClusterTopologyBuiltins"), 788 }, 789 }, 790 "network": { 791 SchemaProps: spec.SchemaProps{ 792 Description: "Network represents the cluster network variables.", 793 Ref: ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ClusterNetworkBuiltins"), 794 }, 795 }, 796 }, 797 }, 798 }, 799 Dependencies: []string{ 800 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ClusterNetworkBuiltins", "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ClusterTopologyBuiltins"}, 801 } 802 } 803 804 func schema_runtime_hooks_api_v1alpha1_ClusterNetworkBuiltins(ref common.ReferenceCallback) common.OpenAPIDefinition { 805 return common.OpenAPIDefinition{ 806 Schema: spec.Schema{ 807 SchemaProps: spec.SchemaProps{ 808 Description: "ClusterNetworkBuiltins represents builtin cluster network variables.", 809 Type: []string{"object"}, 810 Properties: map[string]spec.Schema{ 811 "serviceDomain": { 812 SchemaProps: spec.SchemaProps{ 813 Description: "ServiceDomain is the domain name for services.", 814 Type: []string{"string"}, 815 Format: "", 816 }, 817 }, 818 "services": { 819 SchemaProps: spec.SchemaProps{ 820 Description: "Services is the network ranges from which service VIPs are allocated.", 821 Type: []string{"array"}, 822 Items: &spec.SchemaOrArray{ 823 Schema: &spec.Schema{ 824 SchemaProps: spec.SchemaProps{ 825 Default: "", 826 Type: []string{"string"}, 827 Format: "", 828 }, 829 }, 830 }, 831 }, 832 }, 833 "pods": { 834 SchemaProps: spec.SchemaProps{ 835 Description: "Pods is the network ranges from which Pod networks are allocated.", 836 Type: []string{"array"}, 837 Items: &spec.SchemaOrArray{ 838 Schema: &spec.Schema{ 839 SchemaProps: spec.SchemaProps{ 840 Default: "", 841 Type: []string{"string"}, 842 Format: "", 843 }, 844 }, 845 }, 846 }, 847 }, 848 "ipFamily": { 849 SchemaProps: spec.SchemaProps{ 850 Description: "IPFamily is the IPFamily the Cluster is operating in. One of Invalid, IPv4, IPv6, DualStack. Note: IPFamily is not a concept in Kubernetes. It was originally introduced in CAPI for CAPD. IPFamily may be dropped in a future release. More details at https://github.com/kubernetes-sigs/cluster-api/issues/7521", 851 Type: []string{"string"}, 852 Format: "", 853 }, 854 }, 855 }, 856 }, 857 }, 858 } 859 } 860 861 func schema_runtime_hooks_api_v1alpha1_ClusterTopologyBuiltins(ref common.ReferenceCallback) common.OpenAPIDefinition { 862 return common.OpenAPIDefinition{ 863 Schema: spec.Schema{ 864 SchemaProps: spec.SchemaProps{ 865 Description: "ClusterTopologyBuiltins represents builtin cluster topology variables.", 866 Type: []string{"object"}, 867 Properties: map[string]spec.Schema{ 868 "version": { 869 SchemaProps: spec.SchemaProps{ 870 Description: "Version is the Kubernetes version of the Cluster. NOTE: Please note that this version might temporarily differ from the version of the ControlPlane or workers while an upgrade process is being orchestrated.", 871 Type: []string{"string"}, 872 Format: "", 873 }, 874 }, 875 "class": { 876 SchemaProps: spec.SchemaProps{ 877 Description: "Class is the name of the ClusterClass of the Cluster.", 878 Type: []string{"string"}, 879 Format: "", 880 }, 881 }, 882 }, 883 }, 884 }, 885 } 886 } 887 888 func schema_runtime_hooks_api_v1alpha1_CommonRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { 889 return common.OpenAPIDefinition{ 890 Schema: spec.Schema{ 891 SchemaProps: spec.SchemaProps{ 892 Description: "CommonRequest is the data structure common to all request types. Note: By embedding CommonRequest in a runtime.Object the RequestObject interface is satisfied.", 893 Type: []string{"object"}, 894 Properties: map[string]spec.Schema{ 895 "settings": { 896 SchemaProps: spec.SchemaProps{ 897 Description: "Settings defines key value pairs to be passed to the call.", 898 Type: []string{"object"}, 899 AdditionalProperties: &spec.SchemaOrBool{ 900 Allows: true, 901 Schema: &spec.Schema{ 902 SchemaProps: spec.SchemaProps{ 903 Default: "", 904 Type: []string{"string"}, 905 Format: "", 906 }, 907 }, 908 }, 909 }, 910 }, 911 }, 912 }, 913 }, 914 } 915 } 916 917 func schema_runtime_hooks_api_v1alpha1_CommonResponse(ref common.ReferenceCallback) common.OpenAPIDefinition { 918 return common.OpenAPIDefinition{ 919 Schema: spec.Schema{ 920 SchemaProps: spec.SchemaProps{ 921 Description: "CommonResponse is the data structure common to all response types. Note: By embedding CommonResponse in a runtime.Object the ResponseObject interface is satisfied.", 922 Type: []string{"object"}, 923 Properties: map[string]spec.Schema{ 924 "status": { 925 SchemaProps: spec.SchemaProps{ 926 Description: "Status of the call. One of \"Success\" or \"Failure\".\n\nPossible enum values:\n - `\"Failure\"` represents a failure response.\n - `\"Success\"` represents a success response.", 927 Default: "", 928 Type: []string{"string"}, 929 Format: "", 930 Enum: []interface{}{"Failure", "Success"}, 931 }, 932 }, 933 "message": { 934 SchemaProps: spec.SchemaProps{ 935 Description: "A human-readable description of the status of the call.", 936 Default: "", 937 Type: []string{"string"}, 938 Format: "", 939 }, 940 }, 941 }, 942 Required: []string{"status", "message"}, 943 }, 944 }, 945 } 946 } 947 948 func schema_runtime_hooks_api_v1alpha1_CommonRetryResponse(ref common.ReferenceCallback) common.OpenAPIDefinition { 949 return common.OpenAPIDefinition{ 950 Schema: spec.Schema{ 951 SchemaProps: spec.SchemaProps{ 952 Description: "CommonRetryResponse is the data structure which contains all common and retry fields. Note: By embedding CommonRetryResponse in a runtime.Object the RetryResponseObject interface is satisfied.", 953 Type: []string{"object"}, 954 Properties: map[string]spec.Schema{ 955 "status": { 956 SchemaProps: spec.SchemaProps{ 957 Description: "Status of the call. One of \"Success\" or \"Failure\".\n\nPossible enum values:\n - `\"Failure\"` represents a failure response.\n - `\"Success\"` represents a success response.", 958 Default: "", 959 Type: []string{"string"}, 960 Format: "", 961 Enum: []interface{}{"Failure", "Success"}, 962 }, 963 }, 964 "message": { 965 SchemaProps: spec.SchemaProps{ 966 Description: "A human-readable description of the status of the call.", 967 Default: "", 968 Type: []string{"string"}, 969 Format: "", 970 }, 971 }, 972 "retryAfterSeconds": { 973 SchemaProps: spec.SchemaProps{ 974 Description: "RetryAfterSeconds when set to a non-zero value signifies that the hook will be called again at a future time.", 975 Default: 0, 976 Type: []string{"integer"}, 977 Format: "int32", 978 }, 979 }, 980 }, 981 Required: []string{"status", "message", "retryAfterSeconds"}, 982 }, 983 }, 984 } 985 } 986 987 func schema_runtime_hooks_api_v1alpha1_ControlPlaneBuiltins(ref common.ReferenceCallback) common.OpenAPIDefinition { 988 return common.OpenAPIDefinition{ 989 Schema: spec.Schema{ 990 SchemaProps: spec.SchemaProps{ 991 Description: "ControlPlaneBuiltins represents builtin ControlPlane variables. NOTE: These variables are only set for templates belonging to the ControlPlane object.", 992 Type: []string{"object"}, 993 Properties: map[string]spec.Schema{ 994 "version": { 995 SchemaProps: spec.SchemaProps{ 996 Description: "Version is the Kubernetes version of the ControlPlane object. NOTE: Please note that this version is the version we are currently reconciling towards. It can differ from the current version of the ControlPlane while an upgrade process is being orchestrated.", 997 Type: []string{"string"}, 998 Format: "", 999 }, 1000 }, 1001 "name": { 1002 SchemaProps: spec.SchemaProps{ 1003 Description: "Name is the name of the ControlPlane, to which the current template belongs to.", 1004 Type: []string{"string"}, 1005 Format: "", 1006 }, 1007 }, 1008 "replicas": { 1009 SchemaProps: spec.SchemaProps{ 1010 Description: "Replicas is the value of the replicas field of the ControlPlane object.", 1011 Type: []string{"integer"}, 1012 Format: "int64", 1013 }, 1014 }, 1015 "machineTemplate": { 1016 SchemaProps: spec.SchemaProps{ 1017 Description: "MachineTemplate is the value of the .spec.machineTemplate field of the ControlPlane object.", 1018 Ref: ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ControlPlaneMachineTemplateBuiltins"), 1019 }, 1020 }, 1021 }, 1022 }, 1023 }, 1024 Dependencies: []string{ 1025 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ControlPlaneMachineTemplateBuiltins"}, 1026 } 1027 } 1028 1029 func schema_runtime_hooks_api_v1alpha1_ControlPlaneMachineTemplateBuiltins(ref common.ReferenceCallback) common.OpenAPIDefinition { 1030 return common.OpenAPIDefinition{ 1031 Schema: spec.Schema{ 1032 SchemaProps: spec.SchemaProps{ 1033 Description: "ControlPlaneMachineTemplateBuiltins is the value of the .spec.machineTemplate field of the ControlPlane object.", 1034 Type: []string{"object"}, 1035 Properties: map[string]spec.Schema{ 1036 "infrastructureRef": { 1037 SchemaProps: spec.SchemaProps{ 1038 Description: "InfrastructureRef is the value of the infrastructureRef field of ControlPlane.spec.machineTemplate.", 1039 Default: map[string]interface{}{}, 1040 Ref: ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ControlPlaneMachineTemplateInfrastructureRefBuiltins"), 1041 }, 1042 }, 1043 }, 1044 }, 1045 }, 1046 Dependencies: []string{ 1047 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ControlPlaneMachineTemplateInfrastructureRefBuiltins"}, 1048 } 1049 } 1050 1051 func schema_runtime_hooks_api_v1alpha1_ControlPlaneMachineTemplateInfrastructureRefBuiltins(ref common.ReferenceCallback) common.OpenAPIDefinition { 1052 return common.OpenAPIDefinition{ 1053 Schema: spec.Schema{ 1054 SchemaProps: spec.SchemaProps{ 1055 Description: "ControlPlaneMachineTemplateInfrastructureRefBuiltins is the value of the infrastructureRef field of ControlPlane.spec.machineTemplate.", 1056 Type: []string{"object"}, 1057 Properties: map[string]spec.Schema{ 1058 "name": { 1059 SchemaProps: spec.SchemaProps{ 1060 Description: "Name of the infrastructureRef.", 1061 Type: []string{"string"}, 1062 Format: "", 1063 }, 1064 }, 1065 }, 1066 }, 1067 }, 1068 } 1069 } 1070 1071 func schema_runtime_hooks_api_v1alpha1_DiscoverVariablesRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { 1072 return common.OpenAPIDefinition{ 1073 Schema: spec.Schema{ 1074 SchemaProps: spec.SchemaProps{ 1075 Description: "DiscoverVariablesRequest is the request of the DiscoverVariables hook.", 1076 Type: []string{"object"}, 1077 Properties: map[string]spec.Schema{ 1078 "kind": { 1079 SchemaProps: spec.SchemaProps{ 1080 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1081 Type: []string{"string"}, 1082 Format: "", 1083 }, 1084 }, 1085 "apiVersion": { 1086 SchemaProps: spec.SchemaProps{ 1087 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1088 Type: []string{"string"}, 1089 Format: "", 1090 }, 1091 }, 1092 "settings": { 1093 SchemaProps: spec.SchemaProps{ 1094 Description: "Settings defines key value pairs to be passed to the call.", 1095 Type: []string{"object"}, 1096 AdditionalProperties: &spec.SchemaOrBool{ 1097 Allows: true, 1098 Schema: &spec.Schema{ 1099 SchemaProps: spec.SchemaProps{ 1100 Default: "", 1101 Type: []string{"string"}, 1102 Format: "", 1103 }, 1104 }, 1105 }, 1106 }, 1107 }, 1108 }, 1109 }, 1110 }, 1111 } 1112 } 1113 1114 func schema_runtime_hooks_api_v1alpha1_DiscoverVariablesResponse(ref common.ReferenceCallback) common.OpenAPIDefinition { 1115 return common.OpenAPIDefinition{ 1116 Schema: spec.Schema{ 1117 SchemaProps: spec.SchemaProps{ 1118 Description: "DiscoverVariablesResponse is the response of the DiscoverVariables hook.", 1119 Type: []string{"object"}, 1120 Properties: map[string]spec.Schema{ 1121 "kind": { 1122 SchemaProps: spec.SchemaProps{ 1123 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1124 Type: []string{"string"}, 1125 Format: "", 1126 }, 1127 }, 1128 "apiVersion": { 1129 SchemaProps: spec.SchemaProps{ 1130 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1131 Type: []string{"string"}, 1132 Format: "", 1133 }, 1134 }, 1135 "status": { 1136 SchemaProps: spec.SchemaProps{ 1137 Description: "Status of the call. One of \"Success\" or \"Failure\".\n\nPossible enum values:\n - `\"Failure\"` represents a failure response.\n - `\"Success\"` represents a success response.", 1138 Default: "", 1139 Type: []string{"string"}, 1140 Format: "", 1141 Enum: []interface{}{"Failure", "Success"}, 1142 }, 1143 }, 1144 "message": { 1145 SchemaProps: spec.SchemaProps{ 1146 Description: "A human-readable description of the status of the call.", 1147 Default: "", 1148 Type: []string{"string"}, 1149 Format: "", 1150 }, 1151 }, 1152 "variables": { 1153 SchemaProps: spec.SchemaProps{ 1154 Description: "Variables are variable schemas for variables defined by the DiscoverVariables hook.", 1155 Type: []string{"array"}, 1156 Items: &spec.SchemaOrArray{ 1157 Schema: &spec.Schema{ 1158 SchemaProps: spec.SchemaProps{ 1159 Default: map[string]interface{}{}, 1160 Ref: ref("sigs.k8s.io/cluster-api/api/v1beta1.ClusterClassVariable"), 1161 }, 1162 }, 1163 }, 1164 }, 1165 }, 1166 }, 1167 Required: []string{"status", "message", "variables"}, 1168 }, 1169 }, 1170 Dependencies: []string{ 1171 "sigs.k8s.io/cluster-api/api/v1beta1.ClusterClassVariable"}, 1172 } 1173 } 1174 1175 func schema_runtime_hooks_api_v1alpha1_DiscoveryRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { 1176 return common.OpenAPIDefinition{ 1177 Schema: spec.Schema{ 1178 SchemaProps: spec.SchemaProps{ 1179 Description: "DiscoveryRequest is the request of the Discovery hook.", 1180 Type: []string{"object"}, 1181 Properties: map[string]spec.Schema{ 1182 "kind": { 1183 SchemaProps: spec.SchemaProps{ 1184 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1185 Type: []string{"string"}, 1186 Format: "", 1187 }, 1188 }, 1189 "apiVersion": { 1190 SchemaProps: spec.SchemaProps{ 1191 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1192 Type: []string{"string"}, 1193 Format: "", 1194 }, 1195 }, 1196 }, 1197 }, 1198 }, 1199 } 1200 } 1201 1202 func schema_runtime_hooks_api_v1alpha1_DiscoveryResponse(ref common.ReferenceCallback) common.OpenAPIDefinition { 1203 return common.OpenAPIDefinition{ 1204 Schema: spec.Schema{ 1205 SchemaProps: spec.SchemaProps{ 1206 Description: "DiscoveryResponse is the response of the Discovery hook.", 1207 Type: []string{"object"}, 1208 Properties: map[string]spec.Schema{ 1209 "kind": { 1210 SchemaProps: spec.SchemaProps{ 1211 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1212 Type: []string{"string"}, 1213 Format: "", 1214 }, 1215 }, 1216 "apiVersion": { 1217 SchemaProps: spec.SchemaProps{ 1218 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1219 Type: []string{"string"}, 1220 Format: "", 1221 }, 1222 }, 1223 "status": { 1224 SchemaProps: spec.SchemaProps{ 1225 Description: "Status of the call. One of \"Success\" or \"Failure\".\n\nPossible enum values:\n - `\"Failure\"` represents a failure response.\n - `\"Success\"` represents a success response.", 1226 Default: "", 1227 Type: []string{"string"}, 1228 Format: "", 1229 Enum: []interface{}{"Failure", "Success"}, 1230 }, 1231 }, 1232 "message": { 1233 SchemaProps: spec.SchemaProps{ 1234 Description: "A human-readable description of the status of the call.", 1235 Default: "", 1236 Type: []string{"string"}, 1237 Format: "", 1238 }, 1239 }, 1240 "handlers": { 1241 VendorExtensible: spec.VendorExtensible{ 1242 Extensions: spec.Extensions{ 1243 "x-kubernetes-list-map-keys": []interface{}{ 1244 "name", 1245 }, 1246 "x-kubernetes-list-type": "map", 1247 }, 1248 }, 1249 SchemaProps: spec.SchemaProps{ 1250 Description: "Handlers defines the current ExtensionHandlers supported by an Extension.", 1251 Type: []string{"array"}, 1252 Items: &spec.SchemaOrArray{ 1253 Schema: &spec.Schema{ 1254 SchemaProps: spec.SchemaProps{ 1255 Default: map[string]interface{}{}, 1256 Ref: ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ExtensionHandler"), 1257 }, 1258 }, 1259 }, 1260 }, 1261 }, 1262 }, 1263 Required: []string{"status", "message", "handlers"}, 1264 }, 1265 }, 1266 Dependencies: []string{ 1267 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ExtensionHandler"}, 1268 } 1269 } 1270 1271 func schema_runtime_hooks_api_v1alpha1_ExtensionHandler(ref common.ReferenceCallback) common.OpenAPIDefinition { 1272 return common.OpenAPIDefinition{ 1273 Schema: spec.Schema{ 1274 SchemaProps: spec.SchemaProps{ 1275 Description: "ExtensionHandler represents the discovery information for an extension handler which includes the hook it supports.", 1276 Type: []string{"object"}, 1277 Properties: map[string]spec.Schema{ 1278 "name": { 1279 SchemaProps: spec.SchemaProps{ 1280 Description: "Name is the name of the ExtensionHandler.", 1281 Default: "", 1282 Type: []string{"string"}, 1283 Format: "", 1284 }, 1285 }, 1286 "requestHook": { 1287 SchemaProps: spec.SchemaProps{ 1288 Description: "RequestHook defines the versioned runtime hook which this ExtensionHandler serves.", 1289 Default: map[string]interface{}{}, 1290 Ref: ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.GroupVersionHook"), 1291 }, 1292 }, 1293 "timeoutSeconds": { 1294 SchemaProps: spec.SchemaProps{ 1295 Description: "TimeoutSeconds defines the timeout duration for client calls to the ExtensionHandler. This is defaulted to 10 if left undefined.", 1296 Type: []string{"integer"}, 1297 Format: "int32", 1298 }, 1299 }, 1300 "failurePolicy": { 1301 SchemaProps: spec.SchemaProps{ 1302 Description: "FailurePolicy defines how failures in calls to the ExtensionHandler should be handled by a client. This is defaulted to FailurePolicyFail if not defined.", 1303 Type: []string{"string"}, 1304 Format: "", 1305 }, 1306 }, 1307 }, 1308 Required: []string{"name", "requestHook"}, 1309 }, 1310 }, 1311 Dependencies: []string{ 1312 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.GroupVersionHook"}, 1313 } 1314 } 1315 1316 func schema_runtime_hooks_api_v1alpha1_GeneratePatchesRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { 1317 return common.OpenAPIDefinition{ 1318 Schema: spec.Schema{ 1319 SchemaProps: spec.SchemaProps{ 1320 Description: "GeneratePatchesRequest is the request of the GeneratePatches hook.", 1321 Type: []string{"object"}, 1322 Properties: map[string]spec.Schema{ 1323 "kind": { 1324 SchemaProps: spec.SchemaProps{ 1325 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1326 Type: []string{"string"}, 1327 Format: "", 1328 }, 1329 }, 1330 "apiVersion": { 1331 SchemaProps: spec.SchemaProps{ 1332 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1333 Type: []string{"string"}, 1334 Format: "", 1335 }, 1336 }, 1337 "settings": { 1338 SchemaProps: spec.SchemaProps{ 1339 Description: "Settings defines key value pairs to be passed to the call.", 1340 Type: []string{"object"}, 1341 AdditionalProperties: &spec.SchemaOrBool{ 1342 Allows: true, 1343 Schema: &spec.Schema{ 1344 SchemaProps: spec.SchemaProps{ 1345 Default: "", 1346 Type: []string{"string"}, 1347 Format: "", 1348 }, 1349 }, 1350 }, 1351 }, 1352 }, 1353 "variables": { 1354 SchemaProps: spec.SchemaProps{ 1355 Description: "Variables are global variables for all templates.", 1356 Type: []string{"array"}, 1357 Items: &spec.SchemaOrArray{ 1358 Schema: &spec.Schema{ 1359 SchemaProps: spec.SchemaProps{ 1360 Default: map[string]interface{}{}, 1361 Ref: ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.Variable"), 1362 }, 1363 }, 1364 }, 1365 }, 1366 }, 1367 "items": { 1368 SchemaProps: spec.SchemaProps{ 1369 Description: "Items is the list of templates to generate patches for.", 1370 Type: []string{"array"}, 1371 Items: &spec.SchemaOrArray{ 1372 Schema: &spec.Schema{ 1373 SchemaProps: spec.SchemaProps{ 1374 Default: map[string]interface{}{}, 1375 Ref: ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.GeneratePatchesRequestItem"), 1376 }, 1377 }, 1378 }, 1379 }, 1380 }, 1381 }, 1382 Required: []string{"variables", "items"}, 1383 }, 1384 }, 1385 Dependencies: []string{ 1386 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.GeneratePatchesRequestItem", "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.Variable"}, 1387 } 1388 } 1389 1390 func schema_runtime_hooks_api_v1alpha1_GeneratePatchesRequestItem(ref common.ReferenceCallback) common.OpenAPIDefinition { 1391 return common.OpenAPIDefinition{ 1392 Schema: spec.Schema{ 1393 SchemaProps: spec.SchemaProps{ 1394 Description: "GeneratePatchesRequestItem represents a template to generate patches for.", 1395 Type: []string{"object"}, 1396 Properties: map[string]spec.Schema{ 1397 "uid": { 1398 SchemaProps: spec.SchemaProps{ 1399 Description: "UID is an identifier for this template. It allows us to correlate the template in the request with the corresponding generated patches in the response.", 1400 Default: "", 1401 Type: []string{"string"}, 1402 Format: "", 1403 }, 1404 }, 1405 "holderReference": { 1406 SchemaProps: spec.SchemaProps{ 1407 Description: "HolderReference is a reference to the object where the template is used.", 1408 Default: map[string]interface{}{}, 1409 Ref: ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.HolderReference"), 1410 }, 1411 }, 1412 "object": { 1413 SchemaProps: spec.SchemaProps{ 1414 Description: "Object contains the template as a raw object.", 1415 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), 1416 }, 1417 }, 1418 "variables": { 1419 SchemaProps: spec.SchemaProps{ 1420 Description: "Variables are variables specific for the current template. For example some builtin variables like MachineDeployment replicas and version are context-sensitive and thus are only added to templates for MachineDeployments and with values which correspond to the current MachineDeployment.", 1421 Type: []string{"array"}, 1422 Items: &spec.SchemaOrArray{ 1423 Schema: &spec.Schema{ 1424 SchemaProps: spec.SchemaProps{ 1425 Default: map[string]interface{}{}, 1426 Ref: ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.Variable"), 1427 }, 1428 }, 1429 }, 1430 }, 1431 }, 1432 }, 1433 Required: []string{"uid", "holderReference", "object", "variables"}, 1434 }, 1435 }, 1436 Dependencies: []string{ 1437 "k8s.io/apimachinery/pkg/runtime.RawExtension", "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.HolderReference", "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.Variable"}, 1438 } 1439 } 1440 1441 func schema_runtime_hooks_api_v1alpha1_GeneratePatchesResponse(ref common.ReferenceCallback) common.OpenAPIDefinition { 1442 return common.OpenAPIDefinition{ 1443 Schema: spec.Schema{ 1444 SchemaProps: spec.SchemaProps{ 1445 Description: "GeneratePatchesResponse is the response of the GeneratePatches hook. NOTE: The patches in GeneratePatchesResponse will be applied in the order in which they are defined to the templates of the request. Thus applying changes consecutively when iterating through internal and external patches.", 1446 Type: []string{"object"}, 1447 Properties: map[string]spec.Schema{ 1448 "kind": { 1449 SchemaProps: spec.SchemaProps{ 1450 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1451 Type: []string{"string"}, 1452 Format: "", 1453 }, 1454 }, 1455 "apiVersion": { 1456 SchemaProps: spec.SchemaProps{ 1457 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1458 Type: []string{"string"}, 1459 Format: "", 1460 }, 1461 }, 1462 "status": { 1463 SchemaProps: spec.SchemaProps{ 1464 Description: "Status of the call. One of \"Success\" or \"Failure\".\n\nPossible enum values:\n - `\"Failure\"` represents a failure response.\n - `\"Success\"` represents a success response.", 1465 Default: "", 1466 Type: []string{"string"}, 1467 Format: "", 1468 Enum: []interface{}{"Failure", "Success"}, 1469 }, 1470 }, 1471 "message": { 1472 SchemaProps: spec.SchemaProps{ 1473 Description: "A human-readable description of the status of the call.", 1474 Default: "", 1475 Type: []string{"string"}, 1476 Format: "", 1477 }, 1478 }, 1479 "items": { 1480 SchemaProps: spec.SchemaProps{ 1481 Description: "Items is the list of generated patches.", 1482 Type: []string{"array"}, 1483 Items: &spec.SchemaOrArray{ 1484 Schema: &spec.Schema{ 1485 SchemaProps: spec.SchemaProps{ 1486 Default: map[string]interface{}{}, 1487 Ref: ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.GeneratePatchesResponseItem"), 1488 }, 1489 }, 1490 }, 1491 }, 1492 }, 1493 }, 1494 Required: []string{"status", "message", "items"}, 1495 }, 1496 }, 1497 Dependencies: []string{ 1498 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.GeneratePatchesResponseItem"}, 1499 } 1500 } 1501 1502 func schema_runtime_hooks_api_v1alpha1_GeneratePatchesResponseItem(ref common.ReferenceCallback) common.OpenAPIDefinition { 1503 return common.OpenAPIDefinition{ 1504 Schema: spec.Schema{ 1505 SchemaProps: spec.SchemaProps{ 1506 Description: "GeneratePatchesResponseItem is a generated patch.", 1507 Type: []string{"object"}, 1508 Properties: map[string]spec.Schema{ 1509 "uid": { 1510 SchemaProps: spec.SchemaProps{ 1511 Description: "UID identifies the corresponding template in the request on which the patch should be applied.", 1512 Default: "", 1513 Type: []string{"string"}, 1514 Format: "", 1515 }, 1516 }, 1517 "patchType": { 1518 SchemaProps: spec.SchemaProps{ 1519 Description: "PatchType defines the type of the patch. One of: \"JSONPatch\" or \"JSONMergePatch\".\n\nPossible enum values:\n - `\"JSONMergePatch\"` identifies a https://datatracker.ietf.org/doc/html/rfc7386 JSON merge patch.\n - `\"JSONPatch\"` identifies a https://datatracker.ietf.org/doc/html/rfc6902 JSON patch.", 1520 Default: "", 1521 Type: []string{"string"}, 1522 Format: "", 1523 Enum: []interface{}{"JSONMergePatch", "JSONPatch"}, 1524 }, 1525 }, 1526 "patch": { 1527 SchemaProps: spec.SchemaProps{ 1528 Description: "Patch contains the patch which should be applied to the template. It must be of the corresponding PatchType.", 1529 Type: []string{"string"}, 1530 Format: "byte", 1531 }, 1532 }, 1533 }, 1534 Required: []string{"uid", "patchType", "patch"}, 1535 }, 1536 }, 1537 } 1538 } 1539 1540 func schema_runtime_hooks_api_v1alpha1_GroupVersionHook(ref common.ReferenceCallback) common.OpenAPIDefinition { 1541 return common.OpenAPIDefinition{ 1542 Schema: spec.Schema{ 1543 SchemaProps: spec.SchemaProps{ 1544 Description: "GroupVersionHook defines the runtime hook when the ExtensionHandler is called.", 1545 Type: []string{"object"}, 1546 Properties: map[string]spec.Schema{ 1547 "apiVersion": { 1548 SchemaProps: spec.SchemaProps{ 1549 Description: "APIVersion is the group and version of the Hook", 1550 Default: "", 1551 Type: []string{"string"}, 1552 Format: "", 1553 }, 1554 }, 1555 "hook": { 1556 SchemaProps: spec.SchemaProps{ 1557 Description: "Hook is the name of the hook", 1558 Default: "", 1559 Type: []string{"string"}, 1560 Format: "", 1561 }, 1562 }, 1563 }, 1564 Required: []string{"apiVersion", "hook"}, 1565 }, 1566 }, 1567 } 1568 } 1569 1570 func schema_runtime_hooks_api_v1alpha1_HolderReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 1571 return common.OpenAPIDefinition{ 1572 Schema: spec.Schema{ 1573 SchemaProps: spec.SchemaProps{ 1574 Description: "HolderReference represents a reference to an object which holds a template.", 1575 Type: []string{"object"}, 1576 Properties: map[string]spec.Schema{ 1577 "apiVersion": { 1578 SchemaProps: spec.SchemaProps{ 1579 Description: "API version of the referent.", 1580 Default: "", 1581 Type: []string{"string"}, 1582 Format: "", 1583 }, 1584 }, 1585 "kind": { 1586 SchemaProps: spec.SchemaProps{ 1587 Description: "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1588 Default: "", 1589 Type: []string{"string"}, 1590 Format: "", 1591 }, 1592 }, 1593 "namespace": { 1594 SchemaProps: spec.SchemaProps{ 1595 Description: "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", 1596 Default: "", 1597 Type: []string{"string"}, 1598 Format: "", 1599 }, 1600 }, 1601 "name": { 1602 SchemaProps: spec.SchemaProps{ 1603 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 1604 Default: "", 1605 Type: []string{"string"}, 1606 Format: "", 1607 }, 1608 }, 1609 "fieldPath": { 1610 SchemaProps: spec.SchemaProps{ 1611 Description: "FieldPath is the path to the field of the object which references the template.", 1612 Default: "", 1613 Type: []string{"string"}, 1614 Format: "", 1615 }, 1616 }, 1617 }, 1618 Required: []string{"apiVersion", "kind", "namespace", "name", "fieldPath"}, 1619 }, 1620 }, 1621 } 1622 } 1623 1624 func schema_runtime_hooks_api_v1alpha1_MachineBootstrapBuiltins(ref common.ReferenceCallback) common.OpenAPIDefinition { 1625 return common.OpenAPIDefinition{ 1626 Schema: spec.Schema{ 1627 SchemaProps: spec.SchemaProps{ 1628 Description: "MachineBootstrapBuiltins is the value of the .spec.template.spec.bootstrap field of the MachineDeployment or MachinePool.", 1629 Type: []string{"object"}, 1630 Properties: map[string]spec.Schema{ 1631 "configRef": { 1632 SchemaProps: spec.SchemaProps{ 1633 Description: "ConfigRef is the value of the .spec.template.spec.bootstrap.configRef field of the MachineDeployment.", 1634 Ref: ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.MachineBootstrapConfigRefBuiltins"), 1635 }, 1636 }, 1637 }, 1638 }, 1639 }, 1640 Dependencies: []string{ 1641 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.MachineBootstrapConfigRefBuiltins"}, 1642 } 1643 } 1644 1645 func schema_runtime_hooks_api_v1alpha1_MachineBootstrapConfigRefBuiltins(ref common.ReferenceCallback) common.OpenAPIDefinition { 1646 return common.OpenAPIDefinition{ 1647 Schema: spec.Schema{ 1648 SchemaProps: spec.SchemaProps{ 1649 Description: "MachineBootstrapConfigRefBuiltins is the value of the .spec.template.spec.bootstrap.configRef field of the MachineDeployment or MachinePool.", 1650 Type: []string{"object"}, 1651 Properties: map[string]spec.Schema{ 1652 "name": { 1653 SchemaProps: spec.SchemaProps{ 1654 Description: "Name of the bootstrap.configRef.", 1655 Type: []string{"string"}, 1656 Format: "", 1657 }, 1658 }, 1659 }, 1660 }, 1661 }, 1662 } 1663 } 1664 1665 func schema_runtime_hooks_api_v1alpha1_MachineDeploymentBuiltins(ref common.ReferenceCallback) common.OpenAPIDefinition { 1666 return common.OpenAPIDefinition{ 1667 Schema: spec.Schema{ 1668 SchemaProps: spec.SchemaProps{ 1669 Description: "MachineDeploymentBuiltins represents builtin MachineDeployment variables. NOTE: These variables are only set for templates belonging to a MachineDeployment.", 1670 Type: []string{"object"}, 1671 Properties: map[string]spec.Schema{ 1672 "version": { 1673 SchemaProps: spec.SchemaProps{ 1674 Description: "Version is the Kubernetes version of the MachineDeployment, to which the current template belongs to. NOTE: Please note that this version is the version we are currently reconciling towards. It can differ from the current version of the MachineDeployment machines while an upgrade process is being orchestrated.", 1675 Type: []string{"string"}, 1676 Format: "", 1677 }, 1678 }, 1679 "class": { 1680 SchemaProps: spec.SchemaProps{ 1681 Description: "Class is the class name of the MachineDeployment, to which the current template belongs to.", 1682 Type: []string{"string"}, 1683 Format: "", 1684 }, 1685 }, 1686 "name": { 1687 SchemaProps: spec.SchemaProps{ 1688 Description: "Name is the name of the MachineDeployment, to which the current template belongs to.", 1689 Type: []string{"string"}, 1690 Format: "", 1691 }, 1692 }, 1693 "topologyName": { 1694 SchemaProps: spec.SchemaProps{ 1695 Description: "TopologyName is the topology name of the MachineDeployment, to which the current template belongs to.", 1696 Type: []string{"string"}, 1697 Format: "", 1698 }, 1699 }, 1700 "replicas": { 1701 SchemaProps: spec.SchemaProps{ 1702 Description: "Replicas is the value of the replicas field of the MachineDeployment, to which the current template belongs to.", 1703 Type: []string{"integer"}, 1704 Format: "int64", 1705 }, 1706 }, 1707 "bootstrap": { 1708 SchemaProps: spec.SchemaProps{ 1709 Description: "Bootstrap is the value of the .spec.template.spec.bootstrap field of the MachineDeployment.", 1710 Ref: ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.MachineBootstrapBuiltins"), 1711 }, 1712 }, 1713 "infrastructureRef": { 1714 SchemaProps: spec.SchemaProps{ 1715 Description: "InfrastructureRef is the value of the .spec.template.spec.infrastructureRef field of the MachineDeployment.", 1716 Ref: ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.MachineInfrastructureRefBuiltins"), 1717 }, 1718 }, 1719 }, 1720 }, 1721 }, 1722 Dependencies: []string{ 1723 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.MachineBootstrapBuiltins", "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.MachineInfrastructureRefBuiltins"}, 1724 } 1725 } 1726 1727 func schema_runtime_hooks_api_v1alpha1_MachineInfrastructureRefBuiltins(ref common.ReferenceCallback) common.OpenAPIDefinition { 1728 return common.OpenAPIDefinition{ 1729 Schema: spec.Schema{ 1730 SchemaProps: spec.SchemaProps{ 1731 Description: "MachineInfrastructureRefBuiltins is the value of the .spec.template.spec.infrastructureRef field of the MachineDeployment or MachinePool.", 1732 Type: []string{"object"}, 1733 Properties: map[string]spec.Schema{ 1734 "name": { 1735 SchemaProps: spec.SchemaProps{ 1736 Description: "Name of the infrastructureRef.", 1737 Type: []string{"string"}, 1738 Format: "", 1739 }, 1740 }, 1741 }, 1742 }, 1743 }, 1744 } 1745 } 1746 1747 func schema_runtime_hooks_api_v1alpha1_MachinePoolBuiltins(ref common.ReferenceCallback) common.OpenAPIDefinition { 1748 return common.OpenAPIDefinition{ 1749 Schema: spec.Schema{ 1750 SchemaProps: spec.SchemaProps{ 1751 Description: "MachinePoolBuiltins represents builtin MachinePool variables. NOTE: These variables are only set for templates belonging to a MachinePool.", 1752 Type: []string{"object"}, 1753 Properties: map[string]spec.Schema{ 1754 "version": { 1755 SchemaProps: spec.SchemaProps{ 1756 Description: "Version is the Kubernetes version of the MachinePool, to which the current template belongs to. NOTE: Please note that this version is the version we are currently reconciling towards. It can differ from the current version of the MachinePool machines while an upgrade process is being orchestrated.", 1757 Type: []string{"string"}, 1758 Format: "", 1759 }, 1760 }, 1761 "class": { 1762 SchemaProps: spec.SchemaProps{ 1763 Description: "Class is the class name of the MachinePool, to which the current template belongs to.", 1764 Type: []string{"string"}, 1765 Format: "", 1766 }, 1767 }, 1768 "name": { 1769 SchemaProps: spec.SchemaProps{ 1770 Description: "Name is the name of the MachinePool, to which the current template belongs to.", 1771 Type: []string{"string"}, 1772 Format: "", 1773 }, 1774 }, 1775 "topologyName": { 1776 SchemaProps: spec.SchemaProps{ 1777 Description: "TopologyName is the topology name of the MachinePool, to which the current template belongs to.", 1778 Type: []string{"string"}, 1779 Format: "", 1780 }, 1781 }, 1782 "replicas": { 1783 SchemaProps: spec.SchemaProps{ 1784 Description: "Replicas is the value of the replicas field of the MachinePool, to which the current template belongs to.", 1785 Type: []string{"integer"}, 1786 Format: "int64", 1787 }, 1788 }, 1789 "bootstrap": { 1790 SchemaProps: spec.SchemaProps{ 1791 Description: "Bootstrap is the value of the .spec.template.spec.bootstrap field of the MachinePool.", 1792 Ref: ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.MachineBootstrapBuiltins"), 1793 }, 1794 }, 1795 "infrastructureRef": { 1796 SchemaProps: spec.SchemaProps{ 1797 Description: "InfrastructureRef is the value of the .spec.template.spec.infrastructureRef field of the MachinePool.", 1798 Ref: ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.MachineInfrastructureRefBuiltins"), 1799 }, 1800 }, 1801 }, 1802 }, 1803 }, 1804 Dependencies: []string{ 1805 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.MachineBootstrapBuiltins", "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.MachineInfrastructureRefBuiltins"}, 1806 } 1807 } 1808 1809 func schema_runtime_hooks_api_v1alpha1_ValidateTopologyRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { 1810 return common.OpenAPIDefinition{ 1811 Schema: spec.Schema{ 1812 SchemaProps: spec.SchemaProps{ 1813 Description: "ValidateTopologyRequest is the request of the ValidateTopology hook.", 1814 Type: []string{"object"}, 1815 Properties: map[string]spec.Schema{ 1816 "kind": { 1817 SchemaProps: spec.SchemaProps{ 1818 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1819 Type: []string{"string"}, 1820 Format: "", 1821 }, 1822 }, 1823 "apiVersion": { 1824 SchemaProps: spec.SchemaProps{ 1825 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1826 Type: []string{"string"}, 1827 Format: "", 1828 }, 1829 }, 1830 "settings": { 1831 SchemaProps: spec.SchemaProps{ 1832 Description: "Settings defines key value pairs to be passed to the call.", 1833 Type: []string{"object"}, 1834 AdditionalProperties: &spec.SchemaOrBool{ 1835 Allows: true, 1836 Schema: &spec.Schema{ 1837 SchemaProps: spec.SchemaProps{ 1838 Default: "", 1839 Type: []string{"string"}, 1840 Format: "", 1841 }, 1842 }, 1843 }, 1844 }, 1845 }, 1846 "variables": { 1847 SchemaProps: spec.SchemaProps{ 1848 Description: "Variables are global variables for all templates.", 1849 Type: []string{"array"}, 1850 Items: &spec.SchemaOrArray{ 1851 Schema: &spec.Schema{ 1852 SchemaProps: spec.SchemaProps{ 1853 Default: map[string]interface{}{}, 1854 Ref: ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.Variable"), 1855 }, 1856 }, 1857 }, 1858 }, 1859 }, 1860 "items": { 1861 SchemaProps: spec.SchemaProps{ 1862 Description: "Items is the list of templates to validate.", 1863 Type: []string{"array"}, 1864 Items: &spec.SchemaOrArray{ 1865 Schema: &spec.Schema{ 1866 SchemaProps: spec.SchemaProps{ 1867 Ref: ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ValidateTopologyRequestItem"), 1868 }, 1869 }, 1870 }, 1871 }, 1872 }, 1873 }, 1874 Required: []string{"variables", "items"}, 1875 }, 1876 }, 1877 Dependencies: []string{ 1878 "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ValidateTopologyRequestItem", "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.Variable"}, 1879 } 1880 } 1881 1882 func schema_runtime_hooks_api_v1alpha1_ValidateTopologyRequestItem(ref common.ReferenceCallback) common.OpenAPIDefinition { 1883 return common.OpenAPIDefinition{ 1884 Schema: spec.Schema{ 1885 SchemaProps: spec.SchemaProps{ 1886 Description: "ValidateTopologyRequestItem represents a template to validate.", 1887 Type: []string{"object"}, 1888 Properties: map[string]spec.Schema{ 1889 "holderReference": { 1890 SchemaProps: spec.SchemaProps{ 1891 Description: "HolderReference is a reference to the object where the template is used.", 1892 Default: map[string]interface{}{}, 1893 Ref: ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.HolderReference"), 1894 }, 1895 }, 1896 "object": { 1897 SchemaProps: spec.SchemaProps{ 1898 Description: "Object contains the template as a raw object.", 1899 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), 1900 }, 1901 }, 1902 "variables": { 1903 SchemaProps: spec.SchemaProps{ 1904 Description: "Variables are variables specific for the current template. For example some builtin variables like MachineDeployment replicas and version are context-sensitive and thus are only added to templates for MachineDeployments and with values which correspond to the current MachineDeployment.", 1905 Type: []string{"array"}, 1906 Items: &spec.SchemaOrArray{ 1907 Schema: &spec.Schema{ 1908 SchemaProps: spec.SchemaProps{ 1909 Default: map[string]interface{}{}, 1910 Ref: ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.Variable"), 1911 }, 1912 }, 1913 }, 1914 }, 1915 }, 1916 }, 1917 Required: []string{"holderReference", "object", "variables"}, 1918 }, 1919 }, 1920 Dependencies: []string{ 1921 "k8s.io/apimachinery/pkg/runtime.RawExtension", "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.HolderReference", "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.Variable"}, 1922 } 1923 } 1924 1925 func schema_runtime_hooks_api_v1alpha1_ValidateTopologyResponse(ref common.ReferenceCallback) common.OpenAPIDefinition { 1926 return common.OpenAPIDefinition{ 1927 Schema: spec.Schema{ 1928 SchemaProps: spec.SchemaProps{ 1929 Description: "ValidateTopologyResponse is the response of the ValidateTopology hook.", 1930 Type: []string{"object"}, 1931 Properties: map[string]spec.Schema{ 1932 "kind": { 1933 SchemaProps: spec.SchemaProps{ 1934 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1935 Type: []string{"string"}, 1936 Format: "", 1937 }, 1938 }, 1939 "apiVersion": { 1940 SchemaProps: spec.SchemaProps{ 1941 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1942 Type: []string{"string"}, 1943 Format: "", 1944 }, 1945 }, 1946 "status": { 1947 SchemaProps: spec.SchemaProps{ 1948 Description: "Status of the call. One of \"Success\" or \"Failure\".\n\nPossible enum values:\n - `\"Failure\"` represents a failure response.\n - `\"Success\"` represents a success response.", 1949 Default: "", 1950 Type: []string{"string"}, 1951 Format: "", 1952 Enum: []interface{}{"Failure", "Success"}, 1953 }, 1954 }, 1955 "message": { 1956 SchemaProps: spec.SchemaProps{ 1957 Description: "A human-readable description of the status of the call.", 1958 Default: "", 1959 Type: []string{"string"}, 1960 Format: "", 1961 }, 1962 }, 1963 }, 1964 Required: []string{"status", "message"}, 1965 }, 1966 }, 1967 } 1968 } 1969 1970 func schema_runtime_hooks_api_v1alpha1_Variable(ref common.ReferenceCallback) common.OpenAPIDefinition { 1971 return common.OpenAPIDefinition{ 1972 Schema: spec.Schema{ 1973 SchemaProps: spec.SchemaProps{ 1974 Description: "Variable represents a variable value.", 1975 Type: []string{"object"}, 1976 Properties: map[string]spec.Schema{ 1977 "name": { 1978 SchemaProps: spec.SchemaProps{ 1979 Description: "Name of the variable.", 1980 Default: "", 1981 Type: []string{"string"}, 1982 Format: "", 1983 }, 1984 }, 1985 "value": { 1986 SchemaProps: spec.SchemaProps{ 1987 Description: "Value of the variable.", 1988 Ref: ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSON"), 1989 }, 1990 }, 1991 }, 1992 Required: []string{"name", "value"}, 1993 }, 1994 }, 1995 Dependencies: []string{ 1996 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSON"}, 1997 } 1998 }