Skip to content

Commit

Permalink
Merge pull request #119 from gimlet-io/provide-tls-secret-name
Browse files Browse the repository at this point in the history
Ability to provide the TLS secret name
  • Loading branch information
laszlocph authored Feb 12, 2024
2 parents 3d0cbe7 + 1497dad commit c56f637
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/onechart/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
tls:
- hosts:
- {{ .ingress.host | quote }}
secretName: {{ printf "tls-%s" $resourceName }}
secretName: {{ .ingress.secretName | default (printf "tls-%s" $resourceName) }}
{{- end }}
rules:
- host: {{ .ingress.host | quote }}
Expand Down
13 changes: 13 additions & 0 deletions charts/onechart/tests/ingress_domain_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,16 @@ tests:
- hosts:
- chart-example.local
secretName: tls-release-name-chart-example-local
- it: Should set Ingress secret name if provided
set:
ingress:
host: chart-example.local
tlsEnabled: true
secretName: tls-internal
asserts:
- equal:
path: spec.tls
value:
- hosts:
- chart-example.local
secretName: tls-internal

0 comments on commit c56f637

Please sign in to comment.