Skip to content

Commit

Permalink
feat: adding the option to use saleor secretName for TLS
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikZed committed Apr 26, 2022
1 parent 4081d2a commit c014e24
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/saleor/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.1.43
version: 0.1.44

dependencies:
- name: postgresql
Expand Down
4 changes: 4 additions & 0 deletions charts/saleor/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ spec:
{{- range .Values.ingress.hosts }}
- {{ .host | quote }}
{{- end }}
{{- if .Values.ingress.tls.secretName }}
secretName: {{ .Values.ingress.tls.secretName }}
{{- else }}
secretName: "{{ $fullName }}-tls-secret"
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
Expand Down
9 changes: 2 additions & 7 deletions charts/saleor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,14 @@ ingress:
enabled: false
annotations:
cert-manager.io/acme-challenge-type: http01
cert-manager.io/cluster-issuer: letsencrypt-prod
cert-manager.io/cluster-issuer: letsencrypt-prod

hosts:
- host: chart-example.local
paths:
- '/graphql/'
tls:
- secretName: ""
hosts:
- chart-example.local
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
secretName:

saleor:
enableHpa: true
Expand Down

0 comments on commit c014e24

Please sign in to comment.