From 1675a1a32d3aad672147133fdaf51a5dd29f00b6 Mon Sep 17 00:00:00 2001 From: Julian Schlarb Date: Wed, 28 Dec 2022 09:32:28 +0100 Subject: [PATCH] Added sidecar --- README.md | 1 + templates/gitea/statefulset.yaml | 7 +++++++ values.yaml | 3 +++ 3 files changed, 11 insertions(+) diff --git a/README.md b/README.md index 2fc73f7..1bcf457 100644 --- a/README.md +++ b/README.md @@ -726,6 +726,7 @@ gitea: | `gitea.startupProbe.periodSeconds` | Period for startup probe | `10` | | `gitea.startupProbe.successThreshold` | Success threshold for startup probe | `1` | | `gitea.startupProbe.failureThreshold` | Failure threshold for startup probe | `10` | +| `gitea.sidecars` | Add sidecars to the Gitea pod | `[]` | ### Memcached diff --git a/templates/gitea/statefulset.yaml b/templates/gitea/statefulset.yaml index ed9a887..99b81b2 100644 --- a/templates/gitea/statefulset.yaml +++ b/templates/gitea/statefulset.yaml @@ -268,6 +268,13 @@ spec: subPath: {{ .Values.persistence.subPath }} {{- end }} {{- include "gitea.container-additional-mounts" . | nindent 12 }} + {{- with .Values.gitea.sidecars }} + {{- if typeIs "string" . }} + {{- tpl . $ | nindent 8 }} + {{- else }} + {{- tpl ( . | toYaml ) $ | nindent 8 }} + {{- end }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/values.yaml b/values.yaml index bd8c4d0..8b5472d 100644 --- a/values.yaml +++ b/values.yaml @@ -395,6 +395,9 @@ gitea: successThreshold: 1 failureThreshold: 10 + ## @param gitea.sidecars Add sidecars to the gitea pod + sidecars: [] + ## @section Memcached # ## @param memcached.enabled Memcached is loaded as a dependency from [Bitnami](https://github.com/bitnami/charts/tree/master/bitnami/memcached) if enabled in the values. Complete Configuration can be taken from their website.