From 57011da0887cead18435420488699bd9a7948edc Mon Sep 17 00:00:00 2001 From: xiangpengzhao Date: Sun, 12 Jun 2016 00:01:46 -0400 Subject: [PATCH] Use host network for container gen-swagger-docs and set https_proxy if behind a proxy --- hack/update-api-reference-docs.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/hack/update-api-reference-docs.sh b/hack/update-api-reference-docs.sh index 55108131bc8..72cac90791a 100755 --- a/hack/update-api-reference-docs.sh +++ b/hack/update-api-reference-docs.sh @@ -71,6 +71,7 @@ for ver in $VERSIONS; do --rm -v "${TMP_IN_HOST}":/output:z \ -v "${SWAGGER_PATH}":/swagger-source:z \ -v "${REGISTER_FILE}":/register.go:z \ + --net=host -e "https_proxy=${KUBERNETES_HTTPS_PROXY:-}" \ gcr.io/google_containers/gen-swagger-docs:v6 \ "${SWAGGER_JSON_NAME}" done