mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
Use host network for container gen-swagger-docs and set https_proxy if behind a proxy
This commit is contained in:
parent
fae7285b00
commit
57011da088
@ -71,6 +71,7 @@ for ver in $VERSIONS; do
|
|||||||
--rm -v "${TMP_IN_HOST}":/output:z \
|
--rm -v "${TMP_IN_HOST}":/output:z \
|
||||||
-v "${SWAGGER_PATH}":/swagger-source:z \
|
-v "${SWAGGER_PATH}":/swagger-source:z \
|
||||||
-v "${REGISTER_FILE}":/register.go:z \
|
-v "${REGISTER_FILE}":/register.go:z \
|
||||||
|
--net=host -e "https_proxy=${KUBERNETES_HTTPS_PROXY:-}" \
|
||||||
gcr.io/google_containers/gen-swagger-docs:v6 \
|
gcr.io/google_containers/gen-swagger-docs:v6 \
|
||||||
"${SWAGGER_JSON_NAME}"
|
"${SWAGGER_JSON_NAME}"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user