forked from garethr/kubernetes-json-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding extended schemas for the rest of 1.7 series
- Loading branch information
Showing
2,904 changed files
with
588,232 additions
and
479,853 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"description": "APIGroup contains the name, the supported versions, and the preferred version of a group.", | ||
"required": [ | ||
"name", | ||
"versions", | ||
"serverAddressByClientCIDRs" | ||
], | ||
"properties": { | ||
"apiVersion": { | ||
"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", | ||
"type": [ | ||
"string", | ||
"null" | ||
] | ||
}, | ||
"kind": { | ||
"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", | ||
"type": [ | ||
"string", | ||
"null" | ||
] | ||
}, | ||
"name": { | ||
"description": "name is the name of the group.", | ||
"type": [ | ||
"string", | ||
"null" | ||
] | ||
}, | ||
"preferredVersion": { | ||
"description": "preferredVersion is the version preferred by the API server, which probably is the storage version.", | ||
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery" | ||
}, | ||
"serverAddressByClientCIDRs": { | ||
"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.", | ||
"type": [ | ||
"array", | ||
"null" | ||
], | ||
"items": { | ||
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR" | ||
} | ||
}, | ||
"versions": { | ||
"description": "versions are the versions supported in this group.", | ||
"type": [ | ||
"array", | ||
"null" | ||
], | ||
"items": { | ||
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery" | ||
} | ||
} | ||
}, | ||
"$schema": "http://json-schema.org/schema#", | ||
"type": "object" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
{ | ||
"$schema": "http://json-schema.org/schema#", | ||
"description": "APIGroup contains the name, the supported versions, and the preferred version of a group.", | ||
"required": [ | ||
"name", | ||
"versions", | ||
"name", | ||
"versions", | ||
"serverAddressByClientCIDRs" | ||
], | ||
"type": "object", | ||
"description": "APIGroup contains the name, the supported versions, and the preferred version of a group.", | ||
], | ||
"properties": { | ||
"kind": { | ||
"apiVersion": { | ||
"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", | ||
"type": [ | ||
"string", | ||
"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" | ||
}, | ||
"name": { | ||
] | ||
}, | ||
"kind": { | ||
"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", | ||
"type": [ | ||
"string", | ||
"string", | ||
"null" | ||
], | ||
"description": "name is the name of the group." | ||
}, | ||
"versions": { | ||
"items": { | ||
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery" | ||
}, | ||
] | ||
}, | ||
"name": { | ||
"description": "name is the name of the group.", | ||
"type": [ | ||
"array", | ||
"string", | ||
"null" | ||
], | ||
"description": "versions are the versions supported in this group." | ||
}, | ||
"apiVersion": { | ||
] | ||
}, | ||
"preferredVersion": { | ||
"description": "preferredVersion is the version preferred by the API server, which probably is the storage version.", | ||
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery" | ||
}, | ||
"serverAddressByClientCIDRs": { | ||
"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.", | ||
"type": [ | ||
"string", | ||
"array", | ||
"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" | ||
}, | ||
"serverAddressByClientCIDRs": { | ||
], | ||
"items": { | ||
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR" | ||
}, | ||
} | ||
}, | ||
"versions": { | ||
"description": "versions are the versions supported in this group.", | ||
"type": [ | ||
"array", | ||
"array", | ||
"null" | ||
], | ||
"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." | ||
}, | ||
"preferredVersion": { | ||
"description": "preferredVersion is the version preferred by the API server, which probably is the storage version.", | ||
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery" | ||
], | ||
"items": { | ||
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery" | ||
} | ||
} | ||
} | ||
}, | ||
"$schema": "http://json-schema.org/schema#", | ||
"type": "object" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"description": "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", | ||
"required": [ | ||
"groups" | ||
], | ||
"properties": { | ||
"apiVersion": { | ||
"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", | ||
"type": [ | ||
"string", | ||
"null" | ||
] | ||
}, | ||
"groups": { | ||
"description": "groups is a list of APIGroup.", | ||
"type": [ | ||
"array", | ||
"null" | ||
], | ||
"items": { | ||
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" | ||
} | ||
}, | ||
"kind": { | ||
"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", | ||
"type": [ | ||
"string", | ||
"null" | ||
] | ||
} | ||
}, | ||
"$schema": "http://json-schema.org/schema#", | ||
"type": "object" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
{ | ||
"$schema": "http://json-schema.org/schema#", | ||
"description": "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", | ||
"required": [ | ||
"groups" | ||
], | ||
"type": "object", | ||
"description": "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", | ||
], | ||
"properties": { | ||
"kind": { | ||
"apiVersion": { | ||
"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", | ||
"type": [ | ||
"string", | ||
"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" | ||
}, | ||
] | ||
}, | ||
"groups": { | ||
"items": { | ||
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" | ||
}, | ||
"description": "groups is a list of APIGroup.", | ||
"type": [ | ||
"array", | ||
"array", | ||
"null" | ||
], | ||
"description": "groups is a list of APIGroup." | ||
}, | ||
"apiVersion": { | ||
], | ||
"items": { | ||
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" | ||
} | ||
}, | ||
"kind": { | ||
"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", | ||
"type": [ | ||
"string", | ||
"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" | ||
] | ||
} | ||
} | ||
}, | ||
"$schema": "http://json-schema.org/schema#", | ||
"type": "object" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
{ | ||
"description": "APIResource specifies the name of a resource and whether it is namespaced.", | ||
"required": [ | ||
"name", | ||
"singularName", | ||
"namespaced", | ||
"kind", | ||
"verbs" | ||
], | ||
"properties": { | ||
"categories": { | ||
"description": "categories is a list of the grouped resources this resource belongs to (e.g. 'all')", | ||
"type": [ | ||
"array", | ||
"null" | ||
], | ||
"items": { | ||
"type": [ | ||
"string", | ||
"null" | ||
] | ||
} | ||
}, | ||
"kind": { | ||
"description": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", | ||
"type": [ | ||
"string", | ||
"null" | ||
] | ||
}, | ||
"name": { | ||
"description": "name is the plural name of the resource.", | ||
"type": [ | ||
"string", | ||
"null" | ||
] | ||
}, | ||
"namespaced": { | ||
"description": "namespaced indicates if a resource is namespaced or not.", | ||
"type": "boolean" | ||
}, | ||
"shortNames": { | ||
"description": "shortNames is a list of suggested short names of the resource.", | ||
"type": [ | ||
"array", | ||
"null" | ||
], | ||
"items": { | ||
"type": [ | ||
"string", | ||
"null" | ||
] | ||
} | ||
}, | ||
"singularName": { | ||
"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.", | ||
"type": [ | ||
"string", | ||
"null" | ||
] | ||
}, | ||
"verbs": { | ||
"description": "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", | ||
"type": [ | ||
"array", | ||
"null" | ||
], | ||
"items": { | ||
"type": [ | ||
"string", | ||
"null" | ||
] | ||
} | ||
} | ||
}, | ||
"$schema": "http://json-schema.org/schema#", | ||
"type": "object" | ||
} |
Oops, something went wrong.