Skip to content

Conversation

eberlep
Copy link
Collaborator

@eberlep eberlep commented Aug 24, 2022

When a restore is requested, we use the referenced source database to retrieve the S3 credentials required for the clone Block.

If that source database was already deleted, but for some reason that database is still referenced (e.g. the restore was not completed by calling cloudctl postgres restore-accepted), we cannot fetch the required information anymore.

This PR changes the behaviour in such a case: we simply ignore that referenced (but non-existing) source database and thus skip the creation of the clone block (instead of aborting the creation/update of the postgresql custom resource altogether).

@eberlep eberlep marked this pull request as ready for review October 13, 2022 09:43
@eberlep eberlep merged commit 433715e into main Oct 14, 2022
@eberlep eberlep deleted the relax-clone-block-creation branch October 14, 2022 09:40
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.

1 participant