From 562a01c5f6bb99c1e108cb42f7bbf87dc559bd1e Mon Sep 17 00:00:00 2001 From: Hassan Zamani Date: Sun, 2 Jul 2017 16:11:05 +0430 Subject: [PATCH] Respect http_proxy settings in helm wrapper --- roles/kubernetes-apps/helm/templates/helm-container.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/kubernetes-apps/helm/templates/helm-container.j2 b/roles/kubernetes-apps/helm/templates/helm-container.j2 index 68210ea30..1200065cc 100644 --- a/roles/kubernetes-apps/helm/templates/helm-container.j2 +++ b/roles/kubernetes-apps/helm/templates/helm-container.j2 @@ -2,6 +2,9 @@ {{ docker_bin_dir }}/docker run --rm \ --net=host \ --name=helm \ + {% if http_proxy %}-e HTTP_PROXY={{ http_proxy }} \{% endif %} + {% if https_proxy %}-e HTTPS_PROXY={{ https_proxy }} \{% endif %} + {% if no_proxy %}-e NO_PROXY={{ no_proxy }} \{% endif %} -v /etc/ssl:/etc/ssl:ro \ -v {{ helm_home_dir }}:{{ helm_home_dir }}:rw \ {% for dir in ssl_ca_dirs -%}