Skip to content

Commit 89c9946

Browse files
committed
helm: Allow configuring agent memory
Signed-off-by: Marco Franssen <marco.franssen@gmail.com>
1 parent e03ee3a commit 89c9946

22 files changed

Lines changed: 192 additions & 5 deletions

File tree

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true

helm/agents/argo-rollouts/templates/agent.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@ spec:
120120
name: kagent-builtin-prompts
121121
alias: builtin
122122
modelConfig: {{ .Values.modelConfigRef | default (printf "%s" (include "kagent.defaultModelConfigName" .)) }}
123+
{{- with .Values.memory }}
124+
{{- if .enabled }}
125+
memory:
126+
modelConfig: {{ .modelConfigRef | default (printf "%s" (include "kagent.defaultModelConfigName" .)) }}
127+
ttlDays: {{ .ttlDays | default 15 }}
128+
{{- end }}
129+
{{- end }}
123130
tools:
124131
- type: McpServer
125132
mcpServer:
@@ -189,3 +196,5 @@ spec:
189196
{{- end }}
190197
resources:
191198
{{- toYaml .Values.resources | nindent 8 }}
199+
200+

helm/agents/argo-rollouts/values.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# -- Optional reference to a ModelConfig resource for this agent. If not specified, the default model config will be used.
22
modelConfigRef: ""
33

4+
memory:
5+
enabled: false
6+
ttlDays: 15
7+
# Optional reference to a ModelConfig resource for the agent's memory. If not specified, the default model config will be used.
8+
modelConfigRef: ""
9+
410
# -- Optional runtime specification for the agent. If not specified, it will default to "python". Supported runtimes include "python" and "go".
511
runtime: ""
612

@@ -13,4 +19,3 @@ resources:
1319
limits:
1420
cpu: 1000m
1521
memory: 1Gi
16-

helm/agents/cilium-debug/templates/agent.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ spec:
1111
declarative:
1212
runtime: {{ .Values.runtime | default "python" }}
1313
modelConfig: {{ .Values.modelConfigRef | default (printf "%s" (include "kagent.defaultModelConfigName" .)) }}
14+
{{- with .Values.memory }}
15+
{{- if .enabled }}
16+
memory:
17+
modelConfig: {{ .modelConfigRef | default (printf "%s" (include "kagent.defaultModelConfigName" .)) }}
18+
ttlDays: {{ .ttlDays | default 15 }}
19+
{{- end }}
20+
{{- end }}
1421
systemMessage: |
1522
You are the Cilium Debug Agent, a specialized assistant for debugging, troubleshooting,
1623
and advanced diagnostics of Cilium installations in Kubernetes clusters.

helm/agents/cilium-debug/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# -- Optional reference to a ModelConfig resource for this agent. If not specified, the default model config will be used.
22
modelConfigRef: ""
33

4+
memory:
5+
enabled: false
6+
ttlDays: 15
7+
# Optional reference to a ModelConfig resource for the agent's memory. If not specified, the default model config will be used.
8+
modelConfigRef: ""
9+
410
# -- Optional runtime specification for the agent. If not specified, it will default to "python". Supported runtimes include "python" and "go".
511
runtime: ""
612

helm/agents/cilium-manager/templates/agent.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ spec:
1111
declarative:
1212
runtime: {{ .Values.runtime | default "python" }}
1313
modelConfig: {{ .Values.modelConfigRef | default (printf "%s" (include "kagent.defaultModelConfigName" .)) }}
14+
{{- with .Values.memory }}
15+
{{- if .enabled }}
16+
memory:
17+
modelConfig: {{ .modelConfigRef | default (printf "%s" (include "kagent.defaultModelConfigName" .)) }}
18+
ttlDays: {{ .ttlDays | default 15 }}
19+
{{- end }}
20+
{{- end }}
1421
systemMessage: |-
1522
You are a Cilium Expert AI Agent with comprehensive knowledge of Cilium CNI, eBPF, and Kubernetes networking.
1623
You specialize in Cilium installation, configuration, monitoring, and troubleshooting. Your expertise covers

helm/agents/cilium-manager/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# -- Optional reference to a ModelConfig resource for this agent. If not specified, the default model config will be used.
22
modelConfigRef: ""
33

4+
memory:
5+
enabled: false
6+
ttlDays: 15
7+
# Optional reference to a ModelConfig resource for the agent's memory. If not specified, the default model config will be used.
8+
modelConfigRef: ""
9+
410
# -- Optional runtime specification for the agent. If not specified, it will default to "python". Supported runtimes include "python" and "go".
511
runtime: ""
612

helm/agents/cilium-policy/templates/agent.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ spec:
1111
declarative:
1212
runtime: {{ .Values.runtime | default "python" }}
1313
modelConfig: {{ .Values.modelConfigRef | default (printf "%s" (include "kagent.defaultModelConfigName" .)) }}
14+
{{- with .Values.memory }}
15+
{{- if .enabled }}
16+
memory:
17+
modelConfig: {{ .modelConfigRef | default (printf "%s" (include "kagent.defaultModelConfigName" .)) }}
18+
ttlDays: {{ .ttlDays | default 15 }}
19+
{{- end }}
20+
{{- end }}
1421
systemMessage: |-
1522
You are a CiliumNetworkPolicy and CiliumClusterwideNetworkPolicy agent that knows how to create valid YAML configurations based on user request.
1623

helm/agents/cilium-policy/values.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# -- Optional reference to a ModelConfig resource for this agent. If not specified, the default model config will be used.
22
modelConfigRef: ""
33

4+
memory:
5+
enabled: false
6+
ttlDays: 15
7+
# Optional reference to a ModelConfig resource for the agent's memory. If not specified, the default model config will be used.
8+
modelConfigRef: ""
9+
410
# -- Optional runtime specification for the agent. If not specified, it will default to "python". Supported runtimes include "python" and "go".
511
runtime: ""
612

@@ -13,4 +19,3 @@ resources:
1319
limits:
1420
cpu: 1000m
1521
memory: 1Gi
16-

helm/agents/helm/templates/agent.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,13 @@ spec:
102102
name: kagent-builtin-prompts
103103
alias: builtin
104104
modelConfig: {{ .Values.modelConfigRef | default (printf "%s" (include "kagent.defaultModelConfigName" .)) }}
105+
{{- with .Values.memory }}
106+
{{- if .enabled }}
107+
memory:
108+
modelConfig: {{ .modelConfigRef | default (printf "%s" (include "kagent.defaultModelConfigName" .)) }}
109+
ttlDays: {{ .ttlDays | default 15 }}
110+
{{- end }}
111+
{{- end }}
105112
tools:
106113
- type: McpServer
107114
mcpServer:

0 commit comments

Comments
 (0)