Fix Kubernetes version for which to get swagger

For now I think it is sufficient to hardcode this. We can come up with a
better schema later.
This commit is contained in:
Thomas Scholtes 2018-07-13 21:53:29 +02:00
parent bc09fbe1b4
commit 59ec184c81
No known key found for this signature in database
GPG Key ID: C5BC340BAB556015

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