diff --git a/README.md b/README.md index c290c00..85ecd9f 100644 --- a/README.md +++ b/README.md @@ -175,6 +175,15 @@ Like the admin user the ldap settings can be updated but also disabled or delete usernameAttribute: CN ``` +### Pod Annotations + +Annotations can be added to the Gitea pod. + +```yaml + gitea: + podAnnotations: {} +``` + ## Configuration ### Others diff --git a/templates/gitea/statefulset.yaml b/templates/gitea/statefulset.yaml index f8c0518..e164074 100644 --- a/templates/gitea/statefulset.yaml +++ b/templates/gitea/statefulset.yaml @@ -14,6 +14,9 @@ spec: metadata: annotations: checksum/config: {{ include (print $.Template.BasePath "/gitea/config.yaml") . | sha256sum }} + {{- with .Values.gitea.podAnnotations }} + {{- toYaml . | nindent 8 }} + {{- end }} labels: {{- include "gitea.selectorLabels" . | nindent 8 }} spec: diff --git a/values.yaml b/values.yaml index dcd1219..dc31de6 100644 --- a/values.yaml +++ b/values.yaml @@ -98,6 +98,8 @@ gitea: # security: # PASSWORD_COMPLEXITY: spec + podAnnotations: {} + database: builtIn: postgresql: