Merge pull request #84654 from liggitt/drop-openapi-version

Drop version from static openapi json file
This commit is contained in:
Kubernetes Prow Robot 2020-01-08 11:59:39 -08:00 committed by GitHub
commit 79bb357193
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -17935,7 +17935,7 @@
},
"info": {
"title": "Kubernetes",
"version": "v1.18.0"
"version": "unversioned"
},
"paths": {
"/api/": {

View File

@ -86,7 +86,7 @@ fi
kube::log::status "Updating " "${OPENAPI_ROOT_DIR}"
curl -w "\n" -fs "${API_HOST}:${API_PORT}/openapi/v2" | jq -S . > "${OPENAPI_ROOT_DIR}/swagger.json"
curl -w "\n" -fs "${API_HOST}:${API_PORT}/openapi/v2" | jq -S '.info.version="unversioned"' > "${OPENAPI_ROOT_DIR}/swagger.json"
kube::log::status "SUCCESS"