Skip to content

Commit

Permalink
Merge pull request #90 from projectsyn/fix/proxy
Browse files Browse the repository at this point in the history
Add proxy variables to PodSpec of scripts
  • Loading branch information
anothertobi authored Jun 14, 2022
2 parents 6c2766a + c77d3d4 commit 7fc5fe3
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
@@ -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 {
Original file line number Diff line number Diff line change
@@ -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:
@@ -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:

0 comments on commit 7fc5fe3

Please sign in to comment.