Repository navigation
Management agent: report the chart Helm stamped on the release when Flux does not run it - #2821
Merged
Merged
Conversation
…lux does not run it An agent without upgrades (the one the product chart installs, or one beside a release something else deploys, as OpenBot Cloud staging) read the chart version only from Flux's HelmRelease history, so it always reported "unknown". It now reads the helm.sh/chart label (openbot-<version>, or openbot-bundle-<version>) on a Deployment of its own release (app.kubernetes.io/instance), and only when there is no Flux release to read. Test: the agent-only heartbeat reports the label's version, never another release's, and still "unknown" with no label.
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
December 2, 2026 23:38
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An agent that does not run upgrades reported the product's chart as "unknown" in CopilotKit Admin. That covers the agent the product chart installs by default, and one beside a release that something else deploys, as OpenBot Cloud staging (the Staging workflow deploys it). The chart version came only from Flux's HelmRelease history, and there is no Flux there.
The agent now reads the
helm.sh/chartlabel Helm puts on the release's own Deployments:openbot-<version>, oropenbot-bundle-<version>for the bundle. It reads only Deployments whoseapp.kubernetes.io/instanceis its release, and only when there is no Flux release to read. Where Flux runs, nothing changes.Test (
management-agent/tests/agent-only.test.ts): the agent-only heartbeat reports the label's version. Another release's Deployment in the same namespace, with a newer chart, is not used. With no label it still says "unknown". The test fails without the change ("unknown" instead of "0.3.0").Changelog
Management.