From f62b82e9564104bf8c792e9c73b50ddfbc7d90e0 Mon Sep 17 00:00:00 2001 From: luhahn Date: Fri, 30 Oct 2020 01:10:10 +0800 Subject: [PATCH] Let storageClass be set automatically (#45) Merge branch 'master' into master Bump chart version and add gitea/helm-chart as link for artifacthub Remove default value for storageClass Remove storageClass 'Standard' and let it be set automatically Co-authored-by: Lucas Hahn Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/45 Reviewed-by: techknowlogick Reviewed-by: Andrew Thornton Co-Authored-By: luhahn Co-Committed-By: luhahn --- Chart.yaml | 3 ++- README.md | 2 +- templates/gitea/statefulset.yaml | 4 +++- values.yaml | 1 - 4 files changed, 6 insertions(+), 4 deletions(-) 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: