Merge pull request #24 from dhall-lang/fix-kubernetes-version

Fix Kubernetes version for which to get swagger
This commit is contained in:
Thomas Scholtes 2018-07-13 23:48:23 +02:00 committed by GitHub
commit d7e9d809fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,7 +91,10 @@ def labelize(propName):
return propName
url = 'https://raw.githubusercontent.com/kubernetes/kubernetes/master/api/openapi-spec/swagger.json'
kubernetes_tag = 'v1.11.0'
url = \
'https://raw.githubusercontent.com/kubernetes/kubernetes/{tag}/api/openapi-spec/swagger.json' \
.format(tag=kubernetes_tag)
# See https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/#required-fields
# because k8s API allows PUTS etc with partial data, it's not clear from the data types OR the API which