diff --git a/README.md b/README.md index b24f08c..4477d7e 100644 --- a/README.md +++ b/README.md @@ -754,6 +754,7 @@ kubectl create secret generic gitea-themes --from-file={{FULL-PATH-TO-CSS}} --na | `persistence.annotations` | Annotations for the persistence volume claim to be created | `{}` | | `persistence.storageClass` | Name of the storage class to use | `nil` | | `persistence.subPath` | Subdirectory of the volume to mount at | `nil` | +| `persistence.volumeName` | Name of persistent volume in PVC | `""` | | `extraVolumes` | Additional volumes to mount to the Gitea deployment | `[]` | | `extraContainerVolumeMounts` | Mounts that are only mapped into the Gitea runtime/main container, to e.g. override custom templates. | `[]` | | `extraInitVolumeMounts` | Mounts that are only mapped into the init-containers. Can be used for additional preconfiguration. | `[]` | diff --git a/templates/gitea/pvc.yaml b/templates/gitea/pvc.yaml index d84ecc3..995bd10 100644 --- a/templates/gitea/pvc.yaml +++ b/templates/gitea/pvc.yaml @@ -17,7 +17,9 @@ spec: {{- if .Values.persistence.storageClass }} storageClassName: {{ .Values.persistence.storageClass }} {{- end }} - volumeName: "" + {{- with .Values.persistence.volumeName }} + volumeName: {{ . }} + {{- end }} resources: requests: storage: {{ .Values.persistence.size }} diff --git a/values.yaml b/values.yaml index e2ac2cd..1204e58 100644 --- a/values.yaml +++ b/values.yaml @@ -252,6 +252,7 @@ serviceAccount: ## @param persistence.annotations Annotations for the persistence volume claim to be created ## @param persistence.storageClass Name of the storage class to use ## @param persistence.subPath Subdirectory of the volume to mount at +## @param persistence.volumeName Name of persistent volume in PVC persistence: enabled: true create: true @@ -264,6 +265,7 @@ persistence: annotations: {} storageClass: subPath: + volumeName: "" ## @param extraVolumes Additional volumes to mount to the Gitea deployment extraVolumes: [] @@ -496,9 +498,9 @@ postgresql-ha: database: gitea username: gitea # FIXME: https://github.com/bitnami/charts/issues/17052 - postgresPassword: changeme + postgresPassword: changeme # FIXME: https://github.com/bitnami/charts/issues/17052 - repmgrPassword: changeme + repmgrPassword: changeme service: ports: postgresql: 5432