Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,21 @@ Every component ships its own CRDs and upgrades them with its release; there is

A CRD version change that needs more than an apply (a stored version dropped, as with kagent's `v1alpha2`) has its own entry below, with the hook that does it.

## \<current\> → \<next\> (agent-manager 3.x admitted: `replaceCredential` removed)

`components.agent-manager.versionRange` is `>=2.24.0 <4.0.0`. agent-manager 3.0.0 removes the argument `replaceCredential` from `set_organization_model`, `set_organization_connector` and `set_organization_egress_policy` (giantswarm/agent-manager#365): a call that sends it is refused with `invalid_request` and changes nothing. `replace_organization_credential` is the one way to enter a new value for an existing credential. 3.0.0 also refuses with `conflict` a `set_organization_model` that changes the `provider` of a model that names a credential Secret and keeps that Secret (omits `credentialSecret` or sends the same one) (giantswarm/agent-manager#391), adds `create` to the three set tools (a create whose name is taken is refused with `already_exists`, giantswarm/agent-manager#378, #382) and `permissions.createAgents` to `list_organizations` (giantswarm/agent-manager#392). Its chart takes the same values, ServiceAccount and RBAC as 2.24.0, and its `migrate` command is the same, so this chart forwards the same values to both and the migrate run's image stays `2.24.0`. The range spans both majors: where it is not held, Flux moves agent-manager to 3.0.0 when that chart is published, without a new release of this chart. With `gitops.prereleases` on, the range admits release candidates (`>=2.24.0-0 <4.0.0-0`), so Flux moves agent-manager to the newest 3.0.0 release candidate as soon as this release is applied. When Flux moves to 3.x, the agent-manager Deployment rolls in place; agents, Sessions and organizations stay as they are.

### Operator action

- **A Dev Portal before 3.38.0** (`components.backstage` held below it, or a portal installed apart): it rotates an organization credential with `replaceCredential`, so its Replace button fails on agent-manager 3.x. Move it to 3.38.0 or later **before agent-manager 3.x reaches the installation**: before this release with `gitops.prereleases` on, else before agent-manager 3.0.0 is published. A portal on the 2.x chart line has no organization pages and is not affected.
- **A client, agent or script that sends `replaceCredential`**: call `replace_organization_credential` with the Secret and the key.
- **A client that changes the `provider` of a model that names a credential Secret**: send a new `credentialSecret` in the same call.
- **An installation that must stay on agent-manager 2.x for now**: hold `components.agent-manager.versionRange` at `>=2.24.0 <3.0.0` (the platform manager's `versions.components.agent-manager`), and lift the hold once the portal and the clients are ready.
- **An installation that pins the BOM**: nothing to do; `2.24.0` stays in the range. Move the pin to `3.0.0` with the portal check above.

## \<current\> → \<next\> (agent-manager 2.24: `list_organizations` and write-only organization credentials)

giantswarm/backstage#3364: `components.agent-manager.versionRange` is `>=2.24.0 <3.0.0`. agent-manager 2.24.0 replaces the tool `list_my_organizations` with `list_organizations` (the organizations the person manages or belongs to), makes organization credentials write-only (it writes them without reading the Secret as the caller), adds `replace_organization_credential`, and answers a save whose credential's consumers changed with `credential_consumers_changed`; the Dev Portal 3.38.0 replaces a credential with `replace_organization_credential` and deletes one through its delete dialog (it lists organizations with `list_organizations` from 3.37.0, giantswarm/backstage#3467). 2.24.0 is also `agent-platform.agentManager.skillManagerFloor`: with `components.skill-manager` on (it follows agent-manager), agent-manager now pins skills through the skill-manager (`skillManager.url`) and gets `installation` and, while the default agent is on, `defaultAgentModel`, as the earlier entry on the default agent and the skill-manager describes. With `defaultAgentModel`, agent-manager gives the default agent (`default-agent` in the kagent namespace) the installation's default model once, while it has none: the ModelConfig in the kagent namespace annotated `agent-platform.giantswarm.io/is-default-model-config: "true"`. Below this floor the default agent gets no model and is not ready (`Compatible=False`, `kagent ModelConfig is required`). The agent-manager migrate run's image (`agentManager.migration.image.tag`) is already `2.24.0`, so the migrate run pins skills the same way. The range stays below 3.0.0: admitting agent-manager 3.x is a separate step.
giantswarm/backstage#3364: `components.agent-manager.versionRange` is `>=2.24.0 <3.0.0`. agent-manager 2.24.0 replaces the tool `list_my_organizations` with `list_organizations` (the organizations the person manages or belongs to), makes organization credentials write-only (it writes them without reading the Secret as the caller), adds `replace_organization_credential`, and answers a save whose credential's consumers changed with `credential_consumers_changed`; the Dev Portal 3.38.0 replaces a credential with `replace_organization_credential` and deletes one through its delete dialog (it lists organizations with `list_organizations` from 3.37.0, giantswarm/backstage#3467). 2.24.0 is also `agent-platform.agentManager.skillManagerFloor`: with `components.skill-manager` on (it follows agent-manager), agent-manager now pins skills through the skill-manager (`skillManager.url`) and gets `installation` and, while the default agent is on, `defaultAgentModel`, as the earlier entry on the default agent and the skill-manager describes. With `defaultAgentModel`, agent-manager gives the default agent (`default-agent` in the kagent namespace) the installation's default model once, while it has none: the ModelConfig in the kagent namespace annotated `agent-platform.giantswarm.io/is-default-model-config: "true"`. Below this floor the default agent gets no model and is not ready (`Compatible=False`, `kagent ModelConfig is required`). The agent-manager migrate run's image (`agentManager.migration.image.tag`) is already `2.24.0`, so the migrate run pins skills the same way. The next entry admits agent-manager 3.x.

### Operator action

Expand Down
2 changes: 1 addition & 1 deletion docs/organization-credentials.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Set `agent-manager.credentials.uiURL` to the HTTPS URL template of the client th

The form uses its client's authenticated backend path to post the value to agent-manager's REST API as the person; agent-manager exposes no browser CORS exception. A client backend outside the cluster reaches that API through `agentManager.route` (`https://agentgateway.<global.domain>/agent-manager`, `agentManager.route.hostname` overrides the host): turn on `agentManager.route.enabled`, and `agentManager.route.jwtAuthentication.enabled` with the identity provider's issuer. agent-manager validates the token itself (`agent-manager.oauth`), so the audience of the ID token the client sends must be one it trusts (`agent-manager.oauth.trustedAudiences` and the muster audiences it accepts).

Credential operations and `agent-manager.githubTokenExchange` need a floor of `2.22.0` or later in `components.agent-manager.versionRange`. The default floor, `2.24.0`, makes credentials write-only (agent-manager writes them without reading the Secret as the caller): `replace_organization_credential` replaces one, and a save whose credential's consumers changed is answered `credential_consumers_changed`. The Dev Portal's credential form needs it ([giantswarm/backstage#3364](https://github.com/giantswarm/backstage/issues/3364)). The organization switch keeps its own `2.20.0` floor. muster reaches the elicitation to the client from `5.61.0` (giantswarm/muster#1812), the floor of `components.muster.versionRange`.
Credential operations and `agent-manager.githubTokenExchange` need a floor of `2.22.0` or later in `components.agent-manager.versionRange`. The default floor, `2.24.0`, makes credentials write-only (agent-manager writes them without reading the Secret as the caller): `replace_organization_credential` replaces one, and a save whose credential's consumers changed is answered `credential_consumers_changed`. The Dev Portal's credential form needs it ([giantswarm/backstage#3364](https://github.com/giantswarm/backstage/issues/3364)). The range admits agent-manager 3.x, whose set tools take no `replaceCredential` ([giantswarm/agent-manager#365](https://github.com/giantswarm/agent-manager/pull/365)): `replace_organization_credential` is then the only way to replace a credential, and a Dev Portal before 3.38.0 cannot replace one. The organization switch keeps its own `2.20.0` floor. muster reaches the elicitation to the client from `5.61.0` (giantswarm/muster#1812), the floor of `components.muster.versionRange`.

`agent-manager.credentials.uiURL` needs `agentPlatformOrganizations.enabled`: agent-manager serves the form link only with its organization tools and downstream OAuth on.

Expand Down
2 changes: 1 addition & 1 deletion helm/agent-platform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ The map is merged into each component's own `nodeSelector` (`muster.nodeSelector
| components.model-manager.dependsOn[2] | string | `"kserve-llmisvc-resources"` | |
| components.agent-manager.chart | string | `"agent-manager"` | |
| components.agent-manager.repository | string | `"oci://gsoci.azurecr.io/charts/giantswarm"` | |
| components.agent-manager.versionRange | string | `">=2.24.0 <3.0.0"` | |
| components.agent-manager.versionRange | string | `">=2.24.0 <4.0.0"` | |
| components.agent-manager.valuesFrom | string | `"agent-manager"` | |
| components.agent-manager.omitEmptyKeys[0] | string | `"harness.egress"` | |
| components.agent-manager.enabled | bool | `false` | |
Expand Down
9 changes: 8 additions & 1 deletion helm/agent-platform/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,14 @@ components: # @schema additionalProperties: true
# agent-platform.agentManager.skillManagerFloor: from it agent-manager pins
# skills through the skill-manager and takes installation and
# defaultAgentModel (giantswarm/agent-manager#290).
versionRange: ">=2.24.0 <3.0.0"
# The ceiling admits agent-manager 3.x: 3.0.0 removes replaceCredential
# from set_organization_model, set_organization_connector and
# set_organization_egress_policy (giantswarm/agent-manager#365; a call
# with it is refused invalid_request, replace_organization_credential
# replaces a credential), and its chart takes the same values as 2.24.0,
# so the range spans both majors and Flux moves to 3.x once it is
# published (with gitops.prereleases, to its newest release candidate).
versionRange: ">=2.24.0 <4.0.0"
valuesFrom: agent-manager
# harness.egress travels only when set: the key is new in agent-manager
# 1.11.0, and an older chart's closed harness block refuses it; unset, the
Expand Down
2 changes: 1 addition & 1 deletion tests/golden/meta-ci-engine-off.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3174,7 +3174,7 @@ spec:
mediaType: application/vnd.cncf.helm.chart.content.v1.tar+gzip
operation: copy
ref:
semver: ">=2.24.0 <3.0.0"
semver: ">=2.24.0 <4.0.0"
---
# Source: agent-platform/templates/components.yaml
apiVersion: source.toolkit.fluxcd.io/v1
Expand Down
Loading