-
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
Issue 8072: restic deprecation - warning messages #8096
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8096 +/- ##
==========================================
- Coverage 58.78% 58.77% -0.01%
==========================================
Files 358 358
Lines 30079 30084 +5
==========================================
+ Hits 17681 17682 +1
- Misses 10950 10954 +4
Partials 1448 1448 ☔ View full report in Codecov by Sentry. |
With this PR, users will see below warnings when In Velero server log: In the output of
And users will see below warnings when upgrading from v1.9 or lower: In the output of
|
793482c
to
9eebb13
Compare
9eebb13
to
9ba433f
Compare
pkg/uploader/types.go
Outdated
return nil | ||
|
||
if t == ResticType { | ||
return fmt.Sprintf("Uploader '%s' is deprecated, don't use it for new backups, otherwise, the backed up data may not be accessed by new versions of Velero", t), nil |
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.
@sseago any feedback for the wording?
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.
@reasonerjt I'd replace "otherwise, the backed up data may not be accessed by new versions of Velero" with "otherwise this backup won't be available for restore when this functionality is removed in a future version of Velero"
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, thanks for the suggestion @sseago
@sseago @shubham-pampattiwar Please help to review this PR and let me know how you feel about the warning messages. |
9ba433f
to
2270b3a
Compare
For 1.15 and 1.16, you will see below warnings if `--uploader-type=restic` is used in Velero installation: | ||
In the output of installation: | ||
``` | ||
⚠️ Uploader 'restic' is deprecated, don't use it for new backups, otherwise, the backed up data may not be accessed by new versions of Velero |
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 update the warning message in docs as well.
Ref: #8096 (comment)
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
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.
Update warning text in the docs
Signed-off-by: Lyndon-Li <[email protected]>
2270b3a
to
fefb4b8
Compare
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.
/lgtm
Defaulted container "velero" out of: velero, openshift-velero-plugin (init), velero-plugin-for-aws (init)
time="2024-08-09T20:28:35Z" level=info msg="setting log-level to INFO" logSource="pkg/cmd/server/server.go:199"
time="2024-08-09T20:28:35Z" level=info msg="Starting Velero server restic-warn (fefb4b858c796630428fb204a60b051f53fb1de6)" logSource=
"pkg/cmd/server/server.go:201"
time="2024-08-09T20:28:35Z" level=info msg="1 feature flags enabled [EnableCSI]" logSource="pkg/cmd/server/server.go:203"
time="2024-08-09T20:28:35Z" level=warning msg="Uploader 'restic' is deprecated, don't use it for new backups, otherwise the backups w
on't be available for restore when this functionality is removed in a future version of Velero" logSource="pkg/cmd/server/server.go:2
94"
Fix issue #8072, add the warning messages for restic deprecation