diff --git a/README.md b/README.md index 271dc4f..c9ca59a 100644 --- a/README.md +++ b/README.md @@ -267,6 +267,7 @@ camelCase: bindDn: CN=ldap read,OU=Spezial,DC=example,DC=com bindPassword: JustAnotherBindPw usernameAttribute: CN + sshPublicKeyAttribute: sshPublicKey ``` kebab-case: @@ -344,6 +345,8 @@ Annotations can be added to the Gitea pod. |persistence.size| Size for persistence to store repo information | 10Gi | |persistence.accessModes|AccessMode for persistence|| |persistence.storageClass|Storage class for repository persistence|| +|persistence.labels|Labels for the persistence volume claim to be created|{}| +|persistence.annotations|Annotations for the persistence volume claim to be created|{}| ### Ingress diff --git a/templates/gitea/statefulset.yaml b/templates/gitea/statefulset.yaml index c068279..245b716 100644 --- a/templates/gitea/statefulset.yaml +++ b/templates/gitea/statefulset.yaml @@ -127,6 +127,18 @@ spec: volumeClaimTemplates: - metadata: name: data + {{- with .Values.persistence.annotations }} + annotations: + {{- range $key, $value := . }} + {{ $key }}: {{ $value }} + {{- end }} + {{- end }} + {{- with .Values.persistence.labels }} + labels: + {{- range $key, $value := . }} + {{ $key }}: {{ $value }} + {{- end }} + {{- end }} spec: accessModes: {{- range .Values.persistence.accessModes }} diff --git a/values.yaml b/values.yaml index 72dc078..390196c 100644 --- a/values.yaml +++ b/values.yaml @@ -73,6 +73,8 @@ persistence: size: 10Gi accessModes: - ReadWriteOnce + labels: {} + annotations: {} # additional volumes to add to the Gitea statefulset. extraVolumes: @@ -123,6 +125,7 @@ gitea: #bindDn: #bindPassword: #usernameAttribute: + #sshPublicKeyAttribute: config: {} # APP_NAME: "Gitea: Git with a cup of tea"