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

feat: suport kubevirt nic hotplug #3013

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

watermelon-brother
Copy link
Contributor

@watermelon-brother watermelon-brother commented Jul 5, 2023

What type of this PR

  • Features

kubevirt hotplug interface will cause kube-ovn create veth-pair.

@oilbeater
Copy link
Collaborator

The lint error should be fixed

@@ -191,6 +191,10 @@ func generateNicName(containerID, ifname string) (string, string) {
if ifname == "eth0" {
return fmt.Sprintf("%s_h", containerID[0:12]), fmt.Sprintf("%s_c", containerID[0:12])
}
if strings.HasPrefix(ifname, "pod") {
Copy link
Collaborator

@oilbeater oilbeater Jul 12, 2023

Choose a reason for hiding this comment

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

can you give a comment about why in some scenario the ifname will has prefix pod and exceed the length.

@oilbeater oilbeater merged commit f3833f9 into kubeovn:master Jul 12, 2023
56 checks passed
@oilbeater
Copy link
Collaborator

Thanks! @watermelon-brother

@bobz965
Copy link
Collaborator

bobz965 commented Jul 13, 2023

backport "if" name starts with pod logic to release 1.11

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

Successfully merging this pull request may close these issues.

3 participants