Skip to content

Commit

Permalink
add missing files for latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
garethr committed Nov 18, 2018
1 parent a5b5c0d commit 1930829
Show file tree
Hide file tree
Showing 26,470 changed files with 10,785,720 additions and 15 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
31 changes: 16 additions & 15 deletions build.ps1
Expand Up @@ -8,11 +8,14 @@

$repo="garethr/kubernetes-json-schema"

$arr = @("master",
"v1.11.1",
$arr = @("v1.11.4",
"v1.11.3",
"v1.11.2",
"v1.11.0",
"v1.10.5",
"v1.10.5",
"v1.10.10",
"v1.10.9",
"v1.10.8",
"v1.10.7",
"v1.10.6",
"v1.10.5",
"v1.10.4",
Expand All @@ -36,9 +39,7 @@ $arr = @("master",
"v1.8.13",
"v1.8.12",
"v1.8.11",
"v1.8.10")

$arr2 = @("master",
"v1.8.10",
"v1.8.9",
"v1.8.8",
"v1.8.7",
Expand Down Expand Up @@ -86,14 +87,14 @@ foreach($version in $arr) {
$schema="https://raw.githubusercontent.com/kubernetes/kubernetes/${version}/api/openapi-spec/swagger.json"
$prefix="https://raw.githubusercontent.com/${repo}/master/${version}/_definitions.json"

# Remove-Item "$version-standalone-strict" -Recurse -ErrorAction Ignore
# Remove-Item "$version-standalone" -Recurse -ErrorAction Ignore
# Remove-Item "$version-local" -Recurse -ErrorAction Ignore
# Remove-Item "$version" -Recurse -ErrorAction Ignore
# docker run --rm -v ${PWD}:/out garethr/openapi2jsonschema -o "$version-standalone-strict" --kubernetes --stand-alone --strict "$schema"
# docker run --rm -v ${PWD}:/out garethr/openapi2jsonschema -o "$version-standalone" --kubernetes --stand-alone "$schema"
# docker run --rm -v ${PWD}:/out garethr/openapi2jsonschema -o "$version-local" --kubernetes "$schema"
# docker run --rm -v ${PWD}:/out garethr/openapi2jsonschema -o "$version" --kubernetes --prefix "$prefix" "$schema"
Remove-Item "$version-standalone-strict" -Recurse -ErrorAction Ignore
Remove-Item "$version-standalone" -Recurse -ErrorAction Ignore
Remove-Item "$version-local" -Recurse -ErrorAction Ignore
Remove-Item "$version" -Recurse -ErrorAction Ignore
docker run --rm -v ${PWD}:/out garethr/openapi2jsonschema -o "$version-standalone-strict" --kubernetes --stand-alone --strict "$schema"
docker run --rm -v ${PWD}:/out garethr/openapi2jsonschema -o "$version-standalone" --kubernetes --stand-alone "$schema"
docker run --rm -v ${PWD}:/out garethr/openapi2jsonschema -o "$version-local" --kubernetes "$schema"
docker run --rm -v ${PWD}:/out garethr/openapi2jsonschema -o "$version" --kubernetes --prefix "$prefix" "$schema"
dos2unix.exe "$version-standalone-strict/*"
dos2unix.exe "$version-standalone/*"
dos2unix.exe "$version-local/*"
Expand Down
36 changes: 36 additions & 0 deletions master-local/lease.json
@@ -0,0 +1,36 @@
{
"x-kubernetes-group-version-kind": [
{
"kind": "Lease",
"version": "v1beta1",
"group": "coordination.k8s.io"
}
],
"$schema": "http://json-schema.org/schema#",
"type": "object",
"description": "Lease defines a lease concept.",
"properties": {
"kind": {
"type": [
"string",
"null"
],
"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"
},
"spec": {
"description": "Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status",
"$ref": "_definitions.json#/definitions/io.k8s.api.coordination.v1beta1.LeaseSpec"
},
"apiVersion": {
"type": [
"string",
"null"
],
"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"
},
"metadata": {
"description": "More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata",
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
}
}
}
45 changes: 45 additions & 0 deletions master-local/leaselist.json
@@ -0,0 +1,45 @@
{
"description": "LeaseList is a list of Lease objects.",
"required": [
"items"
],
"x-kubernetes-group-version-kind": [
{
"kind": "LeaseList",
"version": "v1beta1",
"group": "coordination.k8s.io"
}
],
"$schema": "http://json-schema.org/schema#",
"type": "object",
"properties": {
"items": {
"items": {
"$ref": "_definitions.json#/definitions/io.k8s.api.coordination.v1beta1.Lease"
},
"type": [
"array",
"null"
],
"description": "Items is a list of schema objects."
},
"kind": {
"type": [
"string",
"null"
],
"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"
},
"apiVersion": {
"type": [
"string",
"null"
],
"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"
},
"metadata": {
"description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata",
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta"
}
}
}
32 changes: 32 additions & 0 deletions master-local/leasespec.json
@@ -0,0 +1,32 @@
{
"$schema": "http://json-schema.org/schema#",
"type": "object",
"description": "LeaseSpec is a specification of a Lease.",
"properties": {
"leaseDurationSeconds": {
"type": "integer",
"description": "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime.",
"format": "int32"
},
"holderIdentity": {
"type": [
"string",
"null"
],
"description": "holderIdentity contains the identity of the holder of a current lease."
},
"acquireTime": {
"description": "acquireTime is a time when the current lease was acquired.",
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime"
},
"renewTime": {
"description": "renewTime is a time when the current holder of a lease has last updated the lease.",
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime"
},
"leaseTransitions": {
"type": "integer",
"description": "leaseTransitions is the number of transitions of a lease between holders.",
"format": "int32"
}
}
}
48 changes: 48 additions & 0 deletions master-standalone-strict/cinderpersistentvolumesource.json
@@ -0,0 +1,48 @@
{
"$schema": "http://json-schema.org/schema#",
"required": [
"volumeID"
],
"type": "object",
"description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.",
"properties": {
"readOnly": {
"type": "boolean",
"description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md"
},
"secretRef": {
"additionalProperties": false,
"description": "SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace",
"properties": {
"namespace": {
"type": [
"string",
"null"
],
"description": "Namespace defines the space within which the secret name must be unique."
},
"name": {
"type": [
"string",
"null"
],
"description": "Name is unique within a namespace to reference a secret resource."
}
}
},
"volumeID": {
"type": [
"string",
"null"
],
"description": "volume id used to identify the volume in cinder More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md"
},
"fsType": {
"type": [
"string",
"null"
],
"description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md"
}
}
}
47 changes: 47 additions & 0 deletions master-standalone-strict/configmapnodeconfigsource.json
@@ -0,0 +1,47 @@
{
"$schema": "http://json-schema.org/schema#",
"required": [
"namespace",
"name",
"kubeletConfigKey"
],
"type": "object",
"description": "ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node.",
"properties": {
"kubeletConfigKey": {
"type": [
"string",
"null"
],
"description": "KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases."
},
"namespace": {
"type": [
"string",
"null"
],
"description": "Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases."
},
"uid": {
"type": [
"string",
"null"
],
"description": "UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status."
},
"name": {
"type": [
"string",
"null"
],
"description": "Name is the metadata.name of the referenced ConfigMap. This field is required in all cases."
},
"resourceVersion": {
"type": [
"string",
"null"
],
"description": "ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status."
}
}
}
52 changes: 52 additions & 0 deletions master-standalone-strict/customresourcecolumndefinition.json
@@ -0,0 +1,52 @@
{
"$schema": "http://json-schema.org/schema#",
"required": [
"name",
"type",
"JSONPath"
],
"type": "object",
"description": "CustomResourceColumnDefinition specifies a column for server side printing.",
"properties": {
"description": {
"type": [
"string",
"null"
],
"description": "description is a human readable description of this column."
},
"format": {
"type": [
"string",
"null"
],
"description": "format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more."
},
"priority": {
"type": "integer",
"description": "priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a higher priority.",
"format": "int32"
},
"JSONPath": {
"type": [
"string",
"null"
],
"description": "JSONPath is a simple JSON path, i.e. with array notation."
},
"type": {
"type": [
"string",
"null"
],
"description": "type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more."
},
"name": {
"type": [
"string",
"null"
],
"description": "name is a human readable name for the column."
}
}
}
26 changes: 26 additions & 0 deletions master-standalone-strict/customresourcedefinitionversion.json
@@ -0,0 +1,26 @@
{
"$schema": "http://json-schema.org/schema#",
"required": [
"name",
"served",
"storage"
],
"type": "object",
"properties": {
"served": {
"type": "boolean",
"description": "Served is a flag enabling/disabling this version from being served via REST APIs"
},
"storage": {
"type": "boolean",
"description": "Storage flags the version as storage version. There must be exactly one flagged as storage version."
},
"name": {
"type": [
"string",
"null"
],
"description": "Name is the version name, e.g. \u201cv1\u201d, \u201cv2beta1\u201d, etc."
}
}
}

0 comments on commit 1930829

Please sign in to comment.