From b274327e0d83708bd1ec4ef6a727cf221f5b4c61 Mon Sep 17 00:00:00 2001 From: Diego Braga Date: Mon, 31 Aug 2026 09:48:12 +0200 Subject: [PATCH] feat(helm): add extraVolumes/extraVolumeMounts to the tools deployment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Allows mounting additional volumes on the kagent-tools container via values — e.g. a kubeconfig to point kubectl at an authenticating proxy (per-user RBAC), extra CA bundles, etc. Standard Kubernetes volume / volumeMount objects, appended to the existing tmp volume. No behaviour change when unset (default []). Co-Authored-By: Claude Opus 4.8 (1M context) --- helm/kagent-tools/templates/deployment.yaml | 6 ++++++ helm/kagent-tools/values.yaml | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/helm/kagent-tools/templates/deployment.yaml b/helm/kagent-tools/templates/deployment.yaml index c92c9c6..65a3464 100644 --- a/helm/kagent-tools/templates/deployment.yaml +++ b/helm/kagent-tools/templates/deployment.yaml @@ -114,6 +114,12 @@ spec: volumeMounts: - name: tmp mountPath: /tmp + {{- with .Values.extraVolumeMounts }} + {{- toYaml . | nindent 12 }} + {{- end }} volumes: - name: tmp emptyDir: {} + {{- with .Values.extraVolumes }} + {{- toYaml . | nindent 8 }} + {{- end }} diff --git a/helm/kagent-tools/values.yaml b/helm/kagent-tools/values.yaml index b398a00..875f579 100644 --- a/helm/kagent-tools/values.yaml +++ b/helm/kagent-tools/values.yaml @@ -131,3 +131,15 @@ otel: endpoint: http://host.docker.internal:4317 timeout: 15 insecure: true + +# Additional volumes and volumeMounts on the tools container. Useful for mounting a +# kubeconfig (e.g. to point kubectl at an authenticating proxy for per-user RBAC), +# extra CAs, etc. Standard Kubernetes volume / volumeMount objects. +extraVolumes: [] +# - name: my-kubeconfig +# configMap: +# name: my-kubeconfig +extraVolumeMounts: [] +# - name: my-kubeconfig +# mountPath: /etc/kubeconfig +# readOnly: true