Skip to content

Commit

Permalink
same logic for http and https ports
Browse files Browse the repository at this point in the history
  • Loading branch information
micheelengronne committed Feb 6, 2025
1 parent bfd8153 commit d83edbe
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/trino/templates/configmap-coordinator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ data:
{{- end }}
{{- if .Values.server.config.https.enabled }}
http-server.https.enabled=true
http-server.https.port={{ .Values.server.config.https.port }}
http-server.https.port={{ .Values.service.tlsPort }}
http-server.https.keystore.path={{ .Values.server.config.https.keystore.path }}
http-server.https.keystore.key={{ .Values.server.config.https.keystore.key }}
http-server.https.keymanager.password={{ .Values.server.config.https.keymanager.password }}
Expand Down
2 changes: 1 addition & 1 deletion charts/trino/templates/configmap-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ data:
internal-communication.https.required=true
discovery.uri=https://{{ template "trino.fullname" . }}:{{ .Values.service.tlsPort }}
http-server.https.enabled=true
http-server.https.port={{ .Values.server.config.https.port }}
http-server.https.port={{ .Values.service.tlsPort }}
{{- else }}
discovery.uri=http://{{ template "trino.fullname" . }}:{{ .Values.service.port }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/trino/templates/service-coordinator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
{{- end }}
{{- if .Values.server.config.https.enabled }}
- port: {{ .Values.service.tlsPort }}
targetPort: {{ .Values.server.config.https.port }}
targetPort: https
protocol: TCP
name: https
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/trino/templates/service-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
name: http
{{- if and .Values.server.config.https.enabled .Values.server.config.https.internal }}
- port: {{ .Values.service.tlsPort }}
targetPort: {{ .Values.server.config.https.port }}
targetPort: https
protocol: TCP
name: https
{{- end }}
Expand Down
1 change: 0 additions & 1 deletion charts/trino/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ server:
https:
enabled: false
internal: false
port: 443
keystore:
path: ""
key: ""
Expand Down

0 comments on commit d83edbe

Please sign in to comment.