Repository navigation
fix(operator): serve recovery restore hooks from the instance pod - #196
Merged
Merged
Conversation
gabriele-wolfox
force-pushed
the
dev/e2e-recovery-plugins
branch
from
August 31, 2026 14:31
b92d1f4 to
f49f506
Compare
gabriele-wolfox
force-pushed
the
dev/e2e-recovery-plugins
branch
2 times, most recently
from
August 31, 2026 14:35
3e556ef to
30679b1
Compare
A recent CloudNativePG change (cloudnative-pg/cloudnative-pg#11319) moved instance bootstrap, including full and snapshot recovery, from a dedicated Job into an init container inside the instance pod. The lifecycle hook only injected the restore sidecar for recovery Jobs, so after that change the recovery pod ran the instance sidecar, which does not advertise the restore job hooks capability, and every plugin-based recovery failed with "no plugin supports the restore job hooks capability". Inject the restore sidecar from the Pod lifecycle hook while the cluster is performing its initial recovery bootstrap. The Job path is kept so recovery still works on CloudNativePG releases that bootstrap through a Job. Assisted-by: Claude Signed-off-by: Gabriele Quaresima <[email protected]>
gabriele-wolfox
force-pushed
the
dev/e2e-recovery-plugins
branch
from
August 31, 2026 14:36
30679b1 to
53c4db4
Compare
jlong49
approved these changes
Aug 31, 2026
fcanovai
pushed a commit
that referenced
this pull request
Sep 2, 2026
A recent CloudNativePG change (cloudnative-pg/cloudnative-pg#11319) moved instance bootstrap, including recovery, from a dedicated Job into an init container inside the instance pod. Klio only injected the restore sidecar for recovery Jobs, so the recovery pod ran the instance sidecar, which does not advertise the restore job hooks capability, and plugin-based recovery failed with `no plugin supports the restore job hooks capability`. Inject the restore sidecar from the Pod lifecycle hook during the initial recovery bootstrap. The Job path is retained for CloudNativePG releases that still bootstrap recovery through a Job. Closes #192 Signed-off-by: Gabriele Quaresima <[email protected]>
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.
A recent CloudNativePG change (cloudnative-pg/cloudnative-pg#11319) moved instance bootstrap, including recovery, from a dedicated Job into an init container inside the instance pod. Klio only injected the restore sidecar for recovery Jobs, so the recovery pod ran the instance sidecar, which does not advertise the restore job hooks capability, and plugin-based recovery failed with
no plugin supports the restore job hooks capability.Inject the restore sidecar from the Pod lifecycle hook during the initial recovery bootstrap.
The Job path is retained for CloudNativePG releases that still bootstrap recovery through a Job.
Closes #192