Skip to content

Commit

Permalink
use db-connect-modules secret
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreben committed Oct 20, 2023
1 parent b03755a commit 3ea9046
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
name: cybersource
envFrom:
- secretRef:
name: cybersource
name: db-connect-modules
imagePullPolicy: Always
command: [ "/bin/bash", "-c", "--" ]
args: [ "rake download_report >> files/reports.log" 2>&1 ]
Expand Down
5 changes: 4 additions & 1 deletion cyber_source/download_payment_batch_detail_report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ def download_report(report_date)
def folio_client
FolioClient.configure(
url: ENV.fetch('OKAPI_URL', 'http://okapi:9130'),
login_params: { 'username' => ENV.fetch('APP_USERNAME', nil), 'password' => ENV.fetch('APP_PASSWORD', nil) },
login_params: {
'username' => ENV.fetch('OKAPI_READONLY_APP_USER', nil),
'password' => ENV.fetch('OKAPI_READONLY_APP_PASSWORD', nil)
},
okapi_headers: { 'X-Okapi-Tenant' => 'sul', 'User-Agent' => 'FolioApiClient' }
)
end
Expand Down
2 changes: 1 addition & 1 deletion debug.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
name: cybersource
envFrom:
- secretRef:
name: cybersource
name: db-connect-modules
imagePullPolicy: Always
# Just spin & wait forever
command: [ "/bin/bash", "-c", "--" ]
Expand Down

0 comments on commit 3ea9046

Please sign in to comment.