diff --git a/README.md b/README.md index d44881f..9ce59f3 100644 --- a/README.md +++ b/README.md @@ -718,6 +718,7 @@ gitea: | Parameter | Description | Default | | ------------------------------------------- | -------------------------------------------------------------------- | ------- | +| `statefulset.annotations` | Annotations for the Gitea StatefulSet to be created | `{}` | | `statefulset.terminationGracePeriodSeconds` | How long to wait until forcefully kill the pod | `60` | | `statefulset.env` | Additional environment variables to pass to containers | `[]` | | `extraVolumes` | Additional volumes to mount to the Gitea statefulset | `{}` | diff --git a/templates/gitea/statefulset.yaml b/templates/gitea/statefulset.yaml index ff6c9e1..8ae7bd6 100644 --- a/templates/gitea/statefulset.yaml +++ b/templates/gitea/statefulset.yaml @@ -2,6 +2,10 @@ apiVersion: apps/v1 kind: StatefulSet metadata: name: {{ include "gitea.fullname" . }} + annotations: + {{- if .Values.statefulset.annotations }} + {{- toYaml .Values.statefulset.annotations | nindent 4 }} + {{- end }} labels: {{- include "gitea.labels" . | nindent 4 }} spec: diff --git a/values.yaml b/values.yaml index 8bf8799..f2fd36f 100644 --- a/values.yaml +++ b/values.yaml @@ -113,6 +113,7 @@ statefulset: # value: my-value terminationGracePeriodSeconds: 60 labels: {} + annotations: {} persistence: enabled: true