Skip to content

Conversation

@t-mialve
Copy link
Collaborator

@t-mialve t-mialve commented Nov 8, 2024

What type of PR is this?

/kind bug

What this PR does / why we need it:
Skips interfaces that are in an UNKNOWN state. If these aren't skipped it may cause extra client IPs to be added.

Which issue(s) this PR fixes:

Fixes #

Requirements:

Special notes for your reviewer:

Release note:

none

@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Nov 8, 2024
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 8, 2024
@coveralls
Copy link

coveralls commented Nov 8, 2024

Coverage Status

coverage: 82.773%. remained the same
when pulling 6f8f102 on t-mialve:t-mialve/skip-unknown-interfaces
into db4352a on kubernetes-sigs:development.

elif [[ "$interface_info" =~ 'link/ether' ]]; then
echo "$(date -u) Including ethernet interface: ${interface}"
ethernet_interfaces+=("$interface")
elif [[ "$interface_info" =~ 'UNKNOWN' ]]; then

Choose a reason for hiding this comment

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

Is there a list of all (common) kinds of interfaces that we should consult and also exclude? Token Ring, ATM, Sneakernet?

ethernet_interfaces+=("$interface")
elif [[ "$interface_info" =~ 'UNKNOWN' ]]; then
echo "$(date -u) Not adding state unknown interface: ${interface}"
continue
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Remove the continues

@t-mialve t-mialve force-pushed the t-mialve/skip-unknown-interfaces branch 2 times, most recently from 52ecd88 to 73e0b74 Compare November 11, 2024 16:29
@t-mialve t-mialve force-pushed the t-mialve/skip-unknown-interfaces branch from 73e0b74 to 6f8f102 Compare November 11, 2024 16:29
Copy link
Collaborator

@dabradley dabradley left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 11, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dabradley, t-mialve

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

@dabradley dabradley merged commit 4e2e98f into kubernetes-sigs:development Nov 11, 2024
7 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants