Skip to content

[INFRA-455] feat: add agent consumer#270

Open
Saurabhkmr98 wants to merge 1 commit into
masterfrom
feat/agent-consumer
Open

[INFRA-455] feat: add agent consumer#270
Saurabhkmr98 wants to merge 1 commit into
masterfrom
feat/agent-consumer

Conversation

@Saurabhkmr98

@Saurabhkmr98 Saurabhkmr98 commented Jul 21, 2026

Copy link
Copy Markdown
Member

What

Adds a new opt-in Agent Consumer deployment to the plane-enterprise chart: templates/workloads/agent-consumer.deployment.yaml, templates/config-secrets/agent-consumer.yaml, services.agent_consumer / env.agent_consumer_envs blocks in values.yaml, a questions.yml installer group, README docs, and a chart version bump (3.0.03.1.0).

Why

Companion to helm-charts-private@5cfc2d8 (INFRA-432, "add support for new agent consumer", #677), which added this RabbitMQ-backed agent consumer to the plane-cloud chart. This brings the same consumer to the enterprise self-hosted chart.

Scope / behavior

  • Fully opt-in: gated by .Values.services.agent_consumer.enabled (default false) in both new templates — no rendered resources and no behavior change for existing installs unless explicitly enabled.
  • Mirrors the existing webhook_consumer service pattern exactly (labels/annotations helper, pod scheduling, pod/container security context, doc-store + opensearch secrets, conditional silo secret when services.silo.enabled) — kept consistent with every other consumer in this chart rather than a literal port of the plane-cloud version, which lacks those helpers/secrets.
  • New ConfigMap <release>-agent-consumer-vars exposes AGENT_QUEUE_NAME (default plane.agent) and AGENT_PREFETCH_COUNT (default 10).
  • Not affected: plane-ce chart — this consumer doesn't exist there, matching webhook_consumer/automation_consumer, which are enterprise-only.

Testing

No helm binary was available in this environment, so helm template/helm lint were not run. values.yaml, questions.yml, and Chart.yaml were confirmed to be parseable YAML. The new templates were hand-verified line-by-line against webhook-consumer.deployment.yaml/webhook-consumer.yaml for structural parity. Recommend running helm template charts/plane-enterprise --set services.agent_consumer.enabled=true before merge.

Related

Companion to helm-charts-private commit 5cfc2d8 (INFRA-432 / #677).

Summary by CodeRabbit

  • New Features

    • Added optional Agent Consumer deployment support for enterprise Helm installations.
    • Added configuration for replicas, resource allocation, scheduling, labels, annotations, queue name, and prefetch count.
    • Added automatic environment configuration and readiness checks for the Agent Consumer service.
  • Documentation

    • Documented Agent Consumer deployment and configuration options in the Helm chart reference.
  • Chores

    • Incremented the enterprise Helm chart version to 3.1.0.

@Saurabhkmr98 Saurabhkmr98 self-assigned this Jul 21, 2026
@coderabbitai

coderabbitai Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 45bbca54-4c18-42e1-9182-cced9615ae12

📥 Commits

Reviewing files that changed from the base of the PR and between bfd3047 and 9e8cfcb.

📒 Files selected for processing (6)
  • charts/plane-enterprise/Chart.yaml
  • charts/plane-enterprise/README.md
  • charts/plane-enterprise/questions.yml
  • charts/plane-enterprise/templates/config-secrets/agent-consumer.yaml
  • charts/plane-enterprise/templates/workloads/agent-consumer.deployment.yaml
  • charts/plane-enterprise/values.yaml

Walkthrough

Adds an optional agent consumer service to the enterprise Helm chart, including configuration values, setup questions, documentation, a runtime ConfigMap, and a Kubernetes Deployment with resource, scheduling, probe, secret, and environment settings.

Changes

Agent Consumer Deployment

Layer / File(s) Summary
Agent consumer configuration contract
charts/plane-enterprise/values.yaml, charts/plane-enterprise/questions.yml, charts/plane-enterprise/README.md, charts/plane-enterprise/Chart.yaml
Adds agent consumer defaults, configuration questions, values documentation, and updates the chart version to 3.1.0.
Agent consumer configuration and workload rendering
charts/plane-enterprise/templates/config-secrets/agent-consumer.yaml, charts/plane-enterprise/templates/workloads/agent-consumer.deployment.yaml
Conditionally renders the agent consumer ConfigMap and Deployment, including runtime settings, resources, probes, scheduling, secrets, and environment injection.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant HelmValues
  participant AgentConsumerConfigMap
  participant AgentConsumerDeployment
  participant AgentConsumerProcess
  HelmValues->>AgentConsumerConfigMap: Render queue_name and prefetch_count
  HelmValues->>AgentConsumerDeployment: Render enabled workload configuration
  AgentConsumerConfigMap->>AgentConsumerDeployment: Provide runtime configuration
  AgentConsumerDeployment->>AgentConsumerProcess: Start agent consumer container
Loading

Suggested reviewers: sriramveeraghanta

Poem

A rabbit hops through Helm-chart gates,
With queues and pods and tidy states.
It sets the prefetch, starts the run,
A worker wakes beneath the sun.
“Deploy,” it twitches, “tasks are near!”

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title is concise and accurately summarizes the main change: adding an opt-in agent consumer.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/agent-consumer

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@makeplane

makeplane Bot commented Jul 21, 2026

Copy link
Copy Markdown

Linked to Plane Work Item(s)

References

This comment was auto-generated by Plane

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.

2 participants