From de5bebb4c1a0e634629c35b41e8d08360c0c657f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ask=20Bj=C3=B8rn=20Hansen?= Date: Fri, 5 Jun 2020 00:06:16 -0700 Subject: [PATCH] Support setting podannotations Fixes #23 --- README.md | 3 ++- templates/deployment.yaml | 4 ++++ values.yaml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c62b513..2c6efad 100644 --- a/README.md +++ b/README.md @@ -163,7 +163,8 @@ The following table lists the configurable parameters of this chart and their de | `persistence.existingGiteaClaim` | Already existing PVC that should be used for gitea data. | `nil` | | `persistence.giteaSize` | Size of gitea pvc to create | `10Gi` | | `persistence.annotations` | Annotations to set on created PVCs | `nil` | -| `persistence.storageClass` | NStorageClass to use for dynamic provision if not 'default' | `nil` | +| `persistence.storageClass` | StorageClass to use for dynamic provision if not 'default' | `nil` | +| `podAnnotations` | Annotations to set on the pod | `{}` | | `mariadb.enabled` | Enable or diable mariadb | `true` | | `mariadb.replication.enabled` | Enable or diable replication | `false` | | `mariadb.db.name` | Default name | `gitea` | diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 4ff836e..53a2f75 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -17,6 +17,10 @@ spec: metadata: labels: app: {{ template "fullname" . }} + {{- with .Values.podAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} spec: containers: {{ include "gitea" . | indent 6 }} diff --git a/values.yaml b/values.yaml index acf211b..bfb9c89 100644 --- a/values.yaml +++ b/values.yaml @@ -213,6 +213,6 @@ nodeSelector: {} tolerations: [] affinity: {} -## Annotations for the deployment and nodes. +## Annotations for the deployment and pods. deploymentAnnotations: {} podAnnotations: {}