-
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
Add missing file licences and do some clean works. #6843
Add missing file licences and do some clean works. #6843
Conversation
/kind changelog-not-required |
@@ -169,10 +169,10 @@ func (r *downloadRequestReconciler) Reconcile(ctx context.Context, req ctrl.Requ | |||
Name: backup.Spec.StorageLocation, | |||
}, location); err != nil { | |||
if apierrors.IsNotFound(err) { | |||
log.Errorf("BSL for DownloadRequest cannot be found") | |||
log.Errorf("fail to get BSL for DownloadRequest") |
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.
here isn't better to have a different message from below how it was?
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.
mistake, thanks review.
7e1d765
to
ea02aa1
Compare
@yanggangtony Please check the CI failure |
Oh, i messup the test code |
ea02aa1
to
8c8625c
Compare
Codecov Report
@@ Coverage Diff @@
## main #6843 +/- ##
=======================================
Coverage 60.66% 60.66%
=======================================
Files 249 249
Lines 26480 26480
=======================================
Hits 16065 16065
Misses 9270 9270
Partials 1145 1145
|
@@ -1,3 +1,18 @@ | |||
/* | |||
Copyright The Velero Contributors. |
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.
According to https://www.apache.org/licenses/LICENSE-2.0#apply
Year is required. Thoughts?
Copyright [yyyy] [name of copyright owner]
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.
I just like the license can be forever.
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.
Rebased , add the years.
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.
Actually, according to the project code standards, copyright year is to be omitted.
https://velero.io/docs/v1.12/code-standards/#copyright-header
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.
I'm not sure what led to the code standards decision to remove the year. It probably should be there, but the fix to that is to change the code standards (a separate issue from this).
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, so how to handle this case , revert to last commit? i delete the year? WDYT @sseago
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.
Follow the code standards guide, delete the year..🥲🥲
8c8625c
to
5702b8f
Compare
Signed-off-by: yanggang <[email protected]>
5702b8f
to
1174580
Compare
Thank you for contributing to Velero!
Please add a summary of your change
1 add missing file licences
2 fix docs error typo in
volume-snapshot-data-movement.md
3 optimize the logs in
download_request_controller.go
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
.