Skip to content

Management agent: report the chart Helm stamped on the release when Flux does not run it - #2821

Merged
davidmckayv merged 1 commit into
mainfrom
agent-chart-version-without-flux
Dec 2, 2026
Merged

davidmckayv merged 1 commit into
mainfrom
agent-chart-version-without-flux

Conversation

@davidmckayv

@davidmckayv davidmckayv commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

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/chart label Helm puts on the release's own Deployments: openbot-<version>, or openbot-bundle-<version> for the bundle. It reads only Deployments whose app.kubernetes.io/instance is 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.

  • An install connected to CopilotKit without managed upgrades now reports its OpenBot chart version, read from the release's own Deployments, instead of "unknown".

…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
davidmckayv merged commit 0de4383 into main Dec 2, 2026
112 of 116 checks passed
@davidmckayv
davidmckayv deleted the agent-chart-version-without-flux branch December 2, 2026 23:58
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.

1 participant