Skip to content

Commit

Permalink
Solves kubernetes-sigs#2933: Allow http_proxy, https_proxy and no_pro…
Browse files Browse the repository at this point in the history
…xy environment variables in cert-manager playbook
  • Loading branch information
fllaca committed Jun 27, 2018
1 parent 73a2a18 commit 296abfe
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ cert_manager_cpu_requests: 10m
cert_manager_cpu_limits: 30m
cert_manager_memory_requests: 32Mi
cert_manager_memory_limits: 200Mi
cert_manager_controller_http_proxy: ""
cert_manager_controller_https_proxy: ""
cert_manager_controller_no_proxy: ""
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
{% if cert_manager_controller_http_proxy and cert_manager_controller_http_proxy != "" %}
- name: HTTP_PROXY
value: {{ cert_manager_controller_http_proxy }}
{% endif %}
{% if cert_manager_controller_https_proxy and cert_manager_controller_https_proxy != "" %}
- name: HTTPS_PROXY
value: {{ cert_manager_controller_https_proxy }}
{% endif %}
{% if cert_manager_controller_no_proxy and cert_manager_controller_no_proxy != "" %}
- name: NO_PROXY
value: {{ cert_manager_controller_no_proxy }}
{% endif %}
resources:
requests:
cpu: {{ cert_manager_cpu_requests }}
Expand Down

0 comments on commit 296abfe

Please sign in to comment.