diff --git a/charts/wordpress/Chart.yaml b/charts/wordpress/Chart.yaml index ff1fa25407a7347dca4d78189fb169e0b814fb0d..9873da3e4e38ca9ecb81206a1d13ae89c326f490 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 1fcc1045fdac5157665eafc7d1a78ea5b1cdd0ca..4ff80257b15919a6920b19efae922ab30fb0ef87 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 d60ec9f74151ddb906529e029e7bcb7ec4efe237..b0712e95f87a9da27b3d56f3fc7ad292389758e3 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 1193a500b09d9ae88a38812aaed481b9770d1009..6f92b80dec5b4681719dcac9e65b2e01523f8bd0 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: []