[bitnami/wordpress] Fix issue with wildcard domains (#5082)

* Fix issue with wildcard domains

* Quick fix

* Add CI test

* Fix test
This commit is contained in:
Alejandro Moreno
2021-01-19 10:24:18 +01:00
committed by GitHub
parent 7baeea1cb6
commit 2db161bfc2
3 changed files with 13 additions and 4 deletions

View File

@@ -31,4 +31,4 @@ name: wordpress
sources:
- https://github.com/bitnami/bitnami-docker-wordpress
- http://www.wordpress.com/
version: 10.4.4
version: 10.4.5

View File

@@ -0,0 +1,9 @@
service:
type: ClusterIP
ingress:
enabled: true
tls: true
extraHosts:
- name: "*.domain.tld"
path: /

View File

@@ -20,7 +20,7 @@ metadata:
spec:
rules:
{{- if .Values.ingress.hostname }}
- host: {{ .Values.ingress.hostname }}
- host: {{ .Values.ingress.hostname | quote }}
http:
paths:
{{- if .Values.ingress.extraPaths }}
@@ -46,9 +46,9 @@ spec:
tls:
{{- if .Values.ingress.tls }}
- hosts:
- {{ .Values.ingress.hostname }}
- {{ .Values.ingress.hostname | quote }}
{{- range .Values.ingress.extraHosts }}
- {{ .name }}
- {{ .name | quote }}
{{- end }}
secretName: {{ printf "%s-tls" .Values.ingress.hostname }}
{{- end }}