Repository navigation
fix(plugin): requeue when a hook asks for it without a delay - #11683
Merged
Merged
Conversation
Since cloudnative-pg#11344 replaced the deprecated `Requeue` field, a reconciler hook returning `BEHAVIOR_REQUEUE` without `requeue_after` maps to an empty `ctrl.Result`, so the Cluster is not requeued at all. `requeue_after` is optional in CNPG-I, and the barman-cloud plugin returns no delay when the referenced ObjectStore doesn't exist yet: a Cluster created before its ObjectStore then stays in `BootstrapPending` until something else triggers a reconciliation. Requeue after one second when no delay is requested, as cloudnative-pg#11344 did for the other `Requeue: true` call sites. Closes cloudnative-pg#11618 Assisted-by: Claude Opus 5.5 Signed-off-by: Valerio Del Sarto <[email protected]>
Contributor
|
❗ By default, the pull request is configured to backport to all release branches.
|
mnencia
approved these changes
Oct 17, 2026
Signed-off-by: Marco Nenciarini <[email protected]>
Member
|
/test |
Contributor
|
@mnencia, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/39023698263 |
gbartolini
approved these changes
Oct 17, 2026
cnpg-bot
pushed a commit
that referenced
this pull request
Oct 17, 2026
Since #11344 replaced the deprecated `Requeue` field, a reconciler hook returning `BEHAVIOR_REQUEUE` without `requeue_after` maps to an empty `ctrl.Result`, so the Cluster is not requeued at all. `requeue_after` is optional in CNPG-I, and the barman-cloud plugin returns no delay when the referenced ObjectStore doesn't exist yet: a Cluster created before its ObjectStore then stays in `BootstrapPending` until something else triggers a reconciliation. Requeue after one second when no delay is requested. Closes #11618 Assisted-by: Claude Signed-off-by: Valerio Del Sarto <[email protected]> Signed-off-by: Marco Nenciarini <[email protected]> Co-authored-by: Marco Nenciarini <[email protected]> (cherry picked from commit 99e9645)
cnpg-bot
pushed a commit
that referenced
this pull request
Oct 17, 2026
Since #11344 replaced the deprecated `Requeue` field, a reconciler hook returning `BEHAVIOR_REQUEUE` without `requeue_after` maps to an empty `ctrl.Result`, so the Cluster is not requeued at all. `requeue_after` is optional in CNPG-I, and the barman-cloud plugin returns no delay when the referenced ObjectStore doesn't exist yet: a Cluster created before its ObjectStore then stays in `BootstrapPending` until something else triggers a reconciliation. Requeue after one second when no delay is requested. Closes #11618 Assisted-by: Claude Signed-off-by: Valerio Del Sarto <[email protected]> Signed-off-by: Marco Nenciarini <[email protected]> Co-authored-by: Marco Nenciarini <[email protected]> (cherry picked from commit 99e9645)
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since #11344 replaced the deprecated
Requeuefield, a reconciler hook returningBEHAVIOR_REQUEUEwithoutrequeue_aftermaps to an emptyctrl.Result, so the Cluster is not requeued at all.requeue_afteris optional in CNPG-I, and the barman-cloud plugin returns no delay when the referenced ObjectStore doesn't exist yet: a Cluster created before its ObjectStore then stays inBootstrapPendinguntil something else triggers a reconciliation.Requeue after one second when no delay is requested.
Closes #11618
Assisted-by: Claude