Modify update-swagger-spec to stop generating v1beta1,2 spec

pull/6/head
nikhiljindal 2015-05-20 15:24:41 -07:00
parent ef3d03e6f1
commit c0e26d2f38
2 changed files with 1 additions and 11 deletions

View File

@ -5,14 +5,6 @@
"path": "/api",
"description": "get available API versions"
},
{
"path": "/api/v1beta1",
"description": "API at /api/v1beta1 version v1beta1"
},
{
"path": "/api/v1beta2",
"description": "API at /api/v1beta2 version v1beta2"
},
{
"path": "/api/v1beta3",
"description": "API at /api/v1beta3 version v1beta3"

View File

@ -53,7 +53,7 @@ kube::log::status "Starting kube-apiserver"
--etcd_servers="http://${ETCD_HOST}:${ETCD_PORT}" \
--public_address_override="127.0.0.1" \
--kubelet_port=${KUBELET_PORT} \
--runtime_config=api/v1beta3 \
--runtime_config=api/legacy=false \
--service-cluster-ip-range="10.0.0.0/24" 1>&2 &
APISERVER_PID=$!
@ -64,8 +64,6 @@ kube::log::status "Updating " ${SWAGGER_ROOT_DIR}
curl ${SWAGGER_API_PATH} > ${SWAGGER_ROOT_DIR}/resourceListing.json
curl ${SWAGGER_API_PATH}version > ${SWAGGER_ROOT_DIR}/version.json
curl ${SWAGGER_API_PATH}api > ${SWAGGER_ROOT_DIR}/api.json
curl ${SWAGGER_API_PATH}api/v1beta1 > ${SWAGGER_ROOT_DIR}/v1beta1.json
curl ${SWAGGER_API_PATH}api/v1beta2 > ${SWAGGER_ROOT_DIR}/v1beta2.json
curl ${SWAGGER_API_PATH}api/v1beta3 > ${SWAGGER_ROOT_DIR}/v1beta3.json
kube::log::status "SUCCESS"