mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-30 21:30:16 +00:00 
			
		
		
		
	Use host network for container gen-swagger-docs and set https_proxy if behind a proxy
This commit is contained in:
		| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user