From 9d98f5b4661fddb9855f1ab0379c08d8d5c54e06 Mon Sep 17 00:00:00 2001 From: Ivan Filipovic Date: Mon, 20 Apr 2026 23:11:02 +0200 Subject: [PATCH] feat: verzija v2.0 --- k8s/deployment.yaml | 2 +- main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml index 0b267a0..a985428 100644 --- a/k8s/deployment.yaml +++ b/k8s/deployment.yaml @@ -23,7 +23,7 @@ spec: - containerPort: 8000 env: - name: APP_VERSION - value: "latest" + value: "v2.0" resources: requests: {cpu: 50m, memory: 64Mi} limits: {cpu: 200m, memory: 128Mi} diff --git a/main.py b/main.py index 4d5e4a2..780ff66 100644 --- a/main.py +++ b/main.py @@ -8,7 +8,7 @@ app = FastAPI() def health(): return { "status": "ok", - "version": os.getenv("APP_VERSION", "dev"), + "version": os.getenv("deployment.yaml", "dev"), "timestamp": datetime.datetime.utcnow().isoformat() }