@@ -424,7 +424,6 @@ func (r *AgentReconciler) getA2AHealthPath(protocol *runtimev1alpha1.AgentProtoc
424424// generateReadinessProbe generates appropriate readiness probe based on agent protocols
425425func (r * AgentReconciler ) generateReadinessProbe (agent * runtimev1alpha1.Agent ) * corev1.Probe {
426426 // Check if agent has external dependencies (subAgents or tools)
427- hasExternalDeps := len (agent .Spec .SubAgents ) > 0 || len (agent .Spec .Tools ) > 0
428427
429428 // Priority: A2A > OpenAI > None
430429 if r .hasA2AProtocol (agent ) {
@@ -434,21 +433,15 @@ func (r *AgentReconciler) generateReadinessProbe(agent *runtimev1alpha1.Agent) *
434433 port := r .getProtocolPort (a2aProtocol , 8000 )
435434
436435 probe := r .buildA2AReadinessProbe (healthPath , port )
437- if hasExternalDeps {
438- // More generous timing for agents with external dependencies
439- return delay (probe , 180 , 20 , 10 )
440- }
436+
441437 return probe
442438 } else if r .hasOpenAIProtocol (agent ) {
443439 // Use TCP probe for OpenAI-only agents
444440 openaiProtocol := r .getOpenAIProtocol (agent )
445441 port := r .getProtocolPort (openaiProtocol , 8000 )
446442
447443 probe := r .buildOpenAIReadinessProbe (port )
448- if hasExternalDeps {
449- // More generous timing for agents with external dependencies
450- return delay (probe , 180 , 20 , 10 )
451- }
444+
452445 return probe
453446 }
454447
@@ -904,13 +897,3 @@ func (r *AgentReconciler) buildA2AReadinessProbe(healthPath string, port int32)
904897 FailureThreshold : 3 ,
905898 }
906899}
907-
908- // delay modifies probe timing settings for agents with external dependencies
909- func delay (probe * corev1.Probe , initialDelaySeconds int32 , timeoutSeconds int32 , failureThreshold int32 ) * corev1.Probe {
910- if probe != nil {
911- probe .InitialDelaySeconds = initialDelaySeconds
912- probe .TimeoutSeconds = timeoutSeconds
913- probe .FailureThreshold = failureThreshold
914- }
915- return probe
916- }
0 commit comments