Drop version from static openapi json file

This commit is contained in:
Jordan Liggitt 2019-11-01 13:19:23 -04:00
parent 00deec8719
commit b44d7c8d3c
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -86,7 +86,7 @@ fi
kube::log::status "Updating " "${OPENAPI_ROOT_DIR}" 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" kube::log::status "SUCCESS"