Skip to content

Commit

Permalink
fix no-tls mongo-ui
Browse files Browse the repository at this point in the history
Signed-off-by: TasdidurRahman <[email protected]>
  • Loading branch information
TasdidurRahman committed Jul 16, 2024
1 parent 14f3f6d commit 1b8755f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion charts/mongo-ui/templates/gw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ spec:
gatewayClassName: {{ .Values.gateway.className }}
listeners:
- name: {{ include "mongo-ui.fullname" . }}
{{ if .Values.tls.enabled }}
protocol: HTTPS
port: {{ .Values.gateway.port }}
tls:
Expand All @@ -20,7 +21,10 @@ spec:
name: {{ .Values.gateway.tlsSecretRef.name }}
namespace: {{ .Values.gateway.tlsSecretRef.namespace }}
mode: Terminate

{{ else }}
protocol: HTTP
port: {{ .Values.gateway.port }}
{{ end }}
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
Expand Down

0 comments on commit 1b8755f

Please sign in to comment.