Skip to content

fix(helm): render queue block + agent detection config; fix image tag, add aws/securityContext#262

Open
nghiadaulau wants to merge 1 commit into
VersusControl:mainfrom
nghiadaulau:fix/helm-chart-correctness
Open

fix(helm): render queue block + agent detection config; fix image tag, add aws/securityContext#262
nghiadaulau wants to merge 1 commit into
VersusControl:mainfrom
nghiadaulau:fix/helm-chart-correctness

Conversation

@nghiadaulau

Copy link
Copy Markdown
Member

What

Correctness fixes + hardening for the Helm chart, found while deploying the AI agent on minikube.

Fix Detail
sns/sqs placement Rendered under alert: but the Go config reads listeners from cfg.Queue.* → moved to a top-level queue: block. SNS/SQS were silently ignored before.
Agent detection config regex/redaction/miner/catalog/service_patterns are now rendered into config.yaml. Without regex.default_pattern the agent matched nothing and never built a catalog.
Image tag Stopped forcing a v prefix — --set image.tag=latest produced :vlatest. Only the default falls back to v<appVersion>.
Missing aws: block Templates referenced .Values.aws.* with no values entry → nil-pointer when sns/sqs enabled.
Hardening pod/container securityContext (non-root uid 65532, drop ALL caps, fsGroup), plus imagePullSecrets/nodeSelector/affinity/tolerations/podAnnotations/extraEnv; probes use the named http port.

Verified

helm lint clean · helm/versus-incident/tests/run.sh4/4 pass · deployed on minikube with Telegram + agent (Gemini via agent.ai.base_url) working end-to-end.

Note: complements #245 (agent.ai.base_url) — the two touch different parts of the chart and merge cleanly.

🤖 Generated with Claude Code

…, add aws/securityContext

- Move sns/sqs out of alert: into a top-level queue: block — the Go config
  reads listeners from cfg.Queue.*, so they were silently ignored.
- Render the agent regex/redaction/miner/catalog/service_patterns into
  config.yaml; without regex.default_pattern the agent matched nothing.
- Stop forcing a v prefix on image.tag (broke custom tags like :vlocal);
  only the default falls back to v<appVersion>.
- Add the missing aws: values block (nil-pointer when sns/sqs enabled).
- Add pod/container securityContext (non-root, drop ALL caps) and standard
  knobs (imagePullSecrets/nodeSelector/affinity/tolerations/podAnnotations/
  extraEnv); probes use the named http port.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant