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