-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
br: make br help sync with the new checksum default value #58558
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: BornChanger <[email protected]>
Hi @BornChanger. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. 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-sigs/prow repository. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #58558 +/- ##
================================================
- Coverage 73.5359% 73.4025% -0.1334%
================================================
Files 1681 1681
Lines 464055 472482 +8427
================================================
+ Hits 341247 346814 +5567
- Misses 101997 104749 +2752
- Partials 20811 20919 +108
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/cc @Tristan1900 |
@BornChanger: GitHub didn't allow me to request PR reviews from the following users: Tristan1900. Note that only pingcap members and repo collaborators can review this PR, and authors cannot review their own PRs. 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-sigs/prow repository. |
Signed-off-by: BornChanger <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. |
Signed-off-by: BornChanger <[email protected]>
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.
Thanks for the change! Agree it's cleaner to have two separate variables to control the checksum
@@ -609,9 +606,6 @@ func (cfg *Config) ParseFromFlags(flags *pflag.FlagSet) error { | |||
return errors.Trace(err) | |||
} | |||
|
|||
if cfg.Checksum, err = flags.GetBool(FlagChecksum); err != 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.
if we decide to have two separate configs to control checksum, i.e. backupChecksum
, restoreChecksum
, I guess we need to parse them in their respective cfg so code can actually use.
I think the flow is like
- parse flags if it's from cmd.
- build cfg either from cmd flags or directly in brie
- pass cfg to backup/restore functions
Signed-off-by: BornChanger <[email protected]>
@BornChanger: The following tests failed, say
Full PR test history. Your PR dashboard. 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-sigs/prow repository. I understand the commands that are listed here. |
What problem does this PR solve?
Issue Number: close #58559
Problem Summary:
What changed and how does it work?
make the br output gives the correct
--checksum
default values forbr backup --help
andbr restore --help
commands respetively.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.