Skip to content

Commit 5b09d17

Browse files
AllenAntheskylemh
authored andcommitted
Add DJANGO_ENV variable (#135)
* Add DJANGO_ENV variable in deployment.yaml instead of using different docker stages * Add newlines
1 parent e10fb70 commit 5b09d17

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

kubernetes/operationcode_python_backend/base/deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ spec:
2222
value: # Requires overlay
2323
- name: SITE_ID
2424
value: "3"
25+
- name: DJANGO_ENV
26+
value: production
2527
- name: DB_ENGINE
2628
value: django.db.backends.postgresql
2729
- name: DB_NAME
@@ -119,4 +121,4 @@ spec:
119121
volumes:
120122
- name: python-backend-secrets
121123
secret:
122-
secretName: python-backend-secrets
124+
secretName: python-backend-secrets

kubernetes/operationcode_python_backend/overlays/prod/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ spec:
1919
value: 1.0.1
2020
- name: SITE_ID
2121
value: "4"
22+
- name: DJANGO_ENV
23+
value: production

kubernetes/operationcode_python_backend/overlays/staging/deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ spec:
1414
- name: ENVIRONMENT
1515
value: aws_staging
1616
- name: RELEASE
17-
value: 1.0.1
17+
value: 1.0.1
18+
- name: DJANGO_ENV
19+
value: staging

0 commit comments

Comments
 (0)