From ac7a940c38cfab0b4a5cfd53e7e5a9d570850094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Tom=C5=A1i=C4=8D?= Date: Wed, 7 Jun 2023 16:18:21 +0200 Subject: [PATCH] matrix-synapse: Add option to modify wellknown service port --- charts/matrix-synapse/templates/ingress.yaml | 4 ++-- charts/matrix-synapse/templates/well-known.yaml | 2 +- charts/matrix-synapse/values.yaml | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/charts/matrix-synapse/templates/ingress.yaml b/charts/matrix-synapse/templates/ingress.yaml index 036a787..c76fc93 100644 --- a/charts/matrix-synapse/templates/ingress.yaml +++ b/charts/matrix-synapse/templates/ingress.yaml @@ -170,11 +170,11 @@ spec: service: name: {{ $wkName }} port: - number: 80 + number: {{ $.Values.wellknown.service.port | default 80 }} pathType: Prefix {{- else }} serviceName: {{ $wkName }} - servicePort: 80 + servicePort: {{ $.Values.wellknown.service.port | default 80 }} {{- end }} {{- else }} - path: /.well-known/matrix diff --git a/charts/matrix-synapse/templates/well-known.yaml b/charts/matrix-synapse/templates/well-known.yaml index 5ce2999..d0e7f07 100644 --- a/charts/matrix-synapse/templates/well-known.yaml +++ b/charts/matrix-synapse/templates/well-known.yaml @@ -11,7 +11,7 @@ metadata: spec: type: {{ .Values.wellknown.service.type | default "ClusterIP" }} ports: - - port: 80 + - port: {{ .Values.wellknown.service.port | default 80 }} targetPort: http protocol: TCP name: http diff --git a/charts/matrix-synapse/values.yaml b/charts/matrix-synapse/values.yaml index 0c8e994..392244e 100644 --- a/charts/matrix-synapse/values.yaml +++ b/charts/matrix-synapse/values.yaml @@ -610,6 +610,7 @@ wellknown: ## service: type: ClusterIP + port: 80 ## Extra data objects to serve under .well-known/matrix/ ## Dictionaries will be JSON converted, plain strings will be served as they are