Skip to content

Commit df73d5f

Browse files
authored
fix: adds DEPLOYMENT_ENV env var to console services (#491)
1 parent 2c95ae3 commit df73d5f

File tree

28 files changed

+54
-39
lines changed

28 files changed

+54
-39
lines changed

charts/console-api/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type: application
1414
# This is the chart version. This version number should be incremented each time you make changes
1515
# to the chart and its templates, including the app version.
1616
# Versions are expected to follow Semantic Versioning (https://semver.org/)
17-
version: 0.7.6
17+
version: 0.7.7
1818
# This is the version number of the application being deployed. This version number should be
1919
# incremented each time you make changes to the application. Versions are not expected to
2020
# follow Semantic Versioning. They should reflect the version the application is using.

charts/console-api/templates/configmap.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ metadata:
44
name: {{ .Chart.Name }}-{{ .Values.chain }}-config
55
data:
66
{{ include "app.env" . | indent 2 }}
7+
PORT: "3000"
8+
NETWORK: {{ .Values.chain }}
9+
DEPLOYMENT_ENV: {{ .Values.deploymentEnv }}
10+
POSTGRES_BACKGROUND_JOBS_SCHEMA: pgboss_{{ .Values.chain }}

charts/console-api/templates/deployment-bg-jobs.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,10 @@ spec:
3434
- configMapRef:
3535
name: {{ .Chart.Name }}-{{ .Values.chain }}-config
3636
env:
37-
- name: PORT
38-
value: "3000"
3937
- name: OTEL_SERVICE_NAME
4038
value: {{ .Chart.Name }}-{{ .Values.chain }}-bg-jobs
41-
- name: NETWORK
42-
value: {{ .Values.chain }}
4339
- name: INTERFACE
4440
value: "background-jobs"
45-
- name: POSTGRES_BACKGROUND_JOBS_SCHEMA
46-
value: pgboss_{{ .Values.chain }}
4741
resources:
4842
limits:
4943
cpu: "0.5"

charts/console-api/templates/deployment.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,10 @@ spec:
3434
- configMapRef:
3535
name: {{ .Chart.Name }}-{{ .Values.chain }}-config
3636
env:
37-
- name: PORT
38-
value: "3000"
3937
- name: OTEL_SERVICE_NAME
4038
value: {{ .Chart.Name }}-{{ .Values.chain }}
41-
- name: NETWORK
42-
value: {{ .Values.chain }}
4339
- name: INTERFACE
4440
value: "rest"
45-
- name: POSTGRES_BACKGROUND_JOBS_SCHEMA
46-
value: pgboss_{{ .Values.chain }}
4741
resources:
4842
limits:
4943
cpu: "4"

charts/console-api/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
appVersion: "2.79.3"
22
hostNames:
33

4+
deploymentEnv: staging
5+
chain: sandbox
6+
47
backgroundJobs:
58
replicas: 1

charts/console-web-testnet/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type: application
1414
# This is the chart version. This version number should be incremented each time you make changes
1515
# to the chart and its templates, including the app version.
1616
# Versions are expected to follow Semantic Versioning (https://semver.org/)
17-
version: 0.6.0
17+
version: 0.6.1
1818
# This is the version number of the application being deployed. This version number should be
1919
# incremented each time you make changes to the application. Versions are not expected to
2020
# follow Semantic Versioning. They should reflect the version the application is using.

charts/console-web-testnet/templates/deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ spec:
2828
env:
2929
- name: PORT
3030
value: "3000"
31+
- name: DEPLOYMENT_ENV
32+
value: {{ .Values.deploymentEnv }}
3133
resources:
3234
limits:
3335
cpu: "1"
@@ -45,4 +47,4 @@ spec:
4547
periodSeconds: 10
4648
envFrom:
4749
- secretRef:
48-
name: {{ .Chart.Name }}-secret
50+
name: {{ .Chart.Name }}-secret
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
appVersion: "2.46.0"
22
hostName: console-beta.akash.network
3+
deploymentEnv: staging
4+
chain: testnet

charts/console-web/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type: application
1414
# This is the chart version. This version number should be incremented each time you make changes
1515
# to the chart and its templates, including the app version.
1616
# Versions are expected to follow Semantic Versioning (https://semver.org/)
17-
version: 0.5.1
17+
version: 0.5.2
1818
# This is the version number of the application being deployed. This version number should be
1919
# incremented each time you make changes to the application. Versions are not expected to
2020
# follow Semantic Versioning. They should reflect the version the application is using.

charts/console-web/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ spec:
3535
value: "3000"
3636
- name: OTEL_SERVICE_NAME
3737
value: {{ .Chart.Name }}
38+
- name: DEPLOYMENT_ENV
39+
value: {{ .Values.deploymentEnv }}
3840
resources:
3941
limits:
4042
cpu: "1"

0 commit comments

Comments
 (0)