-
Notifications
You must be signed in to change notification settings - Fork 37
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
Backup: init backup, restore and migrate api #377
Conversation
✅ Deploy Preview for kurator-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Signed-off-by: Xieql <[email protected]>
Signed-off-by: Xieql <[email protected]>
Signed-off-by: Xieql <[email protected]> Signed-off-by: Xieql <[email protected]>
@Xieql: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
9a1088b
to
bf1435f
Compare
/label tide/merge-method-squash |
// ``` | ||
// +optional | ||
// +nullable | ||
OrderedResources map[string]string `json:"orderedResources,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.
why do we need order for backup
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 resource backup order feature provided by Velero is primarily designed to address scenarios like primary-secondary database configurations.
In such setups, there's an inherent delay in data synchronization or state propagation.
To ensure data consistency and coherence after backup, it's imperative to first back up the 'source' resource upon which others depend, such as the master database, followed by the 'dependent' resources, like the slave database.
see the proposal about orderedResouces in velero: https://github.com/vmware-tanzu/velero/blob/c9e1ade1f7c3b52ac3a38ae853e79a507b33bf95/design/Implemented/backup-resources-order.md
// If empty, it applies to all resources. | ||
// +optional | ||
// +nullable | ||
IncludedResources []string `json:"includedResources,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.
add examples
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.
ok
// ExcludedResources specifies the resources to which will not restore the status. | ||
// +optional | ||
// +nullable | ||
ExcludedResources []string `json:"excludedResources,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.
add examples
pkg/apis/backups/v1alpha1/util.go
Outdated
// Clusters determine a set of clusters as destination clusters. | ||
// The field will only take effect when Fleet is not set. | ||
// +optional | ||
Clusters []*corev1.ObjectReference `json:"clusters,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.
so this means clusters will have lower priority
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.
yes.
Alternatively, we could allow both to coexist and then take the union.
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.
We can simplify the design by removing the ClusterSelector
. If both Fleet
and Clusters
are specified, we will take their union as the final set of clusters.
ClusterSelector
is confusing currently, we can consider reintroducing ClusterSelector
in the future if the "selector" need arises.
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.
Please rebase
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hzxuzhonghu The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
done |
Signed-off-by: Xieql <[email protected]>
Signed-off-by: Xieql <[email protected]>
/lgtm |
Signed-off-by: Xieql <[email protected]>
/lgtm |
What type of PR is this?
/kind api-change
/kind design
/kind documentation
What this PR does / why we need it:
add backup sync api
see #374
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: