Add sshPublicKeyAttribute attribute setting for ldap auth,and Allow setting labels and annotations for gitea pvc. (#76)

1. sshPublicKeyAttribute is useful to sync ssh public keys from ldap.
2. It would be easier to set pvc annotations/labels for those who are using storage services from cloud providers.

Co-authored-by: 钱卫春 <qianwch@chinasofti.com>
Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/76
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Reviewed-by: luhahn <luhahn@noreply.gitea.io>
Co-authored-by: sanigo <sanigo@noreply.gitea.io>
Co-committed-by: sanigo <sanigo@noreply.gitea.io>
This commit is contained in:
sanigo 2021-01-22 16:24:37 +08:00 committed by luhahn
parent 7f828e87f6
commit 4ad5cf1d19
3 changed files with 18 additions and 0 deletions

View File

@ -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

View File

@ -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 }}

View File

@ -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"