From 4af204ae68fc2a533f4202deacd4408df0f72738 Mon Sep 17 00:00:00 2001 From: phil Date: Wed, 25 Dec 2024 18:26:18 +0100 Subject: [PATCH] Deployment: bump version; cosmetic --- deployment/kubernetes/gisaf.yaml | 6 +++--- src/gisaf/config.py | 2 +- src/gisaf/models/bootstrap.py | 4 +++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/deployment/kubernetes/gisaf.yaml b/deployment/kubernetes/gisaf.yaml index df1aaab..a0c45b0 100644 --- a/deployment/kubernetes/gisaf.yaml +++ b/deployment/kubernetes/gisaf.yaml @@ -106,7 +106,7 @@ spec: - "gisaf-backend" initContainers: - name: gisaf-backend-initdb - image: code.philo.ydns.eu/philorg/gisaf-backend:0.5.0-alpha.5 + image: code.philo.ydns.eu/philorg/gisaf-backend:0.5.0-alpha.8 imagePullPolicy: Always command: ["gisaf", "create-db"] env: @@ -114,7 +114,7 @@ spec: value: gisaf-database containers: - name: gisaf-backend - image: code.philo.ydns.eu/philorg/gisaf-backend:0.5.0-alpha.5 + image: code.philo.ydns.eu/philorg/gisaf-backend:0.5.0-alpha.8 imagePullPolicy: Always env: - name: GISAF__GISAF_LIVE__REDIS @@ -122,7 +122,7 @@ spec: - name: GISAF__DB__HOST value: gisaf-database - name: gisaf-frontend - image: code.philo.ydns.eu/philorg/gisaf-frontend:0.5.0-alpha.12 + image: code.philo.ydns.eu/philorg/gisaf-frontend:0.5.0-alpha.13 imagePullPolicy: Always args: - nginx diff --git a/src/gisaf/config.py b/src/gisaf/config.py index 9e9a465..a304d31 100644 --- a/src/gisaf/config.py +++ b/src/gisaf/config.py @@ -30,7 +30,7 @@ def get_version(): v_git_describe.check_returncode() version = v_git_describe.stdout.strip() except Exception: - logger.warn("Version not set in Python package and cannot determine ") + logger.warn("Version not set in Python package and cannot run git describe") version = "?" return version diff --git a/src/gisaf/models/bootstrap.py b/src/gisaf/models/bootstrap.py index 9455af2..fbd8d08 100644 --- a/src/gisaf/models/bootstrap.py +++ b/src/gisaf/models/bootstrap.py @@ -3,6 +3,7 @@ from pydantic import BaseModel from gisaf.config import conf, Map, Measures, Geo from gisaf.models.authentication import UserRead + class Proj(BaseModel): srid: str srid_for_proj: str @@ -16,4 +17,5 @@ class BootstrapData(BaseModel): geo: Geo = conf.geo measures: Measures = conf.measures redirect: str = conf.gisaf.redirect - user: UserRead | None = None # type: ignore \ No newline at end of file + user: UserRead | None = None # type: ignore +