mirror of
https://github.com/bitnami/charts.git
synced 2026-03-06 06:58:50 +08:00
[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:
@@ -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
|
||||
|
||||
9
bitnami/wordpress/ci/ingress-wildcard-values.yaml
Normal file
9
bitnami/wordpress/ci/ingress-wildcard-values.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
|
||||
ingress:
|
||||
enabled: true
|
||||
tls: true
|
||||
extraHosts:
|
||||
- name: "*.domain.tld"
|
||||
path: /
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user