Skip to content

fix: stop requeueing deleted tsuru apps and cronjobs - #14

Open
lbarrosby wants to merge 1 commit into
tsuru:mainfrom
lbarrosby:fix/ignore-deleted-apps-and-cronjobs
Open

lbarrosby wants to merge 1 commit into
tsuru:mainfrom
lbarrosby:fix/ignore-deleted-apps-and-cronjobs

Conversation

@lbarrosby

Copy link
Copy Markdown

Why

Deleting a tsuru app, or any CronJob in the cluster, leaves the request retrying forever: TsuruAppReconciler and TsuruCronJobReconciler return the NotFound error from Get, so the controller keeps requeueing it with backoff and logging errors.

What

  • Ignore NotFound in both reconcilers, like the other reconcilers already do.

Tested with make test (new tests for both reconcilers).

Fixes #13

TsuruAppReconciler and TsuruCronJobReconciler returned the NotFound error
when the watched object was already gone, so every deleted app or CronJob
(any CronJob in the cluster, tsuru or not) stayed in the workqueue retrying
with backoff and logging errors until the operator restarted. Ignore
NotFound like the other reconcilers do.
@lbarrosby

Copy link
Copy Markdown
Author

Closing to keep the review queue light. Happy to reopen if it's useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deleted tsuru apps and CronJobs keep being reconciled with errors

1 participant