mirror of
https://github.com/dat515-2025/Group-8.git
synced 2026-03-22 06:57:47 +01:00
feat(infrastructure): use correct url
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
from os.path import dirname, join
|
||||
from time import strptime
|
||||
from uuid import UUID
|
||||
@@ -55,7 +56,7 @@ def _load_mock_bank_transactions(user_id: UUID) -> None:
|
||||
|
||||
transactions = []
|
||||
with httpx.Client() as client:
|
||||
response = client.get("http://127.0.0.1:8000/mock-bank/scrape")
|
||||
response = client.get(f"{os.getenv("APP_POD_URL")}/mock-bank/scrape")
|
||||
if response.status_code != httpx.codes.OK:
|
||||
return
|
||||
for transaction in response.json():
|
||||
|
||||
@@ -120,3 +120,5 @@ spec:
|
||||
secretKeyRef:
|
||||
name: prod
|
||||
key: SMTP_FROM
|
||||
- name: APP_POD_URL
|
||||
value: {{ printf "http://%s.%s.svc.cluster.local" .Values.app.name .Release.Namespace | quote }}
|
||||
|
||||
Reference in New Issue
Block a user