Skip to content

Commit 91da358

Browse files
ryanarteconaslaminad
authored andcommitted
make dbconnector port configurable
1 parent 218b0ae commit 91da358

File tree

6 files changed

+13
-7
lines changed

6 files changed

+13
-7
lines changed

charts/retool/templates/deployment_backend.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ spec:
123123
- name: DB_CONNECTOR_HOST
124124
value: http://{{ template "retool.fullname" . }}-dbconnector
125125
- name: DB_CONNECTOR_PORT
126-
value: '3002'
126+
value: {{ .Values.dbconnector.port | quote }}
127127
{{- end }}
128128
{{- if .Values.config.dbConnectorTimeout }}
129129
- name: DBCONNECTOR_QUERY_TIMEOUT_MS

charts/retool/templates/deployment_dbconnector.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ spec:
4343
readinessProbe:
4444
httpGet:
4545
path: {{ .Values.readinessProbe.path }}
46-
port: 3002
46+
port: {{ .Values.dbconnector.port }}
4747
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
4848
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
4949
successThreshold: {{ .Values.readinessProbe.successThreshold }}
5050
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
5151
livenessProbe:
5252
httpGet:
5353
path: {{ .Values.livenessProbe.path }}
54-
port: 3002
54+
port: {{ .Values.dbconnector.port }}
5555
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
5656
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
5757
failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
@@ -265,6 +265,6 @@ spec:
265265
ports:
266266
- protocol: TCP
267267
name: http-server
268-
port: 3002
269-
targetPort: 3002
268+
port: {{ .Values.dbconnector.port }}
269+
targetPort: {{ .Values.dbconnector.port }}
270270
{{- end }}

charts/retool/templates/deployment_workflows.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ spec:
8787
- name: DB_CONNECTOR_HOST
8888
value: http://{{ template "retool.fullname" . }}-dbconnector
8989
- name: DB_CONNECTOR_PORT
90-
value: '3002'
90+
value: {{ .Values.dbconnector.port | quote }}
9191
{{- end }}
9292
{{ if and ( include "retool_version_with_java_dbconnector_opt_out" . ) ( not $.Values.dbconnector.java.enabled ) }}
9393
- name: DISABLE_JAVA_DBCONNECTOR

charts/retool/templates/deployment_workflows_worker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ spec:
8282
- name: DB_CONNECTOR_HOST
8383
value: http://{{ template "retool.fullname" . }}-dbconnector
8484
- name: DB_CONNECTOR_PORT
85-
value: '3002'
85+
value: {{ .Values.dbconnector.port | quote }}
8686
{{ end }}
8787
- name: DBCONNECTOR_QUERY_TIMEOUT_MS
8888
{{- if .Values.workflows.dbConnectorTimeout }}

charts/retool/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,9 @@ dbconnector:
467467
postgresPoolMaxSize: 100
468468
httpAgentMaxSockets: 1000
469469

470+
# Which port to listen on. Used for both Pods and Service for dbconnector.
471+
port: 3002
472+
470473
# Extra annotations specific to standalone dbconnector pods.
471474
annotations: {}
472475

values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,9 @@ dbconnector:
467467
postgresPoolMaxSize: 100
468468
httpAgentMaxSockets: 1000
469469

470+
# Which port to listen on. Used for both Pods and Service for dbconnector.
471+
port: 3002
472+
470473
# Extra annotations specific to standalone dbconnector pods.
471474
annotations: {}
472475

0 commit comments

Comments
 (0)