🔧(helm) fix the configuration environment

The configuration also defines the Sentry environment
value, which is currently "production" for every Sentry
event.

- dev: Local
- staging: Staging
- preprod: PreProduction
- prod: Production
This commit is contained in:
Quentin BEY
2024-12-04 15:23:21 +01:00
committed by BEY Quentin
parent d7c654e1aa
commit 632a96ccf4
5 changed files with 18 additions and 3 deletions

View File

@@ -17,6 +17,10 @@ and this project adheres to
- ♻️(contacts) move user profile to contact #572
- ♻️(contacts) split api test module in actions #573
### Fixed
- 🔧(helm) fix the configuration environment #579
## [1.7.1] - 2024-11-28
## [1.7.0] - 2024-11-28

View File

@@ -790,6 +790,17 @@ class Feature(Production):
"""
class Local(Production):
"""
Local environment settings
This configuration is used by the developers to run the application
locally through the helm files (used for tilt)
nota bene: it should inherit from the Production environment.
"""
class Staging(Production):
"""
Staging environment settings

View File

@@ -7,7 +7,7 @@ backend:
replicas: 1
envVars:
DJANGO_CSRF_TRUSTED_ORIGINS: https://desk.127.0.0.1.nip.io,http://desk.127.0.0.1.nip.io
DJANGO_CONFIGURATION: Production
DJANGO_CONFIGURATION: Local
DJANGO_ALLOWED_HOSTS: "*"
DJANGO_SECRET_KEY:
secretKeyRef:

View File

@@ -9,7 +9,7 @@ backend:
argocd.argoproj.io/hook-delete-policy: HookSucceeded
envVars:
DJANGO_CSRF_TRUSTED_ORIGINS: https://desk-preprod.beta.numerique.gouv.fr
DJANGO_CONFIGURATION: Production
DJANGO_CONFIGURATION: PreProduction
DJANGO_ALLOWED_HOSTS: "*"
DJANGO_SECRET_KEY:
secretKeyRef:

View File

@@ -11,7 +11,7 @@ backend:
DJANGO_ADMIN_HEADER_BACKGROUND: "#0f5132"
DJANGO_ADMIN_HEADER_COLOR: "#ffffff"
DJANGO_CSRF_TRUSTED_ORIGINS: http://desk-staging.beta.numerique.gouv.fr,https://desk-staging.beta.numerique.gouv.fr
DJANGO_CONFIGURATION: Production
DJANGO_CONFIGURATION: Staging
DJANGO_ALLOWED_HOSTS: "*"
DJANGO_SECRET_KEY:
secretKeyRef: