From 344ae9f84eec31a3070816ab442db3c524d6523d Mon Sep 17 00:00:00 2001 From: Philipp B Date: Sun, 13 Nov 2022 18:22:27 +0100 Subject: [PATCH] helm: add extraContainer (#15660) Signed-off-by: Philipp Born --- helm/minio/templates/deployment.yaml | 7 +++++++ helm/minio/templates/statefulset.yaml | 7 +++++++ helm/minio/values.yaml | 3 +++ 3 files changed, 17 insertions(+) diff --git a/helm/minio/templates/deployment.yaml b/helm/minio/templates/deployment.yaml index 692f86efd..ad92c892b 100644 --- a/helm/minio/templates/deployment.yaml +++ b/helm/minio/templates/deployment.yaml @@ -163,6 +163,13 @@ spec: {{- end}} resources: {{ toYaml .Values.resources | indent 12 }} + {{- with .Values.extraContainers }} + {{- if eq (typeOf .) "string" }} + {{- tpl . $ | nindent 8 }} + {{- else }} + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} diff --git a/helm/minio/templates/statefulset.yaml b/helm/minio/templates/statefulset.yaml index 490de918d..ba7c3021a 100644 --- a/helm/minio/templates/statefulset.yaml +++ b/helm/minio/templates/statefulset.yaml @@ -181,6 +181,13 @@ spec: {{- end}} resources: {{ toYaml .Values.resources | indent 12 }} + {{- with .Values.extraContainers }} + {{- if eq (typeOf .) "string" }} + {{- tpl . $ | nindent 8 }} + {{- else }} + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} diff --git a/helm/minio/values.yaml b/helm/minio/values.yaml index 75c1d7e99..9b318c072 100644 --- a/helm/minio/values.yaml +++ b/helm/minio/values.yaml @@ -52,6 +52,9 @@ extraVolumes: [] ## Additional volumeMounts to minio container extraVolumeMounts: [] +## Additional sidecar containers +extraContainers: [] + ## Internal port number for MinIO S3 API container ## Change service.port to change external port number minioAPIPort: "9000"