From ffd6e5f92cd54278e9f9d9bd4a7c960de025573d Mon Sep 17 00:00:00 2001 From: mmuenster Date: Thu, 24 Sep 2020 16:32:11 +0000 Subject: [PATCH] Ability to add pod annotation to statefulset (#24) ability to add pod annotation Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/24 Reviewed-by: luhahn Reviewed-by: techknowlogick --- README.md | 9 +++++++++ templates/gitea/statefulset.yaml | 3 +++ values.yaml | 2 ++ 3 files changed, 14 insertions(+) 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: