diff --git a/Chart.yaml b/Chart.yaml index ba79975..62bff44 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: gitea description: Gitea Helm chart for Kubernetes type: application -version: 2.0.1 +version: 2.0.2 appVersion: 1.12.5 icon: https://docs.gitea.io/images/gitea.png @@ -14,6 +14,7 @@ keywords: - gitea - gogs sources: + - https://gitea.com/gitea/helm-chart - https://github.com/go-gitea/gitea - https://hub.docker.com/r/gitea/gitea/ maintainers: diff --git a/README.md b/README.md index 4d33673..e36dbf9 100644 --- a/README.md +++ b/README.md @@ -260,7 +260,7 @@ Annotations can be added to the Gitea pod. |persistence.existingClaim| Use an existing claim to store repository information | | |persistence.size| Size for persistence to store repo information | 10Gi | |persistence.accessModes|AccessMode for persistence|| -|persistence.storageClass|Storage class for repository persistence|standard| +|persistence.storageClass|Storage class for repository persistence|| ### Ingress diff --git a/templates/gitea/statefulset.yaml b/templates/gitea/statefulset.yaml index 3ad67b8..7347816 100644 --- a/templates/gitea/statefulset.yaml +++ b/templates/gitea/statefulset.yaml @@ -109,7 +109,9 @@ spec: {{- range .Values.persistence.accessModes }} - {{ . | quote }} {{- end }} - storageClassName: {{ .Values.persistence.storageClass | default "standard" | quote }} + {{- if .Values.persistence.storageClass }} + storageClassName: {{ .Values.persistence.storageClass | quote }} + {{- end }} resources: requests: storage: {{ .Values.persistence.size | quote }} diff --git a/values.yaml b/values.yaml index c09f0dd..6c96aea 100644 --- a/values.yaml +++ b/values.yaml @@ -68,7 +68,6 @@ persistence: size: 10Gi accessModes: - ReadWriteOnce - storageClass: standard gitea: admin: