Skip to content

Postgres Restore #306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Dec 15, 2021
Merged

Postgres Restore #306

merged 14 commits into from
Dec 15, 2021

Conversation

eberlep
Copy link
Collaborator

@eberlep eberlep commented Dec 9, 2021

No description provided.

@eberlep eberlep marked this pull request as ready for review December 15, 2021 13:16
@eberlep eberlep changed the title Clone Postgres Restore Dec 15, 2021
@@ -195,7 +207,8 @@ type PostgresStatus struct {

Socket Socket `json:"socket,omitempty"`

ChildName string `json:"childName,omitempty"`
ChildName string `json:"childName,omitempty"`
ChildInternalID string `json:"childInternalID,omitempty"`
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove, not needed

}

z.Spec.Clone = &zalando.CloneDescription{
ClusterName: srcDB.ToPeripheralResourceName(),
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add nil check for srcDB

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -0,0 +1,30 @@
apiVersion: database.fits.cloud/v1
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@@ -85,7 +86,20 @@ func (r *StatusReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctr
// update the status of the remote object
owner.Status.Description = instance.Status.PostgresClusterStatus
// update the reference to the zalando instance in the remote object
owner.Status.ChildName = instance.Name
owner.Status.ChildName = instance.ObjectMeta.Name
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment is in the wrong line, I removed the ChildInternalID code.

@eberlep eberlep requested a review from majst01 December 15, 2021 14:30
@majst01 majst01 merged commit 4bdbc6d into main Dec 15, 2021
@majst01 majst01 deleted the clone branch December 15, 2021 15:08
@eberlep eberlep linked an issue May 17, 2022 that may be closed by this pull request
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.

Test/Implement Database Recovery
2 participants