fix: best effort patch reconciling status (#1952)

* fix(controller): decode old object for delete requests

Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>

* chore: modernize golang

Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>

* chore: modernize golang

Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>

* chore: modernize golang

Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>

* fix: preserve ca-bundles injected from external providers

Signed-off-by: Oliver Baehler <oliver@sudo-i.net>

* fix: best effort patch reconciling status

Signed-off-by: Oliver Baehler <oliver@sudo-i.net>

---------

Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
Signed-off-by: Oliver Baehler <oliver@sudo-i.net>
This commit is contained in:
Oliver Bähler
2026-06-05 11:08:31 +02:00
committed by GitHub
parent d3a1fb0d1b
commit 4c72af7fe8
2 changed files with 4 additions and 6 deletions
+2 -3
View File
@@ -206,14 +206,13 @@ func (r *globalResourceController) Reconcile(ctx context.Context, request reconc
return requeue, nil
}
// Best-Effort for Updating the status
if updateErr := r.updateReconcilingStatus(ctx, tntResource); updateErr != nil {
if caperrors.IgnoreGone(updateErr) {
return reconcile.Result{}, nil
}
statusErr = gherrors.Wrap(updateErr, "failed to update status")
return requeue, nil
log.Error(updateErr, "failed to update status")
}
if c == nil {
+2 -3
View File
@@ -246,14 +246,13 @@ func (r *namespacedResourceController) Reconcile(ctx context.Context, request re
return requeue, nil
}
// Best-Effort for Updating the status
if updateErr := r.updateReconcilingStatus(ctx, tntResource); updateErr != nil {
if caperrors.IgnoreGone(updateErr) {
return reconcile.Result{}, nil
}
statusErr = gherrors.Wrap(updateErr, "failed to update status")
return requeue, nil
log.Error(updateErr, "failed to update status")
}
if c == nil {