add v1 swagger-spec; update existing swagger-spec

pull/6/head
Chao Xu 2015-06-01 16:16:20 -07:00
parent 1f526a5f89
commit 66e4f7b053
4 changed files with 12051 additions and 5 deletions

View File

@ -5,6 +5,10 @@
"path": "/api/v1beta3",
"description": "API at /api/v1beta3 version v1beta3"
},
{
"path": "/api/v1",
"description": "API at /api/v1 version v1"
},
{
"path": "/api",
"description": "get available API versions"
@ -19,4 +23,4 @@
"title": "",
"description": ""
}
}
}

12044
api/swagger-spec/v1.json Normal file

File diff suppressed because it is too large Load Diff

View File

@ -11685,10 +11685,6 @@
"type": "any",
"description": "label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template"
},
"templateRef": {
"$ref": "v1beta3.ObjectReference",
"description": "reference to an object that describes the pod that will be created if insufficient replicas are detected"
},
"template": {
"$ref": "v1beta3.PodTemplateSpec",
"description": "object that describes the pod that will be created if insufficient replicas are detected; takes precendence over templateRef"

View File

@ -53,6 +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/v1 \
--runtime_config=api/legacy=false \
--service-cluster-ip-range="10.0.0.0/24" 1>&2 &
APISERVER_PID=$!
@ -65,5 +66,6 @@ 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/v1beta3 > ${SWAGGER_ROOT_DIR}/v1beta3.json
curl ${SWAGGER_API_PATH}api/v1 > ${SWAGGER_ROOT_DIR}/v1.json
kube::log::status "SUCCESS"