Skip to content

Commit f31fe9e

Browse files
authored
feat(helm): add enabledTools and extraArgs configuration options (#43)
* feat(helm): add enabledTools and extraArgs configuration options Add support for configuring tool-server CLI arguments via Helm values: - `tools.enabledTools`: List of tool providers to enable (maps to --tools flag) - `tools.extraArgs`: Additional command-line arguments for future flags Example usage: ```yaml tools: enabledTools: - k8s - helm - prometheus extraArgs: - "--some-future-flag" ``` This is a non-breaking change - empty lists (default) preserve current behavior. Signed-off-by: Matteo Mori <matteo.mori@rvu.co.uk> * refactor(helm): rename tools.extraArgs to tools.args Simplify the Helm values key name for additional CLI arguments. Signed-off-by: Matteo Mori <matteo.mori@rvu.co.uk> --------- Signed-off-by: Matteo Mori <matteo.mori@rvu.co.uk>
1 parent d7a3324 commit f31fe9e

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

‎helm/kagent-tools/templates/deployment.yaml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ spec:
5959
args:
6060
- "--port"
6161
- "{{ .Values.service.ports.tools.targetPort }}"
62+
{{- if .Values.tools.enabledTools }}
63+
- "--tools={{ join "," .Values.tools.enabledTools }}"
64+
{{- end }}
65+
{{- with .Values.tools.args }}
66+
{{- toYaml . | nindent 10 }}
67+
{{- end }}
6268
securityContext:
6369
{{- toYaml .Values.securityContext | nindent 12 }}
6470
image: "{{ .Values.tools.image.registry }}/{{ .Values.tools.image.repository }}:{{ coalesce .Values.global.tag .Values.tools.image.tag .Chart.Version }}"

‎helm/kagent-tools/values.yaml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ global:
66

77
tools:
88
loglevel: "debug"
9+
# List of tool providers to enable. Empty list means all tools are enabled.
10+
# Available: k8s, helm, istio, cilium, argo, prometheus, kubescape, utils
11+
enabledTools: []
12+
# - k8s
13+
# - helm
14+
# - prometheus
15+
# Additional command-line arguments
16+
args: []
17+
# - "--some-future-flag"
918
image:
1019
registry: ghcr.io
1120
repository: kagent-dev/kagent/tools

0 commit comments

Comments
 (0)