-
Notifications
You must be signed in to change notification settings - Fork 0
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
Postgres Restore #306
Conversation
…crd (and also switch to backup secrets!)
api/v1/postgres_types.go
Outdated
@@ -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"` |
There was a problem hiding this comment.
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(), |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
config/samples/clone.yaml
Outdated
@@ -0,0 +1,30 @@ | |||
apiVersion: database.fits.cloud/v1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
There was a problem hiding this comment.
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.
No description provided.