A set of JSON schemas for various Kubernetes versions, extracted from the OpenAPI definitions
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
master-local add missing files for latest versions Aug 21, 2018
master-standalone-strict add missing files for latest versions Aug 21, 2018
master-standalone add missing files for latest versions Aug 21, 2018
master add missing files for latest versions Aug 21, 2018
schemas Adding a set of unit tests which validate the schemas Sep 16, 2017
tests Adding a set of unit tests which validate the schemas Sep 16, 2017
v1.10.0-local Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.10.0-standalone-strict add missing files for latest versions Aug 21, 2018
v1.10.0-standalone Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.10.0 Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.10.1-local Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.10.1-standalone-strict add missing files for latest versions Aug 21, 2018
v1.10.1-standalone Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.10.1 Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.10.2-local Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.10.2-standalone-strict add missing files for latest versions Aug 21, 2018
v1.10.2-standalone Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.10.2 Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.10.3-local Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.10.3-standalone-strict add missing files for latest versions Aug 21, 2018
v1.10.3-standalone Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.10.3 Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.10.4-local Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.10.4-standalone-strict add missing files for latest versions Aug 21, 2018
v1.10.4-standalone Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.10.4 Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.10.5-local add missing files for latest versions Aug 21, 2018
v1.10.5-standalone-strict add missing files for latest versions Aug 21, 2018
v1.10.5-standalone add missing files for latest versions Aug 21, 2018
v1.10.5 add missing files for latest versions Aug 21, 2018
v1.10.6-local add missing files for latest versions Aug 21, 2018
v1.10.6-standalone-strict add missing files for latest versions Aug 21, 2018
v1.10.6-standalone add missing files for latest versions Aug 21, 2018
v1.10.6 add missing files for latest versions Aug 21, 2018
v1.11.0-local add missing files for latest versions Aug 21, 2018
v1.11.0-standalone-strict add missing files for latest versions Aug 21, 2018
v1.11.0-standalone add missing files for latest versions Aug 21, 2018
v1.11.0 add missing files for latest versions Aug 21, 2018
v1.11.1-local add missing files for latest versions Aug 21, 2018
v1.11.1-standalone-strict add missing files for latest versions Aug 21, 2018
v1.11.1-standalone add missing files for latest versions Aug 21, 2018
v1.11.1 add missing files for latest versions Aug 21, 2018
v1.5.0-local fixes to opitional string/array values Feb 24, 2018
v1.5.0-standalone-strict Added strict schemas for testing Sep 3, 2017
v1.5.0-standalone fixes to opitional string/array values Feb 24, 2018
v1.5.0 fixes to opitional string/array values Feb 24, 2018
v1.5.1-local fixes to opitional string/array values Feb 24, 2018
v1.5.1-standalone-strict Added strict schemas for testing Sep 3, 2017
v1.5.1-standalone fixes to opitional string/array values Feb 24, 2018
v1.5.1 fixes to opitional string/array values Feb 24, 2018
v1.5.2-local fixes to opitional string/array values Feb 24, 2018
v1.5.2-standalone-strict Added strict schemas for testing Sep 3, 2017
v1.5.2-standalone fixes to opitional string/array values Feb 24, 2018
v1.5.2 fixes to opitional string/array values Feb 24, 2018
v1.5.3-local fixes to opitional string/array values Feb 24, 2018
v1.5.3-standalone-strict Added strict schemas for testing Sep 3, 2017
v1.5.3-standalone fixes to opitional string/array values Feb 24, 2018
v1.5.3 fixes to opitional string/array values Feb 24, 2018
v1.5.4-local fixes to opitional string/array values Feb 24, 2018
v1.5.4-standalone-strict Added strict schemas for testing Sep 3, 2017
v1.5.4-standalone fixes to opitional string/array values Feb 24, 2018
v1.5.4 fixes to opitional string/array values Feb 24, 2018
v1.5.6-local fixes to opitional string/array values Feb 24, 2018
v1.5.6-standalone-strict Added strict schemas for testing Sep 3, 2017
v1.5.6-standalone fixes to opitional string/array values Feb 24, 2018
v1.5.6 fixes to opitional string/array values Feb 24, 2018
v1.5.7-local Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.5.7-standalone Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.5.7 Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.5.8-local Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.5.8-standalone Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.5.8 Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.6.0-local fixes to opitional string/array values Feb 24, 2018
v1.6.0-standalone-strict Added strict schemas for testing Sep 3, 2017
v1.6.0-standalone fixes to opitional string/array values Feb 24, 2018
v1.6.0 fixes to opitional string/array values Feb 24, 2018
v1.6.1-local fixes to opitional string/array values Feb 24, 2018
v1.6.1-standalone-strict Added strict schemas for testing Sep 3, 2017
v1.6.1-standalone fixes to opitional string/array values Feb 24, 2018
v1.6.1 fixes to opitional string/array values Feb 24, 2018
v1.6.10-local fixes to opitional string/array values Feb 24, 2018
v1.6.10-standalone-strict updated with latest k8s versions Dec 23, 2017
v1.6.10-standalone fixes to opitional string/array values Feb 24, 2018
v1.6.10 fixes to opitional string/array values Feb 24, 2018
v1.6.11-local fixes to opitional string/array values Feb 24, 2018
v1.6.11-standalone-strict updated with latest k8s versions Dec 23, 2017
v1.6.11-standalone fixes to opitional string/array values Feb 24, 2018
v1.6.11 fixes to opitional string/array values Feb 24, 2018
v1.6.12-local fixes to opitional string/array values Feb 24, 2018
v1.6.12-standalone-strict updated with latest k8s versions Dec 23, 2017
v1.6.12-standalone fixes to opitional string/array values Feb 24, 2018
v1.6.12 fixes to opitional string/array values Feb 24, 2018
v1.6.13-local fixes to opitional string/array values Feb 24, 2018
v1.6.13-standalone-strict updated with latest k8s versions Dec 23, 2017
v1.6.13-standalone fixes to opitional string/array values Feb 24, 2018
v1.6.13 fixes to opitional string/array values Feb 24, 2018
v1.6.2-local fixes to opitional string/array values Feb 24, 2018
v1.6.2-standalone-strict Added strict schemas for testing Sep 3, 2017
v1.6.2-standalone fixes to opitional string/array values Feb 24, 2018
v1.6.2 fixes to opitional string/array values Feb 24, 2018
v1.6.3-local fixes to opitional string/array values Feb 24, 2018
v1.6.3-standalone-strict Added strict schemas for testing Sep 3, 2017
v1.6.3-standalone fixes to opitional string/array values Feb 24, 2018
v1.6.3 fixes to opitional string/array values Feb 24, 2018
v1.6.4-local fixes to opitional string/array values Feb 24, 2018
v1.6.4-standalone-strict Added strict schemas for testing Sep 3, 2017
v1.6.4-standalone fixes to opitional string/array values Feb 24, 2018
v1.6.4 fixes to opitional string/array values Feb 24, 2018
v1.6.5-local fixes to opitional string/array values Feb 24, 2018
v1.6.5-standalone-strict Added strict schemas for testing Sep 3, 2017
v1.6.5-standalone fixes to opitional string/array values Feb 24, 2018
v1.6.5 fixes to opitional string/array values Feb 24, 2018
v1.6.6-local fixes to opitional string/array values Feb 24, 2018
v1.6.6-standalone-strict Added strict schemas for testing Sep 3, 2017
v1.6.6-standalone fixes to opitional string/array values Feb 24, 2018
v1.6.6 fixes to opitional string/array values Feb 24, 2018
v1.6.7-local fixes to opitional string/array values Feb 24, 2018
v1.6.7-standalone-strict Added strict schemas for testing Sep 3, 2017
v1.6.7-standalone fixes to opitional string/array values Feb 24, 2018
v1.6.7 fixes to opitional string/array values Feb 24, 2018
v1.6.8-local fixes to opitional string/array values Feb 24, 2018
v1.6.8-standalone-strict Added strict schemas for testing Sep 3, 2017
v1.6.8-standalone fixes to opitional string/array values Feb 24, 2018
v1.6.8 fixes to opitional string/array values Feb 24, 2018
v1.6.9-local fixes to opitional string/array values Feb 24, 2018
v1.6.9-standalone-strict updated with latest k8s versions Dec 23, 2017
v1.6.9-standalone fixes to opitional string/array values Feb 24, 2018
v1.6.9 fixes to opitional string/array values Feb 24, 2018
v1.7.0-local fixes to opitional string/array values Feb 24, 2018
v1.7.0-standalone-strict Added strict schemas for testing Sep 3, 2017
v1.7.0-standalone fixes to opitional string/array values Feb 24, 2018
v1.7.0 fixes to opitional string/array values Feb 24, 2018
v1.7.1-local fixes to opitional string/array values Feb 24, 2018
v1.7.1-standalone-strict Added strict schemas for testing Sep 3, 2017
v1.7.1-standalone fixes to opitional string/array values Feb 24, 2018
v1.7.1 fixes to opitional string/array values Feb 24, 2018
v1.7.10-local fixes to opitional string/array values Feb 24, 2018
v1.7.10-standalone-strict updated with latest k8s versions Dec 23, 2017
v1.7.10-standalone fixes to opitional string/array values Feb 24, 2018
v1.7.10 fixes to opitional string/array values Feb 24, 2018
v1.7.11-local fixes to opitional string/array values Feb 24, 2018
v1.7.11-standalone-strict updated with latest k8s versions Dec 23, 2017
v1.7.11-standalone fixes to opitional string/array values Feb 24, 2018
v1.7.11 fixes to opitional string/array values Feb 24, 2018
v1.7.12-local Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.7.12-standalone Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.7.12 Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.7.13-local Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.7.13-standalone Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.7.13 Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.7.14-local Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.7.14-standalone Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.7.14 Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.7.15-local Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.7.15-standalone Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.7.15 Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.7.16-local Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.7.16-standalone Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.7.16 Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.7.2-local fixes to opitional string/array values Feb 24, 2018
v1.7.2-standalone-strict Added strict schemas for testing Sep 3, 2017
v1.7.2-standalone fixes to opitional string/array values Feb 24, 2018
v1.7.2 fixes to opitional string/array values Feb 24, 2018
v1.7.3-local fixes to opitional string/array values Feb 24, 2018
v1.7.3-standalone-strict Added strict schemas for testing Sep 3, 2017
v1.7.3-standalone fixes to opitional string/array values Feb 24, 2018
v1.7.3 fixes to opitional string/array values Feb 24, 2018
v1.7.4-local fixes to opitional string/array values Feb 24, 2018
v1.7.4-standalone-strict Updated master, added new releases and added strict to all versions Sep 12, 2017
v1.7.4-standalone fixes to opitional string/array values Feb 24, 2018
v1.7.4 fixes to opitional string/array values Feb 24, 2018
v1.7.5-local fixes to opitional string/array values Feb 24, 2018
v1.7.5-standalone-strict Updated master, added new releases and added strict to all versions Sep 12, 2017
v1.7.5-standalone fixes to opitional string/array values Feb 24, 2018
v1.7.5 fixes to opitional string/array values Feb 24, 2018
v1.7.6-local fixes to opitional string/array values Feb 24, 2018
v1.7.6-standalone-strict updated with latest k8s versions Dec 23, 2017
v1.7.6-standalone fixes to opitional string/array values Feb 24, 2018
v1.7.6 fixes to opitional string/array values Feb 24, 2018
v1.7.7-local fixes to opitional string/array values Feb 24, 2018
v1.7.7-standalone-strict updated with latest k8s versions Dec 23, 2017
v1.7.7-standalone fixes to opitional string/array values Feb 24, 2018
v1.7.7 fixes to opitional string/array values Feb 24, 2018
v1.7.8-local fixes to opitional string/array values Feb 24, 2018
v1.7.8-standalone-strict updated with latest k8s versions Dec 23, 2017
v1.7.8-standalone fixes to opitional string/array values Feb 24, 2018
v1.7.8 fixes to opitional string/array values Feb 24, 2018
v1.7.9-local fixes to opitional string/array values Feb 24, 2018
v1.7.9-standalone-strict updated with latest k8s versions Dec 23, 2017
v1.7.9-standalone fixes to opitional string/array values Feb 24, 2018
v1.7.9 fixes to opitional string/array values Feb 24, 2018
v1.8.0-local fixes to opitional string/array values Feb 24, 2018
v1.8.0-standalone-strict fixes to opitional string/array values Feb 24, 2018
v1.8.0-standalone fixes to opitional string/array values Feb 24, 2018
v1.8.0 fixes to opitional string/array values Feb 24, 2018
v1.8.1-local fixes to opitional string/array values Feb 24, 2018
v1.8.1-standalone-strict fixes to opitional string/array values Feb 24, 2018
v1.8.1-standalone fixes to opitional string/array values Feb 24, 2018
v1.8.1 fixes to opitional string/array values Feb 24, 2018
v1.8.10-local Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.8.10-standalone-strict add missing files for latest versions Aug 21, 2018
v1.8.10-standalone Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.8.10 Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.8.11-local Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.8.11-standalone-strict add missing files for latest versions Aug 21, 2018
v1.8.11-standalone Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.8.11 Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.8.12-local Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.8.12-standalone-strict add missing files for latest versions Aug 21, 2018
v1.8.12-standalone Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.8.12 Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.8.13-local Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.8.13-standalone-strict add missing files for latest versions Aug 21, 2018
v1.8.13-standalone Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.8.13 Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.8.14-local add missing files for latest versions Aug 21, 2018
v1.8.14-standalone-strict add missing files for latest versions Aug 21, 2018
v1.8.14-standalone add missing files for latest versions Aug 21, 2018
v1.8.14 add missing files for latest versions Aug 21, 2018
v1.8.15-local add missing files for latest versions Aug 21, 2018
v1.8.15-standalone-strict add missing files for latest versions Aug 21, 2018
v1.8.15-standalone add missing files for latest versions Aug 21, 2018
v1.8.15 add missing files for latest versions Aug 21, 2018
v1.8.2-local fixes to opitional string/array values Feb 24, 2018
v1.8.2-standalone-strict fixes to opitional string/array values Feb 24, 2018
v1.8.2-standalone fixes to opitional string/array values Feb 24, 2018
v1.8.2 fixes to opitional string/array values Feb 24, 2018
v1.8.3-local fixes to opitional string/array values Feb 24, 2018
v1.8.3-standalone-strict fixes to opitional string/array values Feb 24, 2018
v1.8.3-standalone fixes to opitional string/array values Feb 24, 2018
v1.8.3 fixes to opitional string/array values Feb 24, 2018
v1.8.4-local fixes to opitional string/array values Feb 24, 2018
v1.8.4-standalone-strict fixes to opitional string/array values Feb 24, 2018
v1.8.4-standalone fixes to opitional string/array values Feb 24, 2018
v1.8.4 fixes to opitional string/array values Feb 24, 2018
v1.8.5-local fixes to opitional string/array values Feb 24, 2018
v1.8.5-standalone-strict fixes to opitional string/array values Feb 24, 2018
v1.8.5-standalone fixes to opitional string/array values Feb 24, 2018
v1.8.5 fixes to opitional string/array values Feb 24, 2018
v1.8.6-local fixes to opitional string/array values Feb 24, 2018
v1.8.6-standalone-strict fixes to opitional string/array values Feb 24, 2018
v1.8.6-standalone fixes to opitional string/array values Feb 24, 2018
v1.8.6 fixes to opitional string/array values Feb 24, 2018
v1.8.7-local fixes to opitional string/array values Feb 24, 2018
v1.8.7-standalone-strict fixes to opitional string/array values Feb 24, 2018
v1.8.7-standalone fixes to opitional string/array values Feb 24, 2018
v1.8.7 fixes to opitional string/array values Feb 24, 2018
v1.8.8-local fixes to opitional string/array values Feb 24, 2018
v1.8.8-standalone-strict fixes to opitional string/array values Feb 24, 2018
v1.8.8-standalone fixes to opitional string/array values Feb 24, 2018
v1.8.8 fixes to opitional string/array values Feb 24, 2018
v1.8.9-local Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.8.9-standalone Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.8.9 Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.9.0-local fixes to opitional string/array values Feb 24, 2018
v1.9.0-standalone-strict fixes to opitional string/array values Feb 24, 2018
v1.9.0-standalone fixes to opitional string/array values Feb 24, 2018
v1.9.0 fixes to opitional string/array values Feb 24, 2018
v1.9.1-local fixes to opitional string/array values Feb 24, 2018
v1.9.1-standalone-strict fixes to opitional string/array values Feb 24, 2018
v1.9.1-standalone fixes to opitional string/array values Feb 24, 2018
v1.9.1 fixes to opitional string/array values Feb 24, 2018
v1.9.10-local add missing files for latest versions Aug 21, 2018
v1.9.10-standalone-strict add missing files for latest versions Aug 21, 2018
v1.9.10-standalone add missing files for latest versions Aug 21, 2018
v1.9.10 add missing files for latest versions Aug 21, 2018
v1.9.2-local fixes to opitional string/array values Feb 24, 2018
v1.9.2-standalone-strict fixes to opitional string/array values Feb 24, 2018
v1.9.2-standalone fixes to opitional string/array values Feb 24, 2018
v1.9.2 fixes to opitional string/array values Feb 24, 2018
v1.9.3-local fixes to opitional string/array values Feb 24, 2018
v1.9.3-standalone-strict fixes to opitional string/array values Feb 24, 2018
v1.9.3-standalone fixes to opitional string/array values Feb 24, 2018
v1.9.3 fixes to opitional string/array values Feb 24, 2018
v1.9.4-local Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.9.4-standalone-strict add missing files for latest versions Aug 21, 2018
v1.9.4-standalone Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.9.4 Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.9.5-local Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.9.5-standalone-strict add missing files for latest versions Aug 21, 2018
v1.9.5-standalone Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.9.5 Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.9.6-local Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.9.6-standalone-strict add missing files for latest versions Aug 21, 2018
v1.9.6-standalone Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.9.6 Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.9.7-local Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.9.7-standalone-strict add missing files for latest versions Aug 21, 2018
v1.9.7-standalone Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.9.7 Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.9.8-local Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.9.8-standalone-strict add missing files for latest versions Aug 21, 2018
v1.9.8-standalone Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.9.8 Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
v1.9.9-local add missing files for latest versions Aug 21, 2018
v1.9.9-standalone-strict add missing files for latest versions Aug 21, 2018
v1.9.9-standalone add missing files for latest versions Aug 21, 2018
v1.9.9 add missing files for latest versions Aug 21, 2018
.gitignore Adding a set of unit tests which validate the schemas Sep 16, 2017
.travis.yml Adding a set of unit tests which validate the schemas Sep 16, 2017
LICENSE Add an explicit open source license Jun 18, 2017
README.md Added details of strict schemas to README Sep 16, 2017
build.ps1 added latest kubernetes release schemas Aug 4, 2018
build.sh Added K8S 1.10.x, 1.9.x, 1.8.x specs Jun 13, 2018
pytest.ini Adding a set of unit tests which validate the schemas Sep 16, 2017
requirements.txt Adding a set of unit tests which validate the schemas Sep 16, 2017
tox.ini Adding a set of unit tests which validate the schemas Sep 16, 2017

README.md

Kubernetes JSON Schemas

Build Status

While exploring tooling for Kubernetes I had need for schemas to describe the definition files, and went looking for something that didn't require either kubectl or similar installed or even a working Kubernetes installation.

It turns out that the OpenAPI specification contain this information, but not in a particularly usable format for tools which might just want a raw JSON Schema.

This repository contains a set of schemas for most recent Kubernetes versions. For each specified Kubernetes versions you should find four different flavours:

  • vX.Y.Z - URL referenced based on the specified GitHub repository
  • vX.Y.Z-standalone - de-referenced schemas, more useful as standalone documents
  • vX.Y.Z-local - relative references, useful to avoid the network dependency
  • vX.Y.Z-strict - prohibits properties not defined in the schema

Note that the Kubernetes API allows additional properties to be submitted, but kubectl acts like the strict flavour above.

Example

Here are the links to the deployment schemas for Kubernetes 1.6.6:

Usage

There are lots of use cases for these schemas, they are primarily useful as a low-level part of other developer workflow tools. But at a most basic level you can validate a Kubernetes definition.

Here is a very simply example using the Python jsonschema client and an invalid deployment file:

$ jsonschema -F "{error.message}" -i hello-nginx.json 1.6.6-standalone/deployment.json
u'template' is a required property

Specific ideas

As noted these schemas have lots of potential uses for development tools. Here are a few ideas, some of which I've been hacking on:

  • Demonstrating using with the more common YAML serialisation
  • Testing tools to show your Kubernetes configuration files are valid, and against which versions of Kubernetes
  • Migration tools to check your config files are still valid against master or beta releases
  • Integration with code editors, for instance via something like Schema Store
  • Validation of Kubernetes configs generated by higher-level tools, like Helm, Ksonnet or Puppet
  • Visual tools for crafting Kubernetes configurations
  • Tools to show changes between Kubernetes versions

Prior-art

The discussion around wanting JSON Schemas for Kubernetes types has cropped up in a few places, but there are some useful comments on this issue. Joël Harkes reached a similar conclusion to the approach I ended up taking.

Building the schemas yourself

The tooling for generating these schemas is openapi2jsonschema. It's not Kubernetes specific and should work with other OpenAPI specificied APIs too. This should be useful if you're using a pre-release or otherwise modified version of Kubernetes, or something like OpenShift which extends the standard APIs with additional types.