Skip to content

feat(helm/kagent): support deployment annotations#2143

Open
anthonyhaussman wants to merge 2 commits into
kagent-dev:mainfrom
anthonyhaussman:feat/helm-kagent-deployment-annotations
Open

feat(helm/kagent): support deployment annotations#2143
anthonyhaussman wants to merge 2 commits into
kagent-dev:mainfrom
anthonyhaussman:feat/helm-kagent-deployment-annotations

Conversation

@anthonyhaussman

Copy link
Copy Markdown
Contributor

Add support for deployment-level annotations on the controller and UI deployments.

Allows configuring a global annotations map that applies to all deployments, as well as component-specific overrides via controller.annotations and ui.annotations.

Copilot AI review requested due to automatic review settings July 3, 2026 12:08
@github-actions github-actions Bot added the enhancement New feature or request label Jul 3, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Helm values and template wiring to support Deployment-level annotations for the kagent controller and UI, with both a global annotations map and per-component settings.

Changes:

  • Introduces a new top-level annotations map in values.yaml intended to apply to all Deployment resources.
  • Adds controller.annotations and ui.annotations values and wires them into the respective Deployment templates.
  • Extends Helm unit tests to validate annotations behavior for controller and UI deployments.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
helm/kagent/values.yaml Adds global and component-specific values for Deployment-level annotations.
helm/kagent/templates/ui-deployment.yaml Renders UI Deployment metadata.annotations based on values.
helm/kagent/templates/controller-deployment.yaml Renders controller Deployment metadata.annotations based on values.
helm/kagent/tests/ui-deployment_test.yaml Adds tests for UI Deployment annotations behavior.
helm/kagent/tests/controller-deployment_test.yaml Adds tests for controller Deployment annotations behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread helm/kagent/templates/ui-deployment.yaml Outdated
Comment thread helm/kagent/templates/controller-deployment.yaml Outdated
Comment thread helm/kagent/tests/ui-deployment_test.yaml
Comment thread helm/kagent/tests/controller-deployment_test.yaml
Add support for deployment-level annotations on the controller and
UI deployments.

Allows configuring a global annotations map that applies to all
deployments, as well as component-specific overrides via
controller.annotations and ui.annotations.

Signed-off-by: Anthony Hausman <anthony.hausman@backmarket.com>
Use mergeOverwrite to merge global annotations and component-specific annotations instead of either/or selection. Add tests to verify global keys are preserved.

Signed-off-by: Anthony Hausman <anthony.hausman@backmarket.com>
@anthonyhaussman anthonyhaussman force-pushed the feat/helm-kagent-deployment-annotations branch from 027223b to 5814918 Compare July 3, 2026 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants