mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Drop version from static openapi json file
This commit is contained in:
parent
00deec8719
commit
b44d7c8d3c
2
api/openapi-spec/swagger.json
generated
2
api/openapi-spec/swagger.json
generated
@ -20114,7 +20114,7 @@
|
||||
},
|
||||
"info": {
|
||||
"title": "Kubernetes",
|
||||
"version": "v1.18.0"
|
||||
"version": "unversioned"
|
||||
},
|
||||
"paths": {
|
||||
"/api/": {
|
||||
|
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user