forked from yannh/kubernetes-json-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustomresourcedefinitionversion.json
51 lines (51 loc) · 2.99 KB
/
customresourcedefinitionversion.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"description": "CustomResourceDefinitionVersion describes a version for CRD.",
"properties": {
"additionalPrinterColumns": {
"description": "AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column. Top-level and per-version columns are mutually exclusive. Per-version columns must not all be set to identical values (top-level columns should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature. NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must be explicitly set to null",
"items": {
"$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.15.6/_definitions.json#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition"
},
"type": [
"array",
"null"
]
},
"name": {
"description": "Name is the version name, e.g. \u201cv1\u201d, \u201cv2beta1\u201d, etc.",
"type": [
"string",
"null"
]
},
"schema": {
"$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.15.6/_definitions.json#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation",
"description": "Schema describes the schema for CustomResource used in validation, pruning, and defaulting. Top-level and per-version schemas are mutually exclusive. Per-version schemas must not all be set to identical values (top-level validation schema should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature."
},
"served": {
"description": "Served is a flag enabling/disabling this version from being served via REST APIs",
"type": [
"boolean",
"null"
]
},
"storage": {
"description": "Storage flags the version as storage version. There must be exactly one flagged as storage version.",
"type": [
"boolean",
"null"
]
},
"subresources": {
"$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.15.6/_definitions.json#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresources",
"description": "Subresources describes the subresources for CustomResource Top-level and per-version subresources are mutually exclusive. Per-version subresources must not all be set to identical values (top-level subresources should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature."
}
},
"required": [
"name",
"served",
"storage"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}