Skip to content

Commit ddc3f05

Browse files
committed
fix missing master schemas
1 parent 852d7ad commit ddc3f05

File tree

1,536 files changed

+470100
-204876
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,536 files changed

+470100
-204876
lines changed

build.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@
1010
REPO="garethr/kubernetes-json-schema"
1111

1212
declare -a arr=(
13-
# master
14-
v1.14.0
13+
master
14+
)
15+
16+
declare -a old=(
17+
v2.14.0
1518
v1.13.5
1619
v1.13.4
1720
v1.13.3
@@ -26,13 +29,10 @@ declare -a arr=(
2629
v1.11.7
2730
v1.11.6
2831
v1.12.3
29-
# v1.11.5
30-
)
31-
32-
declare -a old=(master
3332
v1.12.2
3433
v1.12.1
3534
v1.12.0
35+
v1.11.5
3636
v1.11.4
3737
v1.11.3
3838
v1.11.2

master-local/affinity.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"description": "Affinity is a group of affinity scheduling rules.",
33
"properties": {
44
"nodeAffinity": {
5-
"$ref": "#/definitions/io.k8s.api.core.v1.NodeAffinity",
5+
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.NodeAffinity",
66
"description": "Describes node affinity scheduling rules for the pod."
77
},
88
"podAffinity": {
9-
"$ref": "#/definitions/io.k8s.api.core.v1.PodAffinity",
9+
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.PodAffinity",
1010
"description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s))."
1111
},
1212
"podAntiAffinity": {
13-
"$ref": "#/definitions/io.k8s.api.core.v1.PodAntiAffinity",
13+
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.PodAntiAffinity",
1414
"description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s))."
1515
}
1616
},

master-local/aggregationrule.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
"clusterRoleSelectors": {
55
"description": "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added",
66
"items": {
7-
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector"
7+
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector"
88
},
9-
"type": "array"
9+
"type": [
10+
"array",
11+
"null"
12+
]
1013
}
1114
},
1215
"type": "object",

master-local/allowedcsidriver.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
"properties": {
44
"name": {
55
"description": "Name is the registered name of the CSI driver",
6-
"type": "string"
6+
"type": [
7+
"string",
8+
"null"
9+
]
710
}
811
},
912
"required": [

master-local/allowedflexvolume.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
"properties": {
44
"driver": {
55
"description": "driver is the name of the Flexvolume driver.",
6-
"type": "string"
6+
"type": [
7+
"string",
8+
"null"
9+
]
710
}
811
},
912
"required": [

master-local/allowedhostpath.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
"properties": {
44
"pathPrefix": {
55
"description": "pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path.\n\nExamples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo`",
6-
"type": "string"
6+
"type": [
7+
"string",
8+
"null"
9+
]
710
},
811
"readOnly": {
912
"description": "when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.",

master-local/apigroup.json

+23-8
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,48 @@
33
"properties": {
44
"apiVersion": {
55
"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",
6-
"type": "string"
6+
"type": [
7+
"string",
8+
"null"
9+
]
710
},
811
"kind": {
912
"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",
10-
"type": "string"
13+
"type": [
14+
"string",
15+
"null"
16+
]
1117
},
1218
"name": {
1319
"description": "name is the name of the group.",
14-
"type": "string"
20+
"type": [
21+
"string",
22+
"null"
23+
]
1524
},
1625
"preferredVersion": {
17-
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery",
26+
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery",
1827
"description": "preferredVersion is the version preferred by the API server, which probably is the storage version."
1928
},
2029
"serverAddressByClientCIDRs": {
2130
"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.",
2231
"items": {
23-
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR"
32+
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR"
2433
},
25-
"type": "array"
34+
"type": [
35+
"array",
36+
"null"
37+
]
2638
},
2739
"versions": {
2840
"description": "versions are the versions supported in this group.",
2941
"items": {
30-
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery"
42+
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery"
3143
},
32-
"type": "array"
44+
"type": [
45+
"array",
46+
"null"
47+
]
3348
}
3449
},
3550
"required": [

master-local/apigrouplist.json

+13-4
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,27 @@
33
"properties": {
44
"apiVersion": {
55
"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",
6-
"type": "string"
6+
"type": [
7+
"string",
8+
"null"
9+
]
710
},
811
"groups": {
912
"description": "groups is a list of APIGroup.",
1013
"items": {
11-
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup"
14+
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup"
1215
},
13-
"type": "array"
16+
"type": [
17+
"array",
18+
"null"
19+
]
1420
},
1521
"kind": {
1622
"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",
17-
"type": "string"
23+
"type": [
24+
"string",
25+
"null"
26+
]
1827
}
1928
},
2029
"required": [

master-local/apiresource.json

+48-12
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,36 @@
44
"categories": {
55
"description": "categories is a list of the grouped resources this resource belongs to (e.g. 'all')",
66
"items": {
7-
"type": "string"
7+
"type": [
8+
"string",
9+
"null"
10+
]
811
},
9-
"type": "array"
12+
"type": [
13+
"array",
14+
"null"
15+
]
1016
},
1117
"group": {
1218
"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\".",
13-
"type": "string"
19+
"type": [
20+
"string",
21+
"null"
22+
]
1423
},
1524
"kind": {
1625
"description": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')",
17-
"type": "string"
26+
"type": [
27+
"string",
28+
"null"
29+
]
1830
},
1931
"name": {
2032
"description": "name is the plural name of the resource.",
21-
"type": "string"
33+
"type": [
34+
"string",
35+
"null"
36+
]
2237
},
2338
"namespaced": {
2439
"description": "namespaced indicates if a resource is namespaced or not.",
@@ -27,28 +42,49 @@
2742
"shortNames": {
2843
"description": "shortNames is a list of suggested short names of the resource.",
2944
"items": {
30-
"type": "string"
45+
"type": [
46+
"string",
47+
"null"
48+
]
3149
},
32-
"type": "array"
50+
"type": [
51+
"array",
52+
"null"
53+
]
3354
},
3455
"singularName": {
3556
"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.",
36-
"type": "string"
57+
"type": [
58+
"string",
59+
"null"
60+
]
3761
},
3862
"storageVersionHash": {
3963
"description": "The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.",
40-
"type": "string"
64+
"type": [
65+
"string",
66+
"null"
67+
]
4168
},
4269
"verbs": {
4370
"description": "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)",
4471
"items": {
45-
"type": "string"
72+
"type": [
73+
"string",
74+
"null"
75+
]
4676
},
47-
"type": "array"
77+
"type": [
78+
"array",
79+
"null"
80+
]
4881
},
4982
"version": {
5083
"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)\".",
51-
"type": "string"
84+
"type": [
85+
"string",
86+
"null"
87+
]
5288
}
5389
},
5490
"required": [

master-local/apiresourcelist.json

+17-5
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,34 @@
33
"properties": {
44
"apiVersion": {
55
"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",
6-
"type": "string"
6+
"type": [
7+
"string",
8+
"null"
9+
]
710
},
811
"groupVersion": {
912
"description": "groupVersion is the group and version this APIResourceList is for.",
10-
"type": "string"
13+
"type": [
14+
"string",
15+
"null"
16+
]
1117
},
1218
"kind": {
1319
"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",
14-
"type": "string"
20+
"type": [
21+
"string",
22+
"null"
23+
]
1524
},
1625
"resources": {
1726
"description": "resources contains the name of the resources and if they are namespaced.",
1827
"items": {
19-
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResource"
28+
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResource"
2029
},
21-
"type": "array"
30+
"type": [
31+
"array",
32+
"null"
33+
]
2234
}
2335
},
2436
"required": [

master-local/apiservice.json

+11-5
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,27 @@
33
"properties": {
44
"apiVersion": {
55
"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",
6-
"type": "string"
6+
"type": [
7+
"string",
8+
"null"
9+
]
710
},
811
"kind": {
912
"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",
10-
"type": "string"
13+
"type": [
14+
"string",
15+
"null"
16+
]
1117
},
1218
"metadata": {
13-
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
19+
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
1420
},
1521
"spec": {
16-
"$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIServiceSpec",
22+
"$ref": "_definitions.json#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIServiceSpec",
1723
"description": "Spec contains information for locating and communicating with a server"
1824
},
1925
"status": {
20-
"$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIServiceStatus",
26+
"$ref": "_definitions.json#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIServiceStatus",
2127
"description": "Status contains derived information about an API server"
2228
}
2329
},

0 commit comments

Comments
 (0)