Skip to content

Commit

Permalink
add tls configuration on ingress template (#108)
Browse files Browse the repository at this point in the history
* add tls configuration on ingress template

* Allow disabling tls

* Add check for tls secretName

---------

Co-authored-by: thenav56 <[email protected]>
  • Loading branch information
Lusengeri and thenav56 authored Dec 5, 2024
1 parent e8b0e25 commit 300568e
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions helm/templates/api/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,10 @@ spec:
port:
number: 80

{{- if .Values.ingress.tls.enabled }}
tls:
- hosts:
- {{ .Values.ingress.host | quote }}
secretName: {{ required "ingress.tls.secretName" .Values.ingress.tls.secretName }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions helm/values-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ fullnameOverride: ifrcgo-alert-hub
ingress:
enabled: true
className: nginx
tls:
enabled: true
secretName:
# Needs to be defined at go-deploy
# host: alerthub-stage-api.ifrc.org

Expand Down
3 changes: 3 additions & 0 deletions helm/values-sandbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ ingress:
enabled: true
host: alert-hub-sandbox.ifrc.org
className: webapprouting.kubernetes.azure.com
tls:
enabled: true
secretName:

postgresql:
enabled: true
Expand Down
3 changes: 3 additions & 0 deletions helm/values-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ fullnameOverride: ifrcgo-alert-hub
ingress:
enabled: true
className: nginx
tls:
enabled: true
secretName:
# Needs to be defined at go-deploy
# host: alerthub-stage-api.ifrc.org

Expand Down
3 changes: 3 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ ingress:
enabled: false
host:
className:
tls:
enabled: false
secretName:

redis:
enabled: true
Expand Down

0 comments on commit 300568e

Please sign in to comment.