Skip to content

fix(helm): ensure tools deployment honors release name#1416

Merged
EItanya merged 1 commit intokagent-dev:mainfrom
onematchfox:bf/kagent-tools-name-override
Mar 4, 2026
Merged

fix(helm): ensure tools deployment honors release name#1416
EItanya merged 1 commit intokagent-dev:mainfrom
onematchfox:bf/kagent-tools-name-override

Conversation

@onematchfox
Copy link
Contributor

Replacement for #1192 since that seems to have gone stale.

Fixes #1190

@onematchfox onematchfox requested a review from EItanya as a code owner March 2, 2026 09:27
Copilot AI review requested due to automatic review settings March 2, 2026 09:27
Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com>
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 fixes a bug where the kagent-tools Helm sub-chart was ignoring the Helm release name due to a hardcoded fullnameOverride: kagent-tools in the parent chart's default values. This caused the service to always be named kagent-tools instead of {{ .Release.Name }}-tools, leading to DNS resolution failures when the release name was not kagent.

Changes:

  • Removes fullnameOverride: kagent-tools which was hardcoding the sub-chart's service name
  • Adds nameOverride: tools so the sub-chart generates its service name as {{ .Release.Name }}-tools, properly honoring the Helm release name

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

@EItanya EItanya merged commit 8c20256 into kagent-dev:main Mar 4, 2026
35 of 38 checks passed
@onematchfox
Copy link
Contributor Author

@EItanya Heads-up, this change does result in the labels of the kagent-tools deployment being changed which leads to the following error when running Helm upgrade. Sorry, about that!

Error: UPGRADE FAILED: cannot patch "kagent-tools" with kind Deployment: Deployment.apps "kagent-tools" is invalid: spec.selector: Invalid value: {"matchLabels":{"app.kubernetes.io/instance":"kagent","app.kubernetes.io/name":"tools"}}: field is immutable

I personally don't have an issue recreating the Deployment but it might be worth mentioning this in the release notes?

@onematchfox
Copy link
Contributor Author

P.S. This is ultimately be the cause of #1427 (not sure how that person managed to upgrade the deployment but not the service). And... upgrading the subchart to include kagent-dev/tools#47 will also address the issue and prevent the need to recreate the deployment.

@onematchfox onematchfox deleted the bf/kagent-tools-name-override branch March 5, 2026 10:38
@EItanya
Copy link
Contributor

EItanya commented Mar 5, 2026

P.S. This is ultimately be the cause of #1427 (not sure how that person managed to upgrade the deployment but not the service). And... upgrading the subchart to include kagent-dev/tools#47 will also address the issue and prevent the need to recreate the deployment.

I will release tools and then do a new release of kagent.

@onematchfox
Copy link
Contributor Author

Thanks. And sorry again for the break + extra work

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.

[BUG] kagent-tools may not have fullnameOverride default value

3 participants