Follow-up from #4777 (MCPAuthzConfig CRD)
The shared WorkloadReference type uses +listMapKey=name only. Across all config CRDs (MCPOIDCConfig, MCPAuthzConfig, etc.), a ReferencingWorkloads entry is keyed by name alone, which is not unique across workload kinds (an MCPServer and a VirtualMCPServer can share a name in the same namespace). #4777 deliberately aligned to the existing name-only convention rather than diverging.
Scope
- Evaluate moving
ReferencingWorkloads to a composite kind+name key (listMapKeys) uniformly across the config CRDs that track referencing workloads.
- This is pre-existing and repo-wide — should be addressed in one place, not per-CRD.
Context
Follow-up from #4777 (MCPAuthzConfig CRD)
The shared
WorkloadReferencetype uses+listMapKey=nameonly. Across all config CRDs (MCPOIDCConfig, MCPAuthzConfig, etc.), aReferencingWorkloadsentry is keyed by name alone, which is not unique across workload kinds (anMCPServerand aVirtualMCPServercan share a name in the same namespace). #4777 deliberately aligned to the existingname-only convention rather than diverging.Scope
ReferencingWorkloadsto a compositekind+namekey (listMapKeys) uniformly across the config CRDs that track referencing workloads.Context