Skip to content

Commit 0299b1c

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 6230807 commit 0299b1c

20 files changed

Lines changed: 60 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ 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+
{{- if .Values.compaction }}
186+
context:
187+
compaction: {{- toYaml .Values.compaction | nindent 8 }}
188+
{{- end }}
185189
deployment:
186190
{{- with coalesce (empty .Values.imagePullSecrets | ternary nil .Values.imagePullSecrets) .Values.global.imagePullSecrets }}
187191
imagePullSecrets:

helm/agents/argo-rollouts/values.yaml

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

17+
18+
compaction: {}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ 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+
{{- if .Values.compaction }}
159+
context:
160+
compaction: {{- toYaml .Values.compaction | nindent 8 }}
161+
{{- end }}
158162
deployment:
159163
{{- with coalesce (empty .Values.imagePullSecrets | ternary nil .Values.imagePullSecrets) .Values.global.imagePullSecrets }}
160164
imagePullSecrets:

helm/agents/cilium-debug/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ resources:
1313
limits:
1414
cpu: 1000m
1515
memory: 1Gi
16+
17+
compaction: {}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,10 @@ 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+
{{- if .Values.compaction }}
431+
context:
432+
compaction: {{- toYaml .Values.compaction | nindent 8 }}
433+
{{- end }}
430434
deployment:
431435
{{- with coalesce (empty .Values.imagePullSecrets | ternary nil .Values.imagePullSecrets) .Values.global.imagePullSecrets }}
432436
imagePullSecrets:

helm/agents/cilium-manager/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ resources:
1313
limits:
1414
cpu: 1000m
1515
memory: 1Gi
16+
17+
compaction: {}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,10 @@ 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+
{{- if .Values.compaction }}
523+
context:
524+
compaction: {{- toYaml .Values.compaction | nindent 8 }}
525+
{{- end }}
522526
deployment:
523527
{{- with coalesce (empty .Values.imagePullSecrets | ternary nil .Values.imagePullSecrets) .Values.global.imagePullSecrets }}
524528
imagePullSecrets:

helm/agents/cilium-policy/values.yaml

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

17+
18+
compaction: {}

helm/agents/helm/templates/agent.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ 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+
{{- if .Values.compaction }}
178+
context:
179+
compaction: {{- toYaml .Values.compaction | nindent 8 }}
180+
{{- end }}
177181
deployment:
178182
{{- with coalesce (empty .Values.imagePullSecrets | ternary nil .Values.imagePullSecrets) .Values.global.imagePullSecrets }}
179183
imagePullSecrets:

helm/agents/helm/values.yaml

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

17+
18+
compaction: {}

0 commit comments

Comments
 (0)