Skip to content

feat(agent-manager): admit agent-manager 3.x beside 2.24.0 and later - #1386

Closed
fiunchinho wants to merge 1 commit into
mainfrom
agent-manager-3
Closed

fiunchinho wants to merge 1 commit into
mainfrom
agent-manager-3

Conversation

@fiunchinho

@fiunchinho fiunchinho commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Do not merge as it is (2026-11-13). giantswarm/agent-manager#381, merged after this change was written and released in agent-manager v3.0.0-rc.10, moves the chart value githubTokenExchange to github.tokenExchange (endpoint becomes tokenEndpoint, secretName becomes existingSecret, the new key needs github.enabled: true, and the schema refuses the old key). So the statement below that the chart forwards the same values to both majors no longer holds. Graveler (since giantswarm/giantswarm-configs#1070) and gazelle (since giantswarm/giantswarm-configs#1067) set agent-manager.githubTokenExchange; graveler follows release candidates and would move to 3.x at once, and its token exchange and commit mode would stop. Before a merge: the connectivity chart's egress rule and the meta chart's floor check read the new key, the platform manager renders it (giantswarm/giantswarm-platform-manager#927), the installations are reconciled, and the range is decided again (a clean cut to >=3.0.0 <4.0.0 is now the better choice).

Do not merge before:

  • agent-manager 3.0.0 is published as a stable chart (devctl release wait giantswarm/agent-manager 3.0.0). Then re-run this pull request's CI: verify-components-charts resolves the range to 3.0.0 and renders the forwarded values against its chart. Today the range resolves to 2.24.0.
  • Every installation that runs the Dev Portal's organization pages runs a Dev Portal 3.38.0 or later (fix(agent-platform): replace organization credentials with replace_organization_credential backstage#3483 moved its Replace buttons to replace_organization_credential). Graveler and gazelle run 3.38.2 (feat(organizations)!: drop replaceCredential from the set tools agent-manager#365); glean's portal follows >=2.1.0 <4.0.0. A portal on the 2.x chart line has no organization pages and is not affected.
  • Graveler and glean set gitops.prereleases: true: there the range becomes >=2.24.0-0 <4.0.0-0, so the release of this change moves their agent-manager to the newest 3.0.0 release candidate at once, not when 3.0.0 is published.

Problem

agent-manager is on the 3.0.0 line since giantswarm/agent-manager#365. The meta chart admits >=2.24.0 <3.0.0, so no installation gets agent-manager 3.x, and a hold on 3.x is outside the chart's tested range.

Change

  • components.agent-manager.versionRange is >=2.24.0 <4.0.0 (was >=2.24.0 <3.0.0). The values comment, the README table and tests/golden/meta-ci-engine-off.yaml (make golden-update) follow.
  • The range spans both majors, not >=3.0.0 <4.0.0. Between v2.24.0 and v3.0.0-rc.8, agent-manager changes nothing in helm/ (values, values.schema.json, templates, RBAC), cmd/ or internal/migrate (git diff --stat v2.24.0 v3.0.0-rc.8 -- helm cmd internal/migrate is empty). The chart forwards the same values to both majors. The break is in the MCP tool contract only, and nothing this chart ships needs 3.0.0. A floor of 3.0.0 would put agent-manager in UNRELEASED and agent-platform.giantswarm.io/unreleased until 3.0.0 is out: dev builds refuse their install, and the tag pipeline refuses every meta chart release, the 4.180.0 candidates included. Precedent: components.backstage (>=2.68.0 <4.0.0) and components.klaus-gateway admit more than one major the same way.
  • Where the range is not held, Flux moves agent-manager to 3.0.0 when that chart is published, with no new release of this chart. With gitops.prereleases, it moves to the newest 3.0.0 release candidate when this release is applied.
  • The customer BOM keeps agent-manager: 2.24.0 (every pin is its range's floor, make golden-update), and the migrate image agentManager.migration.image.tag stays 2.24.0: the migrate command is the same in 3.0.0.
  • UPGRADE.md: a new entry with the operator actions. docs/organization-credentials.md says 3.x takes no replaceCredential.
  • CHANGELOG.md is not changed: the file says that a pull request does not edit it, and the title is the release note.

What agent-manager 3.0.0 breaks

v2.24.0..v3.0.0-rc.8 (a49613d):

Change Evidence Meta chart Operator
replaceCredential removed from set_organization_model, set_organization_connector, set_organization_egress_policy; a call with it is refused invalid_request (bindArgs uses DisallowUnknownFields) giantswarm/agent-manager#365, internal/api/organizations.go:127-138, docs/tools.md range only Dev Portal 3.38.0 or later before 3.x arrives; other clients call replace_organization_credential
set_organization_model refuses with conflict a provider change of a model that names a credential Secret and keeps it giantswarm/agent-manager#391 nothing such a client sends a new credentialSecret
New create argument on the three set tools; new error code already_exists (409) giantswarm/agent-manager#378, #382, api/openapi.yaml nothing nothing (additive)
list_organizations adds permissions.createAgents (one more SelfSubjectAccessReview as the caller) giantswarm/agent-manager#392, internal/organizations/list.go nothing (no RBAC for agent-manager's ServiceAccount) nothing (additive)
list_organization_members names the member-read right of chart 4.179.0 in its refusal giantswarm/agent-manager#383 nothing (the roles are on main since 4.179.0) nothing
Chart values, schema, templates, RBAC, flags (cmd/serve.go), migrate no diff nothing nothing

Tests

  • make golden-update, then make verify-all: all 119 targets pass locally. A second make golden-update leaves no diff.
  • verify-components-charts: ok: every range is published; Chart.yaml carries no agent-platform.giantswarm.io/unreleased. The range resolves to 2.24.0 and renders the forwarded values in every shape. verify-prereleases: '>=2.24.0 <4.0.0' stops below 4.0.0, its candidates included.
  • The pre-commit hooks pass on the commit.

Review

# Outcome Finding
1 Fixed UPGRADE.md said that agent-manager moves to 3.x only when 3.0.0 is published. With gitops.prereleases it moves to the newest 3.0.0 release candidate with this release. The entry, the values comment and this description say so.
2 Fixed The 2.24 entry of UPGRADE.md (#1371, not released yet) ended "The range stays below 3.0.0", which contradicts the new entry. It now points to the new entry.
3 Fixed The provider refusal of #391 was stated too wide: it applies only to a model that names a credential Secret and keeps it, and the code is conflict.
4 Fixed "The release rolls the agent-manager Deployment" was wrong for a stable-only installation: the roll happens when Flux moves to 3.x.
5 Fixed docs/organization-credentials.md: "cannot" had no object.
6 No change The migrate image stays 2.24.0: the migrate code is the same in 3.0.0.
7 Before merge The claim "same chart values" is checked on 3.0.0-rc.8. Check it on 3.0.0 with the CI re-run (first item at the top).

Deferred

  • giantswarm/giantswarm#39238: the platform manager's agent-platform definition still names the default agent-manager range >=2.22.0, and its consumption test pins agent-manager 2.24.0; the 3.0.0 pin goes with the meta chart release that admits it.

components.agent-manager.versionRange is >=2.24.0 <4.0.0. agent-manager 3.0.0 removes replaceCredential from the set tools (giantswarm/agent-manager#365); its chart takes the same values as 2.24.0. UPGRADE.md names the operator actions.
@fiunchinho fiunchinho self-assigned this Nov 12, 2026
@circleci-architect

Copy link
Copy Markdown

Published Helm chart agent-platform-connectivity

4.179.3-ra5c8c175t20261112182627hc904d95
Chart agent-platform-connectivity
Version 4.179.3-ra5c8c175t20261112182627hc904d95
OCI reference oci://gsoci.azurecr.io/charts/giantswarm/agent-platform-connectivity:4.179.3-ra5c8c175t20261112182627hc904d95
Digest sha256:8deb878e878cb28ad80f5303f9bea792b164a1d5595138d011faae8a99b06a1a
Registry public — gsoci.azurecr.io
Git catalog giantswarm-test-catalog (index)
Pull this chart
helm pull oci://gsoci.azurecr.io/charts/giantswarm/agent-platform-connectivity --version 4.179.3-ra5c8c175t20261112182627hc904d95

Posted by architect-orb · build 32232 · commit c904d95 · updated in place on every push

@circleci-architect

Copy link
Copy Markdown

Published Helm chart agent-platform

4.179.3-ra5c8c175t20261112182627hc904d95
Chart agent-platform
Version 4.179.3-ra5c8c175t20261112182627hc904d95
OCI reference oci://gsoci.azurecr.io/charts/giantswarm/agent-platform:4.179.3-ra5c8c175t20261112182627hc904d95
Digest sha256:1a4004dc26b6fea6f6c3225a5841ea8d7f71a220ec905041671c91e7ea851445
Registry public — gsoci.azurecr.io
Git catalog giantswarm-test-catalog (index)
Pull this chart
helm pull oci://gsoci.azurecr.io/charts/giantswarm/agent-platform --version 4.179.3-ra5c8c175t20261112182627hc904d95

Posted by architect-orb · build 32233 · commit c904d95 · updated in place on every push

@fiunchinho

Copy link
Copy Markdown
Member Author

Superseded by #1375, which admits agent-manager 3.x, reads github.tokenExchange in the chart and the connectivity policies, and validates the range floors.

@fiunchinho fiunchinho closed this Nov 13, 2026
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