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

[rnd] test disable dhcp #492

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions images/virt-artifact/patches/099-disable-dhcp.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
diff --git a/pkg/network/setup/podnic.go b/pkg/network/setup/podnic.go
index 473ca555d8..87952d5331 100644
--- a/pkg/network/setup/podnic.go
+++ b/pkg/network/setup/podnic.go
@@ -20,6 +20,7 @@
package network

import (
+ goerrors "errors"
"fmt"
"os"

@@ -27,8 +28,6 @@ import (
"kubevirt.io/client-go/log"
"kubevirt.io/client-go/precond"

- goerrors "errors"
-
"kubevirt.io/kubevirt/pkg/network/cache"
dhcpconfigurator "kubevirt.io/kubevirt/pkg/network/dhcp"
"kubevirt.io/kubevirt/pkg/network/domainspec"
@@ -67,7 +66,7 @@ func newPhase2PodNIC(vmi *v1.VirtualMachineInstance, network *v1.Network, iface
podnic.podInterfaceName = ifaceLink.Attrs().Name
}

- podnic.dhcpConfigurator = podnic.newDHCPConfigurator()
+ podnic.dhcpConfigurator = nil
podnic.domainGenerator = podnic.newLibvirtSpecGenerator(domain, domainAttachment)

return podnic, nil
1 change: 0 additions & 1 deletion images/virt-artifact/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ shell:

go mod vendor

setup:
- mkdir /kubevirt-binaries
- mkdir /kubevirt-config-files
- cd /kubevirt
Expand Down
Loading