Support setting podannotations

Fixes #23
This commit is contained in:
Ask Bjørn Hansen 2020-06-05 00:06:16 -07:00
parent 18a7e0edb0
commit de5bebb4c1
3 changed files with 7 additions and 2 deletions

View File

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

View File

@ -17,6 +17,10 @@ spec:
metadata:
labels:
app: {{ template "fullname" . }}
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
containers:
{{ include "gitea" . | indent 6 }}

View File

@ -213,6 +213,6 @@ nodeSelector: {}
tolerations: []
affinity: {}
## Annotations for the deployment and nodes.
## Annotations for the deployment and pods.
deploymentAnnotations: {}
podAnnotations: {}