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

Migrate --experimental-set-member-localaddr to using feature flag #19413

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

henrybear327
Copy link
Contributor

@henrybear327
Copy link
Contributor Author

@ahrtr I am not sure how to update

- Add ['etcd --experimental-set-member-localaddr'](https://github.com/etcd-io/etcd/pull/17661) to enable using the first specified and non-loopback local address from initial-advertise-peer-urls as the local address when communicating with a peer.

@henrybear327
Copy link
Contributor Author

Fixing the unit test now.

@ahrtr
Copy link
Member

ahrtr commented Feb 13, 2025

@ahrtr I am not sure how to update

- Add ['etcd --experimental-set-member-localaddr'](https://github.com/etcd-io/etcd/pull/17661) to enable using the first specified and non-loopback local address from initial-advertise-peer-urls as the local address when communicating with a peer.

We can change it to something like below,

Add feature gate 'SetMemberLocalAddr' to enable using the first specified and non-loopback local address from initial-advertise-peer-urls as the local address when communicating with a peer

@henrybear327 henrybear327 force-pushed the feat/add_flag branch 2 times, most recently from c63e554 to a569a29 Compare February 13, 2025 13:43
@henrybear327
Copy link
Contributor Author

Unit tests are updated because of #19413 (comment)

Copy link

codecov bot commented Feb 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.95%. Comparing base (3bd966d) to head (5fa8c1f).
Report is 4 commits behind head on main.

Additional details and impacted files
Files with missing lines Coverage Δ
server/embed/config.go 80.08% <100.00%> (-0.03%) ⬇️
server/embed/etcd.go 76.32% <ø> (-0.05%) ⬇️
server/features/etcd_features.go 60.00% <ø> (ø)

... and 26 files with indirect coverage changes

@@           Coverage Diff           @@
##             main   #19413   +/-   ##
=======================================
  Coverage   68.95%   68.95%           
=======================================
  Files         420      420           
  Lines       35755    35753    -2     
=======================================
- Hits        24656    24655    -1     
- Misses       9677     9680    +3     
+ Partials     1422     1418    -4     

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 3bd966d...5fa8c1f. Read the comment docs.

Copy link
Member

@ahrtr ahrtr left a comment

Choose a reason for hiding this comment

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

LGTM with a couple of minor comments.

cc. @fuweid @ivanvc @siyuanfoundation

Signed-off-by: Chun-Hung Tseng <henrytseng@google.com>
Co-authored-by: Benjamin Wang <benjamin.wang@broadcom.com>
@henrybear327
Copy link
Contributor Author

Comments are all addressed.

Thank you @ahrtr for reviewing this throughout the day!

@ahrtr ahrtr mentioned this pull request Feb 13, 2025
15 tasks
@ahrtr
Copy link
Member

ahrtr commented Feb 13, 2025

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ahrtr, fuweid, henrybear327

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:

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 91762cc into etcd-io:main Feb 13, 2025
37 checks passed
@ahrtr
Copy link
Member

ahrtr commented Feb 13, 2025

/cherry-pick release-3.6

@k8s-infra-cherrypick-robot

@ahrtr: new pull request created: #19414

In response to this:

/cherry-pick release-3.6

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.

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.

5 participants