Skip to content

Commit 57011da

Browse files
committed
Use host network for container gen-swagger-docs and set https_proxy if behind a proxy
1 parent fae7285 commit 57011da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hack/update-api-reference-docs.sh

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ for ver in $VERSIONS; do
7171
--rm -v "${TMP_IN_HOST}":/output:z \
7272
-v "${SWAGGER_PATH}":/swagger-source:z \
7373
-v "${REGISTER_FILE}":/register.go:z \
74+
--net=host -e "https_proxy=${KUBERNETES_HTTPS_PROXY:-}" \
7475
gcr.io/google_containers/gen-swagger-docs:v6 \
7576
"${SWAGGER_JSON_NAME}"
7677
done

0 commit comments

Comments
 (0)