From a6396d53ecc2fbfd9b941977f021e88b1a0f7d08 Mon Sep 17 00:00:00 2001 From: Gerrit Erpenstein Date: Fri, 26 Jun 2026 15:24:48 +0200 Subject: [PATCH] Add support for custom volumes and volumeMounts Users may need to mount additional volumes into the Bugsink container, for example to supply a CA certificate for TLS-verified database connections or custom configuration files via ConfigMaps. The chart had no way to attach arbitrary volumes. Adds volumes and volumeMounts as empty-by-default values so existing deployments are unaffected. Also fixes an incorrect blank line in the volumeMounts template block caused by a missing leading dash on the toYaml delimiter. --- charts/bugsink/templates/deployment.yaml | 6 +++++- charts/bugsink/values.yaml | 16 ++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/charts/bugsink/templates/deployment.yaml b/charts/bugsink/templates/deployment.yaml index 6bae3ac..faf77b5 100644 --- a/charts/bugsink/templates/deployment.yaml +++ b/charts/bugsink/templates/deployment.yaml @@ -72,9 +72,13 @@ spec: {{- end }} {{- with .Values.volumeMounts }} volumeMounts: - {{ toYaml . | nindent 12 }} + {{- toYaml . | nindent 12 }} {{- end }} {{- include "bugsink.env" . | nindent 10 }} + {{- with .Values.volumes }} + volumes: + {{- toYaml . | nindent 8 }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/charts/bugsink/values.yaml b/charts/bugsink/values.yaml index fc58d56..53de424 100644 --- a/charts/bugsink/values.yaml +++ b/charts/bugsink/values.yaml @@ -229,3 +229,19 @@ extraEnv: # Existing secrets holding the environment variables. secretRefs: [ ] # - name: my-secret + +# Additional volumes to add to the Pod spec. +volumes: [] +# - name: my-emptydir-volume +# emptyDir: {} +# - name: my-configmap-volume +# configMap: +# name: my-configmap + +# Additional volume mounts to add to the container. +volumeMounts: [] +# - name: my-emptydir-volume +# mountPath: /mnt/data +# - name: my-configmap-volume +# mountPath: /etc/config +# readOnly: true