Skip to content

Commit 19b2c3b

Browse files
committed
feat(helm): expose context compaction in all agent subcharts
Allow users to configure context compaction per agent subchart without replacing the chart-managed Agent CR. Fixes #1827 Signed-off-by: mesutoezdil <mesudozdil@gmail.com>
1 parent d3a143c commit 19b2c3b

20 files changed

Lines changed: 110 additions & 0 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,11 @@ spec:
182182
- "Should I convert my Deployment directly or use workloadRef for my 'user-service'?"
183183
- "How can I check if the Argo Rollouts controller is installed and running in my cluster before I start migrating?"
184184
- "My Deployment YAML is complex. Can you help me get its YAML so I can plan the conversion to a Rollout?"
185+
{{- with .Values.compaction }}
186+
context:
187+
compaction:
188+
{{- toYaml . | nindent 8 }}
189+
{{- end }}
185190
deployment:
186191
{{- with coalesce (empty .Values.imagePullSecrets | ternary nil .Values.imagePullSecrets) .Values.global.imagePullSecrets }}
187192
imagePullSecrets:

helm/agents/argo-rollouts/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,9 @@ resources:
1414
cpu: 1000m
1515
memory: 1Gi
1616

17+
18+
# -- Context compaction settings. Example:
19+
# compaction:
20+
# compactionInterval: 5
21+
# overlapSize: 2
22+
compaction: {}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ spec:
155155
- "Monitor real-time traffic using cilium-dbg monitor"
156156
- "Check the health status of Cilium endpoints"
157157
- "Verify encryption status between pods"
158+
{{- with .Values.compaction }}
159+
context:
160+
compaction:
161+
{{- toYaml . | nindent 8 }}
162+
{{- end }}
158163
deployment:
159164
{{- with coalesce (empty .Values.imagePullSecrets | ternary nil .Values.imagePullSecrets) .Values.global.imagePullSecrets }}
160165
imagePullSecrets:

helm/agents/cilium-debug/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ resources:
1313
limits:
1414
cpu: 1000m
1515
memory: 1Gi
16+
17+
# -- Context compaction settings. Example:
18+
# compaction:
19+
# compactionInterval: 5
20+
# overlapSize: 2
21+
compaction: {}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,11 @@ spec:
427427
- "I need a CiliumNetworkPolicy for my application."
428428
- "How do I write a policy to allow only specific DNS queries?"
429429
- "What's the syntax for creating a Cilium egress policy?"
430+
{{- with .Values.compaction }}
431+
context:
432+
compaction:
433+
{{- toYaml . | nindent 8 }}
434+
{{- end }}
430435
deployment:
431436
{{- with coalesce (empty .Values.imagePullSecrets | ternary nil .Values.imagePullSecrets) .Values.global.imagePullSecrets }}
432437
imagePullSecrets:

helm/agents/cilium-manager/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ resources:
1313
limits:
1414
cpu: 1000m
1515
memory: 1Gi
16+
17+
# -- Context compaction settings. Example:
18+
# compaction:
19+
# compactionInterval: 5
20+
# overlapSize: 2
21+
compaction: {}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,11 @@ spec:
519519
- "I want to restrict traffic between pods in the same namespace, which policy should I use?"
520520
- "Can you create a Kubernetes NetworkPolicy for me?"
521521
- "What's the difference between CiliumNetworkPolicy and CiliumClusterwideNetworkPolicy for securing my nodes?"
522+
{{- with .Values.compaction }}
523+
context:
524+
compaction:
525+
{{- toYaml . | nindent 8 }}
526+
{{- end }}
522527
deployment:
523528
{{- with coalesce (empty .Values.imagePullSecrets | ternary nil .Values.imagePullSecrets) .Values.global.imagePullSecrets }}
524529
imagePullSecrets:

helm/agents/cilium-policy/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,9 @@ resources:
1414
cpu: 1000m
1515
memory: 1Gi
1616

17+
18+
# -- Context compaction settings. Example:
19+
# compaction:
20+
# compactionInterval: 5
21+
# overlapSize: 2
22+
compaction: {}

helm/agents/helm/templates/agent.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,11 @@ spec:
174174
- "The latest upgrade of the 'api-gateway' release failed. Can you help identify the problem?"
175175
- "How do I check the rendered Kubernetes manifests for the 'web-server' release without deploying them?"
176176
- "The pods managed by the 'message-broker' Helm release are frequently restarting. What should I investigate?"
177+
{{- with .Values.compaction }}
178+
context:
179+
compaction:
180+
{{- toYaml . | nindent 8 }}
181+
{{- end }}
177182
deployment:
178183
{{- with coalesce (empty .Values.imagePullSecrets | ternary nil .Values.imagePullSecrets) .Values.global.imagePullSecrets }}
179184
imagePullSecrets:

helm/agents/helm/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,9 @@ resources:
1414
cpu: 1000m
1515
memory: 1Gi
1616

17+
18+
# -- Context compaction settings. Example:
19+
# compaction:
20+
# compactionInterval: 5
21+
# overlapSize: 2
22+
compaction: {}

0 commit comments

Comments
 (0)