Skip to content
This repository was archived by the owner on Nov 12, 2026. It is now read-only.
This repository was archived by the owner on Nov 12, 2026. It is now read-only.

AgentCardSync controller does not watch Sandbox workloads #339

Closed

Description

@cwiklik

Summary

The AgentCardSyncReconciler watches Deployment and StatefulSet to auto-create AgentCard CRs for workloads with kagenti.io/type: agent + protocol labels. It does not watch Sandbox (agents.x-k8s.io/v1alpha1), so Sandbox-deployed agents never get an AgentCard auto-created.

Impact

With featureFlags.agentSandbox: true (intended default), Sandbox is the recommended workload type in the UI. Agents deployed as Sandbox are not discoverable via A2A protocol because no AgentCard exists for them.

Required Changes

  1. Add a third controller registration in SetupWithManager (similar to the Deployment/StatefulSet adapter pattern) using SandboxCRDExists() guard
  2. Add a ReconcileSandbox method that extracts labels from spec.podTemplate.metadata.labels via unstructured access
  3. Pass the Sandbox GVK to ensureAgentCard
  4. Add RBAC marker for agents.x-k8s.io sandboxes

Reference

Acceptance Criteria

  • Sandbox workload with kagenti.io/type: agent + protocol labels gets AgentCard auto-created
  • Existing Deployment/StatefulSet behavior unchanged
  • Controller does not crash when Sandbox CRD is not installed

Activity

  1. added
    enhancement
    on May 8, 2026
  2. self-assigned this
    on May 8, 2026
  3. added a commit that references this issue on May 8, 2026
    962e280
  4. added a commit that references this issue on May 11, 2026
    186cd77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions