Skip to content

Commit fdd2a83

Browse files
committed
fixes to opitional string/array values
1 parent 2fd9069 commit fdd2a83

File tree

39,952 files changed

+5793231
-665273
lines changed

Some content is hidden

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

39,952 files changed

+5793231
-665273
lines changed

build.ps1

+9
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@
99
$repo="garethr/kubernetes-json-schema"
1010

1111
$arr = @("master",
12+
"v1.9.3",
13+
"v1.9.2",
14+
"v1.9.1",
1215
"v1.9.0",
16+
"v1.8.8",
17+
"v1.8.7",
1318
"v1.8.6",
1419
"v1.8.5",
1520
"v1.8.4",
@@ -54,6 +59,10 @@ foreach($version in $arr) {
5459
$schema="https://raw.githubusercontent.com/kubernetes/kubernetes/${version}/api/openapi-spec/swagger.json"
5560
$prefix="https://raw.githubusercontent.com/${repo}/master/${version}/_definitions.json"
5661

62+
Remove-Item "$version-standalone-strict" -Recurse -ErrorAction Ignore
63+
Remove-Item "$version-standalone" -Recurse -ErrorAction Ignore
64+
Remove-Item "$version-local" -Recurse -ErrorAction Ignore
65+
Remove-Item "$version" -Recurse -ErrorAction Ignore
5766
docker run --rm -v ${PWD}:/out garethr/openapi2jsonschema -o "$version-standalone-strict" --kubernetes --stand-alone --strict "$schema"
5867
docker run --rm -v ${PWD}:/out garethr/openapi2jsonschema -o "$version-standalone" --kubernetes --stand-alone "$schema"
5968
docker run --rm -v ${PWD}:/out garethr/openapi2jsonschema -o "$version-local" --kubernetes "$schema"

build.sh

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

1212
declare -a arr=(master
13+
v1.9.3
14+
v1.9.2
15+
v1.9.1
16+
v1.9.0
17+
v1.8.8
18+
v1.8.7
1319
v1.8.6
1420
v1.8.5
1521
v1.8.4

master-local/_definitions.json

+844-121
Large diffs are not rendered by default.

master-local/admissionhookclientconfig.json

-25
This file was deleted.

master-local/aggregationrule.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
"items": {
88
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector"
99
},
10-
"type": "array",
10+
"type": [
11+
"array",
12+
"null"
13+
],
1114
"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"
1215
}
1316
}

0 commit comments

Comments
 (0)