@@ -378,7 +378,7 @@ func (n *DefaultKonnectorAgent) BeforeClusterDelete(
378378 case cleanupStatusInProgress :
379379 log .Info ("Konnector Agent cleanup in progress, requesting retry" )
380380 resp .SetStatus (runtimehooksv1 .ResponseStatusSuccess )
381- resp .SetRetryAfterSeconds (10 ) // Retry after 10 seconds
381+ resp .SetRetryAfterSeconds (5 ) // Retry after 5 seconds
382382 return
383383 case cleanupStatusNotStarted :
384384 log .Info ("Starting Konnector Agent cleanup" )
@@ -445,19 +445,6 @@ func (n *DefaultKonnectorAgent) deleteHelmChartProxy(
445445 return fmt .Errorf ("failed to get HelmChartProxy %q: %w" , ctrlclient .ObjectKeyFromObject (hcp ), err )
446446 }
447447
448- // Add a deletion timestamp annotation to help CAAPH prioritize this deletion
449- // and set a shorter timeout to fail fast if cluster becomes unreachable
450- if currentHCP .Annotations == nil {
451- currentHCP .Annotations = make (map [string ]string )
452- }
453- currentHCP .Annotations ["cluster.x-k8s.io/delete-priority" ] = "high"
454- currentHCP .Annotations ["cluster.x-k8s.io/delete-timeout" ] = "60s"
455-
456- // Update the HCP with priority annotations before deletion
457- if err := n .client .Update (ctx , currentHCP ); err != nil {
458- log .Info ("Failed to update HCP annotations, proceeding with deletion" , "error" , err )
459- }
460-
461448 // Now delete the HelmChartProxy - CAAPH will handle the helm uninstall
462449 log .Info ("Deleting Konnector Agent HelmChartProxy" , "name" , hcp .Name , "namespace" , hcp .Namespace )
463450 if err := n .client .Delete (ctx , currentHCP ); err != nil {
0 commit comments