Skip to content
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

Merged

Conversation

ywk253100
Copy link
Contributor

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(尹文开) yinw@vmware.com

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:

  • Accepted the DCO. Commits without the DCO will delay acceptance.
  • Created a changelog file or added /kind changelog-not-required as a comment on this pull request.
  • Updated the corresponding documentation in site/content/docs/main.

for resource := range backupResources {
if _, exist := lowPriorities[resource]; exist {
Copy link
Contributor

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?

// 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 {
Copy link
Contributor

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

}
// the separator isn't the last element
if len(strs) > i+1 {
p.LowPriorities = strs[i+1:]
Copy link
Contributor

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?

blackpiglet
blackpiglet previously approved these changes Nov 2, 2022
@blackpiglet blackpiglet dismissed their stale review November 2, 2022 06:10

There still are comments not resolved.

…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(尹文开) <yinw@vmware.com>
@blackpiglet blackpiglet merged commit 0993a44 into vmware-tanzu:release-1.9 Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants