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 secondary iface to KIND network #26338
Conversation
conformance-e2e on this PR has passed |
Tested the secondary iface connectivity manually
|
a3f80af
to
9a4b4b2
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.
(sorry for the early review, didn't realise this was still in draft)
Should we be gating this behind a flag? I guess most people don't need a secondary interface in their dev cycle, and I see value in keeping the default as simple as possible.
Other than nits, implementation looks good though.
contrib/scripts/kind.sh
Outdated
for ifc in /sys/class/net/"${bridge_dev}"/brif/*; do | ||
ifc="${ifc#"/sys/class/net/${bridge_dev}/brif/"}" | ||
for ifc in /sys/class/net/"${bridge_dev}"*/brif/*; do | ||
ifc=$(echo $ifc | sed "s:/sys/class/net/${bridge_dev}.*/brif/::") |
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.
let's use $SED
here, which should point to GNU sed on macos too
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.
Nice catch! Thanks
contrib/scripts/kind-down.sh
Outdated
@@ -11,9 +11,11 @@ fi | |||
|
|||
default_cluster_name="kind" | |||
default_network="kind-cilium" | |||
default_secondary_network="${default_network}-secondary" |
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.
maybe just secondary
instead of default_secondary
?
Make sense. I will add a flag, e.g. |
04153bd
to
c3c9263
Compare
/test |
Merging #26856 made the conflict. I have to rebase my branch. |
c3c9263
to
dbf9ef1
Compare
/test |
Hi @brb , please take a look at this PR |
dbf9ef1
to
e8653ef
Compare
e8653ef
to
f096a89
Compare
Add secondary iface to KIND network, so that we can test the NodePort via secondary iface. Signed-off-by: Yusuke Suzuki <yusuke-suzuki@cybozu.co.jp>
/test |
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!
Add secondary iface to KIND network, so that we can test the NodePort via secondary iface.
Please ensure your pull request adheres to the following guidelines:
description and a
Fixes: #XXX
line if the commit addresses a particularGitHub issue.
Fixes: <commit-id>
tag, thenplease add the commit author[s] as reviewer[s] to this issue.
Part of #18846