feat(infrastructure): use correct url

This commit is contained in:
2025-11-12 01:09:29 +01:00
parent 50f37c1161
commit d57dd82a64
2 changed files with 4 additions and 1 deletions

View File

@@ -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():

View File

@@ -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 }}