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

Mark --snapshot-count as deprecated in v3.6 and will be decommissioned in 3.7 #18998

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

ahrtr
Copy link
Member

@ahrtr ahrtr commented Dec 3, 2024

@ahrtr ahrtr force-pushed the snapshot_count_20241203 branch from ebdd53c to 8bc42d9 Compare December 3, 2024 15:02
Copy link

codecov bot commented Dec 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.83%. Comparing base (b038739) to head (8bc42d9).
Report is 2 commits behind head on main.

Additional details and impacted files
Files with missing lines Coverage Δ
server/embed/config.go 79.49% <100.00%> (ø)
server/etcdmain/config.go 66.89% <100.00%> (+1.89%) ⬆️

... and 19 files with indirect coverage changes

@@           Coverage Diff           @@
##             main   #18998   +/-   ##
=======================================
  Coverage   68.82%   68.83%           
=======================================
  Files         420      420           
  Lines       35621    35629    +8     
=======================================
+ Hits        24517    24525    +8     
+ Misses       9683     9680    -3     
- Partials     1421     1424    +3     

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b038739...8bc42d9. Read the comment docs.

@ahrtr
Copy link
Member Author

ahrtr commented Dec 3, 2024

cc @ivanvc and @jmhbnz

Copy link
Member

@fuweid fuweid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@jmhbnz jmhbnz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - Thanks @ahrtr

Copy link
Member

@ivanvc ivanvc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks, @ahrtr.

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ahrtr, fuweid, ivanvc, jmhbnz, serathius

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [ahrtr,jmhbnz,serathius]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ahrtr ahrtr merged commit 715c12d into etcd-io:main Dec 4, 2024
34 checks passed
@ahrtr ahrtr deleted the snapshot_count_20241203 branch December 4, 2024 16:41
Comment on lines +173 to +185
var warningsForDeprecatedFlags []string
cfg.cf.flagSet.Visit(func(f *flag.Flag) {
if msg, ok := deprecatedFlags[f.Name]; ok {
warningsForDeprecatedFlags = append(warningsForDeprecatedFlags, msg)
}
})
if len(warningsForDeprecatedFlags) > 0 {
if lg := cfg.ec.GetLogger(); lg != nil {
for _, msg := range warningsForDeprecatedFlags {
lg.Warn(msg)
}
}
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that it only checks the command line flags. We should check the config file input as well. Proposed actions:

  • Move this code snip into configFromCmdLine;
  • add similar check in configFromFile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Mark --snapshot-count as deprecated and to be decommissioned in 3.7
6 participants