-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Enhance the restore priorities list to support specifying the low prioritized resources that need to be restored in the last #5529
Conversation
pkg/restore/restore.go
Outdated
for resource := range backupResources { | ||
if _, exist := lowPriorities[resource]; exist { |
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.
For consistency how about also remove the high priority resources?
pkg/restore/priority.go
Outdated
// Resources in the HighPriorities list will be handled first | ||
// Resources in the LowPriorities list will be handled last | ||
// Other resources will be handled alphabetically after the high prioritized resources and before the low prioritized resources | ||
type Priority struct { |
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.
nit: the Priority should be plural? i.e. Priority -> Priorities
pkg/restore/priority.go
Outdated
} | ||
// the separator isn't the last element | ||
if len(strs) > i+1 { | ||
p.LowPriorities = strs[i+1:] |
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.
What if there are multiple -
in the input?
There still are comments not resolved.
cb01f93
to
3fc9ab3
Compare
…oritized resources that need to be restored in the last Enhance the restore priorities list to support specifying the low prioritized resources that need to be r estored in the last Signed-off-by: Wenkai Yin(尹文开) <[email protected]>
3fc9ab3
to
6750836
Compare
Enhance the restore priorities list to support specifying the low prioritized resources that need to be r estored in the last
Signed-off-by: Wenkai Yin(尹文开) [email protected]
Thank you for contributing to Velero!
Please add a summary of your change
Does your change fix a particular issue?
Fixes #(issue)
Please indicate you've done the following:
/kind changelog-not-required
as a comment on this pull request.site/content/docs/main
.