Adds support for custom TLS hosts in ingress (#12353)

Signed-off-by: Greg Richardson <greg.nmr@gmail.com>
This commit is contained in:
Greg Richardson
2019-03-19 02:02:23 -07:00
committed by Kubernetes Prow Robot
parent bcd8b3ef96
commit 07f00835ef
4 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: ghost
version: 6.5.3
version: 6.6.0
appVersion: 2.18.1
description: A simple, powerful publishing platform that allows you to share your stories with the world
keywords:
+1
View File
@@ -89,6 +89,7 @@ The following table lists the configurable parameters of the Ghost chart and the
| `ingress.hosts[0].name` | Hostname to your Ghost installation | `ghost.local` |
| `ingress.hosts[0].path` | Path within the url structure | `/` |
| `ingress.hosts[0].tls` | Utilize TLS backend in ingress | `false` |
| `ingress.hosts[0].tlsHosts` | Array of TLS hosts for ingress record (defaults to `ingress.hosts[0].name` if `nil`) | `nil` |
| `ingress.hosts[0].tlsSecret` | TLS Secret (certificates) | `ghost.local-tls-secret` |
| `ingress.secrets[0].name` | TLS Secret Name | `nil` |
| `ingress.secrets[0].certificate` | TLS Secret Certificate | `nil` |
+6
View File
@@ -30,7 +30,13 @@ spec:
{{- range .Values.ingress.hosts }}
{{- if .tls }}
- hosts:
{{- if .tlsHosts }}
{{- range $host := .tlsHosts }}
- {{ $host }}
{{- end }}
{{- else }}
- {{ .name }}
{{- end }}
secretName: {{ .tlsSecret }}
{{- end }}
{{- end }}
+7
View File
@@ -231,6 +231,13 @@ ingress:
## Set this to true in order to enable TLS on the ingress record
tls: false
## Optionally specify the TLS hosts for the ingress record
## Useful when the Ingress controller supports www-redirection
## If not specified, the above host name will be used
# tlsHosts:
# - www.ghost.local
# - ghost.local
## If TLS is set to true, you must declare what secret will store the key/certificate for TLS
tlsSecret: ghost.local-tls