Skip to content

Commit

Permalink
Use env for email report to
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreben committed Nov 16, 2023
1 parent 54f6e2a commit efe413b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ spec:
command: [ "/bin/bash", "-c", "--" ]
args: [ "cd /etc/mail && make && service sendmail restart; cd /home/cybersource && rake download_report >> files/reports.log" 2>&1;" ]
env:
- name: EMAIL_REPORT_TO
valueFrom:
secretKeyRef:
name: cybersource
key: EMAIL_REPORT_TO
- name: MERCHANT_KEY_ID
valueFrom:
secretKeyRef:
Expand Down
5 changes: 5 additions & 0 deletions debug.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ spec:
command: [ "/bin/bash", "-c", "--" ]
args: [ "cd /etc/mail && make && service sendmail restart; while true; do sleep 30; done;" ]
env:
- name: EMAIL_REPORT_TO
valueFrom:
secretKeyRef:
name: cybersource
key: EMAIL_REPORT_TO
- name: MERCHANT_KEY_ID
valueFrom:
secretKeyRef:
Expand Down

0 comments on commit efe413b

Please sign in to comment.