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

fix get interface bug #1508

Merged
merged 1 commit into from Sep 15, 2022
Merged

fix get interface bug #1508

merged 1 commit into from Sep 15, 2022

Conversation

zhouqiu0103
Copy link

What type of PR is this?

/kind bug

What this PR does / why we need it:

When using kube-vip for high availability, kubekey will bind the VIP to the interface where the host ip is located. This can lead to a problem.Take VIP=192.168.100.2 for example,if the host also has such as 192.168.100.2xx ip address, then the 192.168.100.2xx interface will be searched out resulting in errors.

The solution is to add a space before and after the ip when getting the interface.

Which issue(s) this PR fixes:

Fixes #

Special notes for reviewers:

Does this PR introduced a user-facing change?


Additional documentation, usage docs, etc.:


@ks-ci-bot ks-ci-bot added kind/bug Categorizes issue or PR as related to a bug. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Sep 15, 2022
@pixiake
Copy link
Collaborator

pixiake commented Sep 15, 2022

/lgtm
/approve

@ks-ci-bot ks-ci-bot added the lgtm Indicates that a PR is ready to be merged. label Sep 15, 2022
@ks-ci-bot
Copy link
Collaborator

LGTM label has been added.

Git tree hash: 7cc6414753ea5e1550cc95ffc5a7962811083264

@ks-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pixiake, zhouqiu0103

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

@ks-ci-bot ks-ci-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 15, 2022
@ks-ci-bot ks-ci-bot merged commit 23d9e39 into kubesphere:master Sep 15, 2022
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. kind/bug Categorizes issue or PR as related to a bug. lgtm 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.

None yet

4 participants