Skip to content

fix(adk): reject unsupported MCP Kubernetes text sources - #8

Closed
pood1e wants to merge 1 commit into
dimetron:mainfrom
pood1e:fix/declarative-configmap-valuefrom
Closed

pood1e wants to merge 1 commit into
dimetron:mainfrom
pood1e:fix/declarative-configmap-valuefrom

Conversation

@pood1e

@pood1e pood1e commented Oct 30, 2026

Copy link
Copy Markdown

Summary

  • Reject config_map and secret sources in MCP url_from and header value_from during document validation. The runtime currently resolves those fields from env only.
  • Clarify the MCP source contract in the API comments and workflow reference.

Without this check, the controller accepts a workflow with a ConfigMap-backed MCP header and delivers it as a valid revision, but the runtime rejects it before the agent starts. This addresses the review finding on kagent-dev/kagent#3344.

Validation

  • Reproduced the failure with new ADK and compiler tests before the fix.
  • go test ./adk/pkg/declarative ./core/internal/translator -count=1
  • go vet ./adk/pkg/declarative ./core/internal/translator
  • make -C go lint (0 issues)

Signed-off-by: pood1e <codingpood1e@gmail.com>
@dimetron

Copy link
Copy Markdown
Owner

Thanks! Cherry-picked into main as fb83c5e (authorship preserved) and included in kagent-dev#3344.

@dimetron dimetron closed this Oct 30, 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.

2 participants