Skip to content

resolving prompts when deploying locally & to k8s#319

Merged
peterj merged 3 commits intomainfrom
peterj/fixdeploypart2
Mar 13, 2026
Merged

resolving prompts when deploying locally & to k8s#319
peterj merged 3 commits intomainfrom
peterj/fixdeploypart2

Conversation

@peterj
Copy link
Copy Markdown
Contributor

@peterj peterj commented Mar 12, 2026

Description

resolves the prompts when deploying locally and to kubernetes. Fixes #308 and #315

Change Type

/kind feature

Changelog

resolve registry prompts when deploying locally and to kubernetes

Copilot AI review requested due to automatic review settings March 12, 2026 00:48
@github-actions
Copy link
Copy Markdown

You already have 3 pull requests open. Please consider working on getting the existing ones merged before opening new ones. Thanks!

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds “prompt resolution” to the registry-driven deployment flow so that agents deployed locally (Docker) or to Kubernetes can receive a concrete prompts.json generated from prompt references in agent.yaml (issue #308).

Changes:

  • Add a ResolveAgentManifestPrompts API on RegistryService, plus fake implementation support for tests.
  • Extend the resolved agent config/types to carry ResolvedPrompt data, and wire it into local + Kubernetes deployment adapters (writing prompts.json).
  • Add/extend unit tests for local + Kubernetes translation, plus a new e2e test covering deploy-with-prompts.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
internal/registry/service/testing/fake_registry.go Adds fake hook + method for resolving manifest prompts in tests.
internal/registry/service/service.go Extends RegistryService interface with ResolveAgentManifestPrompts.
internal/registry/service/registry_service.go Implements prompt resolution from manifest prompt refs to concrete prompt content.
internal/registry/platforms/utils/deployment_adapter_utils.go Resolves prompts during agent resolution; adds helper to convert to Python prompt config format.
internal/registry/platforms/types/types.go Adds ResolvedPrompt type and fields on agent/resolved config to carry prompts.
internal/registry/platforms/local/deployment_adapter_local.go Writes/cleans up prompts config alongside MCP config during deploy/undeploy.
internal/registry/platforms/local/deployment_adapter_local_test.go Adds tests asserting prompts config refresh is called on deploy/undeploy.
internal/registry/platforms/kubernetes/deployment_adapter_kubernetes_platform.go Includes prompts in agent ConfigMap + volume items; writes prompts.json when present.
internal/registry/platforms/kubernetes/deployment_adapter_kubernetes_platform_test.go Adds translation tests for prompts-only and prompts+MCP cases.
e2e/deploy_test.go Adds e2e test deploying an agent that references a registry prompt and verifying prompts.json presence.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@peterj peterj requested review from inFocus7 and timflannagan March 12, 2026 17:50
Signed-off-by: Peter Jausovec <[email protected]>
@peterj peterj added this pull request to the merge queue Mar 13, 2026
Merged via the queue into main with commit 2183f48 Mar 13, 2026
7 checks passed
@peterj peterj deleted the peterj/fixdeploypart2 branch March 13, 2026 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add prompt resolution for deploy commands

3 participants