Skip to content
Snippets Groups Projects
Unverified Commit e9609bfa authored by Omega Zeng's avatar Omega Zeng Committed by GitHub
Browse files

fix: #809 (#810)

parent 4a39d458
Branches
Tags wordpress-0.4.8
No related merge requests found
...@@ -8,7 +8,7 @@ maintainers: ...@@ -8,7 +8,7 @@ maintainers:
type: application type: application
# This is the chart version. # This is the chart version.
version: 0.4.7 version: 0.4.8
# This is the version number of the application being deployed. # This is the version number of the application being deployed.
appVersion: "5.8.3-apache" appVersion: "5.8.3-apache"
......
# Wordpress # Wordpress
![Version: 0.4.7](https://img.shields.io/badge/Version-0.4.7-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 5.8.3-apache](https://img.shields.io/badge/AppVersion-5.8.3-informational?style=flat-square) ![Version: 0.4.8](https://img.shields.io/badge/Version-0.4.8-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 5.8.3-apache](https://img.shields.io/badge/AppVersion-5.8.3-informational?style=flat-square)
A Helm chart for Wordpress on Kubernetes A Helm chart for Wordpress on Kubernetes
...@@ -141,4 +141,4 @@ $ helm uninstall my-release ...@@ -141,4 +141,4 @@ $ helm uninstall my-release
| storage.persistentVolumeClaimName | string | `nil` | PVC name when existing storage volume should be used | | storage.persistentVolumeClaimName | string | `nil` | PVC name when existing storage volume should be used |
| storage.requestedSize | string | `nil` | Size for new PVC, when no existing PVC is used | | storage.requestedSize | string | `nil` | Size for new PVC, when no existing PVC is used |
| storage.className | string | `nil` | Storage class name | | storage.className | string | `nil` | Storage class name |
| storage.keepPvc | bool | `false` | Keep a created Persistent volume claim when uninstalling the helm chart | | storage.keepPvc | bool | `false` | Keep a created Persistent volume claim when uninstalling the helm chart |
\ No newline at end of file
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
{{- $fullName := include "wordpress.fullname" . -}} {{- $fullName := include "wordpress.fullname" . -}}
{{- $svcPort := .Values.service.port -}} {{- $svcPort := .Values.service.port -}}
{{- $maxSize := .Values.ingress.maxBodySize -}} {{- $maxSize := .Values.ingress.maxBodySize -}}
{{- $kubeVersion := .Capabilities.KubeVersion.Version -}} {{- $apiVersion := .Capabilities.APIVersions -}}
{{- if semverCompare ">=1.19" $kubeVersion }} {{- if $apiVersion.Has "networking.k8s.io/v1" }}
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
{{- else }} {{- else }}
{{- if semverCompare ">=1.14" $kubeVersion }} {{- if $apiVersion.Has "networking.k8s.io/v1beta1" }}
apiVersion: networking.k8s.io/v1beta1 apiVersion: networking.k8s.io/v1beta1
{{- else }} {{- else }}
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
...@@ -40,7 +40,7 @@ spec: ...@@ -40,7 +40,7 @@ spec:
paths: paths:
{{- range .paths }} {{- range .paths }}
- path: {{ .path }} - path: {{ .path }}
{{- if semverCompare ">=1.19" $kubeVersion }} {{- if $apiVersion.Has "networking.k8s.io/v1" }}
pathType: {{ .pathType }} pathType: {{ .pathType }}
backend: backend:
service: service:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment