Skip to content

Commit 926ac6c

Browse files
committed
Allow specifying ingress.tls.host
This is needed when using wildcard certificates, for example this set of values: ``` ingress: enabled: true host: kafbat-ui.example.com tls: enabled: true secretName: tls-wildcard-example-com host: "*.example.com" ``` will generate: ```yaml apiVersion: networking.k8s.io/v1 kind: Ingress spec: tls: - hosts: - "*.example.com" secretName: tls-wilcard-example-com ```
1 parent 9883533 commit 926ac6c

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

charts/kafka-ui/CONFIGURATION.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
| `ingress.pathType` | Ingress path type | `Prefix` |
8282
| `ingress.host` | Default hostname for the ingress record | `""` |
8383
| `ingress.tls.enabled` | Enable TLS configuration for the host defined at `ingress.host` parameter | `false` |
84+
| `ingress.tls.host` | Optional host value for TLS certificate used by the ingress, value of `ingress.host` is used if not defined | `""` |
8485
| `ingress.tls.secretName` | The name of a pre-created Secret containing a TLS private key and certificate | `""` |
8586
| `ingress.precedingPaths` | HTTP paths to add to the Ingress before the default path | `[]` |
8687
| `ingress.succeedingPaths` | Http paths to add to the Ingress after the default path | `[]` |

charts/kafka-ui/templates/ingress.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ spec:
2727
{{- if .Values.ingress.tls.enabled }}
2828
tls:
2929
- hosts:
30-
- {{ tpl .Values.ingress.host . }}
30+
- "{{ tpl (.Values.ingress.tls.host | default .Values.ingress.host) . }}"
3131
secretName: {{ .Values.ingress.tls.secretName }}
3232
{{- end }}
3333
{{- if .Values.ingress.ingressClassName }}

charts/kafka-ui/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ ingress:
246246
# Enable TLS termination for the Ingress
247247
## @param ingress.tls.enabled Enable TLS configuration for the host defined at `ingress.host` parameter
248248
enabled: false
249+
## @param ingress.tls.host Optional host value for TLS certificate used by the ingress, value of `ingress.host` is used if not defined
250+
host: ""
249251
## @param ingress.tls.secretName [string] The name of a pre-created Secret containing a TLS private key and certificate
250252
secretName: ""
251253

0 commit comments

Comments
 (0)