Skip to content

Commit 48747d2

Browse files
feat: updating konnector doc format
1 parent 4ba1594 commit 48747d2

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

docs/content/addons/konnector-agent.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ stringData:
9494
password: password
9595
```
9696

97-
## Examples
98-
99-
### Configuration
97+
### Example Configuration
10098

10199
```yaml
102100
apiVersion: cluster.x-k8s.io/v1beta1

pkg/handlers/lifecycle/konnectoragent/handler.go

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)