Skip to content

Commit

Permalink
Add proxy variables to PodSpec of scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
anothertobi committed Jun 13, 2022
1 parent 6c2766a commit c77d3d4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions component/acme-dns.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ local scriptPodSpec(name, script) = {
CLIENT_SECRET_NAME: clientSecret.metadata.name,
ACME_DNS_API: acme_dns_api.endpoint,
ACME_DNS_FQDNS: '%s' % [ acme_dns_api.fqdns ],
HTTP_PROXY: params.http_proxy,
HTTPS_PROXY: params.https_proxy,
NO_PROXY: params.no_proxy,
},
envFrom: std.prune([
if has_registration_secret then {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,16 @@ spec:
value: /etc/acme-dns
- name: HOME
value: /home/acme-dns
- name: HTTPS_PROXY
value: ''
- name: HTTP_PROXY
value: ''
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: NO_PROXY
value: ''
- name: SCRIPTS_PATH
value: /scripts
envFrom:
Expand Down Expand Up @@ -216,10 +222,16 @@ spec:
value: /etc/acme-dns
- name: HOME
value: /home/acme-dns
- name: HTTPS_PROXY
value: ''
- name: HTTP_PROXY
value: ''
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: NO_PROXY
value: ''
- name: SCRIPTS_PATH
value: /scripts
envFrom:
Expand Down

0 comments on commit c77d3d4

Please sign in to comment.