Skip to content

Commit

Permalink
ingress: Check if TLS secret is defined (pomerium#289)
Browse files Browse the repository at this point in the history
Allows disabling SSL if it's externally terminated (LB)

Co-authored-by: Travis Groth <[email protected]>
  • Loading branch information
adinhodovic and travisgroth authored Apr 1, 2022
1 parent 9783a53 commit 52eba31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/pomerium/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: pomerium
version: 31.0.2
version: 31.0.3
appVersion: 0.17.0
home: http://www.pomerium.com/
icon: https://www.pomerium.com/img/icon.svg
Expand Down
4 changes: 3 additions & 1 deletion charts/pomerium/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ spec:
{{- end }}
ingressClassName: {{ .Values.ingress.className }}
{{- end }}
{{ if (or .Values.ingress.secret.name .Values.ingress.secretName) }}
tls:
- secretName: {{ default .Values.ingress.secret.name .Values.ingress.secretName }}
hosts:
{{ include "pomerium.ingress.tls.hosts" . | indent 8 }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ . | quote }}
Expand Down Expand Up @@ -119,4 +121,4 @@ spec:
{{- if $ingressSupportsPathType }}
pathType: {{ $ingressPathType }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 52eba31

Please sign in to comment.