Repository navigation
fix(platform): leave klaus-gateway's a2a namespace and default agent to the chart under the change-over - #1409
Merged
Conversation
…to the chart under the change-over With platformPublicNamespace.changeOver on in the lab's overlays, the meta chart sets klausGateway.a2a.namespace to public-agents and fails the render on the lab's kagent; it derives a2a.defaultAgent too. The values template now writes neither key while the merged overlays turn the change-over on, and today's values otherwise. Part of #1398
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.
Part of #1398
Problem
On a lab whose
platform.valuesFilesoverlay turns onplatformPublicNamespace.changeOver(seen on agent-platform 4.191.0-rc.2 withplatformPublicNamespace: {changeOver: true}),agentlab platformwithplatform.klausGatewayon fails at render:The lab's values template always wrote
klausGateway.a2a.namespace: kagentanddefaultAgent: agentlab-klaus-gateway-test. This blocks the live proof of item 2 of #1398.Change
tmplData.PlatformChangeOver()(internal/lab/klausgateway.go) mergesplatform.valuesFilesin order, ashelm -fdoes, and readsplatformPublicNamespace.changeOver; only a literaltruecounts (the chart's schema types it boolean). A later overlay'schangeOver: falsewins.klausGateway:block only. Under the change-over thea2ablock writes neithernamespacenordefaultAgent; without it the values stay as today (kagent, the proof's fixture). No other render reads the overlays, and a render that turns the component on for itself (chartGatewayVersion, throughmutate) gets the same answer as the install.docs/klaus-gateway.mddescribes the exception. No HACKS.md record names these values. No CHANGELOG.md edit: the repository releases from pull request titles.What the chart uses under the change-over
From the agent-platform chart's
klaus-gatewayvalues helper (helm/agent-platform/templates/_helpers.tpl, same at v4.191.0-rc.2 and main):a2a.namespace:public-agents, the platform's shared place (agent-platform.platformNamespace). An own value that differs fails the render.a2a.defaultAgent:public-agents/default-agent, derived whilecomponents.default-agentis on (on with kagent, muster and agent-manager, which a lab with klaus-gateway runs). An own value would win. If an overlay turns the default agent off, the klaus-gateway chart's own default (sre-agent) applies.Why one condition and not "never write them"
The meta chart derives
a2a.namespaceonly under the change-over; before it, the klaus-gateway chart's defaultkagentapplies, so dropping the namespace on every lab would also work.defaultAgentis different: the chart derives<platform namespace>/default-agentwhenever the default agent is on, change-over or not, and an own value wins. Leaving it unset on every lab would move every lab's Slack default from the proof's fixture tokagent/default-agent, and older charts without the derivation would fall back to the klaus-gateway chart'ssre-agent. So the condition is needed fordefaultAgent, and one condition for both keys is the simpler rule; without the change-over the lab's values do not change.Do the proofs' expectations hold on a changed-over lab?
This change breaks none of them; some did not hold on such a lab before it either (it did not render at all):
klaus-gateway-test,decisions-testand the Slack checks oforganizations-testpass their own--a2a-namespace=kagentand--a2a-default-agent(gatewayArgs), so the component's values do not reach them. The public part's Slack start and S3 pick qualified refs (<namespace>/<agent>).pickerRefacceptskagent/<name>), not through the component's default agent.klaus-gateway-testkeeps its fixtures inkagent, where the change-over runs 0 workers and binds no person, so its fixture is not expected to get Ready or to be offered in the picker. Andorganizations-test's Slack S1 (rosterProblem,slackRoster) exempts onlykagentas the platform tenant, so a roster row ofpublic-agents/*would read as another organization's.Tests
TestPlatformValuesKlausGatewayChangeOver(internal/lab/render_test.go): throughplatformValuesWith(the lab's render with the overlays merged, what the chart receives): the change-over overlay drops both keys, also with the component off inagentlab.yamland on for the render only; an overlay withchangeOver: falseafter it keepskagentand the fixture.TestPlatformValuesKlausGatewaykeeps owning the case without overlays.go test ./internal/lab/ -run 'TestPlatformValuesKlausGateway|TestKlausGateway|TestPlatformValues|TestRender'passes;golangci-lint runwithGOOS=linux: 0 issues.helm templatewith the pinned chart (the roster tests use charts they write), so there is no chart render case to add.Review
The change's class was
single: the Opus reviewer ran in its default mode, which runs no tests, beside Codex round 1. In deep mode it may run tests; then it runs after Codex round 1 in the same heavy slot, not at the same time.PlatformChangeOverreads only the overlays, so a chart whose own values turn the change-over on (achartPathcheckout, a later release) still getsnamespace: kagentand fails the render.The Opus reviewer reported no finding. Codex round 2 recorded the answer and approved head e57dac6.