forked from yannh/kubernetes-json-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustomresourceconversion.json
21 lines (21 loc) · 1.02 KB
/
customresourceconversion.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"description": "CustomResourceConversion describes how to convert different versions of a CR.",
"properties": {
"strategy": {
"description": "strategy specifies how custom resources are converted between versions. Allowed values are: - `\"None\"`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `\"Webhook\"`: API Server will call to an external webhook to do the conversion. Additional information\n is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set.",
"type": [
"string",
"null"
]
},
"webhook": {
"$ref": "_definitions.json#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookConversion",
"description": "webhook describes how to call the conversion webhook. Required when `strategy` is set to `\"Webhook\"`."
}
},
"required": [
"strategy"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}