Skip to content

Conversation

@EItanya
Copy link
Contributor

@EItanya EItanya commented Oct 31, 2025

No description provided.

Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
Copilot AI review requested due to automatic review settings October 31, 2025 20:31
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds configurability for the Kagent controller service name by introducing an environment variable KAGENT_CONTROLLER_NAME. Previously, the controller name was hardcoded as "kagent-controller" in the URL construction for agent deployments.

  • Adds GetControllerName() utility function that reads from KAGENT_CONTROLLER_NAME environment variable
  • Updates the KAGENT_URL construction in agent deployments to use the new configurable controller name

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
go/internal/utils/common.go Introduces new GetControllerName() function following the same pattern as GetResourceNamespace()
go/internal/controller/translator/agent/adk_api_translator.go Updates KAGENT_URL construction to use the new GetControllerName() function instead of hardcoded "kagent-controller"

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

@EItanya EItanya merged commit cebffe2 into main Oct 31, 2025
22 checks passed
@EItanya EItanya deleted the eitanya/controller-name branch October 31, 2025 20:54
artberger added a commit to kagent-dev/website that referenced this pull request Nov 21, 2025
For kagent-dev/kagent#1078

Signed-off-by: Art Berger <art.berger@solo.io>
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.

3 participants