summaryrefslogtreecommitdiffstats
path: root/roles/container_runtime/templates
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-01-05 07:34:52 -0800
committerGitHub <noreply@github.com>2018-01-05 07:34:52 -0800
commit38fd87868572e1cd45b645896fc47b6577271df4 (patch)
treef7074740e99dd7102122d610b9b5ccf9310baf45 /roles/container_runtime/templates
parent9f19afc7529bd7293433b27e834b9ee3479e646f (diff)
parent3e5a8a1b3c545c3050924fc70f105b3c23e7dce7 (diff)
downloadopenshift-38fd87868572e1cd45b645896fc47b6577271df4.tar.gz
openshift-38fd87868572e1cd45b645896fc47b6577271df4.tar.bz2
openshift-38fd87868572e1cd45b645896fc47b6577271df4.tar.xz
openshift-38fd87868572e1cd45b645896fc47b6577271df4.zip
Merge pull request #6615 from giuseppe/cri-o-set-proxy
Automatic merge from submit-queue. cri-o: set proxy variables Make CRI-O honor HTTP_PROXY/HTTPS_PROXY/NO_PROXY. This change https://github.com/kubernetes-incubator/cri-o/pull/1245 in the system container is required
Diffstat (limited to 'roles/container_runtime/templates')
-rw-r--r--roles/container_runtime/templates/crio-network.j29
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/container_runtime/templates/crio-network.j2 b/roles/container_runtime/templates/crio-network.j2
new file mode 100644
index 000000000..763be97d7
--- /dev/null
+++ b/roles/container_runtime/templates/crio-network.j2
@@ -0,0 +1,9 @@
+{% if 'http_proxy' in openshift.common %}
+HTTP_PROXY={{ openshift.common.http_proxy }}
+{% endif %}
+{% if 'https_proxy' in openshift.common %}
+HTTPS_PROXY={{ openshift.common.https_proxy }}
+{% endif %}
+{% if 'no_proxy' in openshift.common %}
+NO_PROXY={{ openshift.common.no_proxy }}
+{% endif %}