From 345161627d2102a858d4e9dedeba5ec84f730e37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6ran=20P=C3=B6hner?= <10630407+groundhog2k@users.noreply.github.com> Date: Mon, 20 Dec 2021 09:07:12 +0100 Subject: [PATCH] WordPress works only for / path with ingress.enabled=true (#751) Fixes #748 --- charts/wordpress/Chart.yaml | 2 +- charts/wordpress/README.md | 4 +++- charts/wordpress/templates/ingress.yaml | 4 ++-- charts/wordpress/values.yaml | 4 +++- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/charts/wordpress/Chart.yaml b/charts/wordpress/Chart.yaml index ff1fa254..9873da3e 100644 --- a/charts/wordpress/Chart.yaml +++ b/charts/wordpress/Chart.yaml @@ -8,7 +8,7 @@ maintainers: type: application # This is the chart version. -version: 0.4.4 +version: 0.4.5 # This is the version number of the application being deployed. appVersion: "5.8.2-apache" diff --git a/charts/wordpress/README.md b/charts/wordpress/README.md index 1fcc1045..4ff80257 100644 --- a/charts/wordpress/README.md +++ b/charts/wordpress/README.md @@ -1,6 +1,6 @@ # Wordpress -   +   A Helm chart for Wordpress on Kubernetes @@ -101,6 +101,8 @@ $ helm uninstall my-release | ingress.enabled | bool | `false` | Enable ingress for Wordpress service | | ingress.annotations | string | `nil` | Additional annotations for ingress | | ingress.hosts[0].host | string | `""` | Hostname for the ingress endpoint | +| ingress.hosts[0].host.paths[0].path | string | `"/"` | Default root path | +| ingress.hosts[0].host.paths[0].pathType | string | `ImplementationSpecific` | Ingress path type (ImplementationSpecific, Prefix, Exact) | | ingress.tls | list | `[]` | Ingress TLS parameters | | ingress.maxBodySize | string | `"64m"` | Maximum body size for post requests | diff --git a/charts/wordpress/templates/ingress.yaml b/charts/wordpress/templates/ingress.yaml index d60ec9f7..b0712e95 100644 --- a/charts/wordpress/templates/ingress.yaml +++ b/charts/wordpress/templates/ingress.yaml @@ -39,9 +39,9 @@ spec: http: paths: {{- range .paths }} - - path: {{ . }} + - path: {{ .path }} {{- if semverCompare ">=1.19" $kubeVersion }} - pathType: ImplementationSpecific + pathType: {{ .pathType }} backend: service: name: {{ $fullName }} diff --git a/charts/wordpress/values.yaml b/charts/wordpress/values.yaml index 1193a500..6f92b80d 100644 --- a/charts/wordpress/values.yaml +++ b/charts/wordpress/values.yaml @@ -72,7 +72,9 @@ ingress: ## Hosts hosts: - host: - paths: [] + paths: + - path: / + pathType: ImplementationSpecific ## TLS settings for hosts tls: [] -- GitLab