Skip to content

Commit a89c5e3

Browse files
committed
make dbconnector port configurable
1 parent f7172b0 commit a89c5e3

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
@@ -465,6 +465,9 @@ dbconnector:
465465
postgresPoolMaxSize: 100
466466
httpAgentMaxSockets: 1000
467467

468+
# Which port to listen on. Used for both Pods and Service for dbconnector.
469+
port: 3002
470+
468471
# Extra annotations specific to standalone dbconnector pods.
469472
annotations: {}
470473

values.yaml

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

468+
# Which port to listen on. Used for both Pods and Service for dbconnector.
469+
port: 3002
470+
468471
# Extra annotations specific to standalone dbconnector pods.
469472
annotations: {}
470473

0 commit comments

Comments
 (0)