From ad783fbb6f5480d1c479ae16306a65eece0f7741 Mon Sep 17 00:00:00 2001 From: pieter Date: Sun, 30 Nov 2025 04:54:25 +0000 Subject: [PATCH] =?UTF-8?q?templates/ingress.yaml=20=E3=82=92=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/ingress.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/templates/ingress.yaml b/templates/ingress.yaml index c035467..8ea16ed 100644 --- a/templates/ingress.yaml +++ b/templates/ingress.yaml @@ -18,6 +18,11 @@ spec: {{- if .Values.ingress.tls }} - hosts: - {{ .Values.ingress.hostname | quote }} + {{- if .Values.wordpress.multisite.enabled }} + {{- if .Values.wordpress.multisite.subdomains }} + - "*.{{ .Values.wordpress.multisite.domain }}" + {{- end }} + {{- end }} secretName: {{ .Values.ingress.hostname | replace "." "-" }}-tls {{- end }} {{- if .Values.ingress.extraTls }} @@ -41,6 +46,20 @@ spec: name: {{ include "wordpress-nginx.fullname" . }} port: number: {{ $.Values.service.port }} + {{- if .Values.wordpress.multisite.enabled }} + {{- if .Values.wordpress.multisite.subdomains }} + - host: "*.{{ .Values.wordpress.multisite.domain }}" + http: + paths: + - path: {{ .Values.ingress.path }} + pathType: {{ .Values.ingress.pathType }} + backend: + service: + name: {{ include "wordpress-nginx.fullname" . }} + port: + number: {{ $.Values.service.port }} + {{- end }} + {{- end }} {{- range .Values.ingress.extraHosts }} - host: {{ .name | quote }} http: