Bug
When a namespace containing MCPServers is deleted, the operator produces ERROR-level log lines with full stack traces. The reconciler does not check if the namespace is terminating before attempting resource creation.
In testing (20 create/delete cycles with 3 MCPServers per cycle), 1263 error log lines were produced, all the same pattern:
"Failed to create NetworkPolicy" ... "unable to create new content
in namespace mcplo-soak-2 because it is being terminated"
"Reconciler error" ... same terminating namespace message
Fix
Add an early return at the top of Reconcile when the namespace has DeletionTimestamp set, or when the MCPServer itself is being deleted. This prevents unnecessary resource creation attempts and error logging in dying namespaces.
Bug
When a namespace containing MCPServers is deleted, the operator produces ERROR-level log lines with full stack traces. The reconciler does not check if the namespace is terminating before attempting resource creation.
In testing (20 create/delete cycles with 3 MCPServers per cycle), 1263 error log lines were produced, all the same pattern:
Fix
Add an early return at the top of
Reconcilewhen the namespace hasDeletionTimestampset, or when the MCPServer itself is being deleted. This prevents unnecessary resource creation attempts and error logging in dying namespaces.