Skip to content

Commit 7d91766

Browse files
committed
fix as review
Signed-off-by: zbb88888 <[email protected]>
1 parent 5c16c6f commit 7d91766

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

dist/images/install.sh

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ CNI_BIN_DIR="/opt/cni/bin"
6969
REGISTRY="docker.io/kubeovn"
7070
VPC_NAT_IMAGE="vpc-nat-gateway"
7171
VERSION="v1.14.0"
72+
VERSION="dev"
7273
IMAGE_PULL_POLICY="IfNotPresent"
7374
POD_CIDR="10.16.0.0/16" # Do NOT overlap with NODE/SVC/JOIN CIDR
7475
POD_GATEWAY="10.16.0.1"

pkg/controller/vip.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func (c *Controller) handleAddVirtualIP(key string) error {
8989
}
9090
var macPointer *string
9191
ipStr := util.GetStringIP(sourceV4Ip, sourceV6Ip)
92-
if ipStr != "" && vip.Spec.MacAddress != "" {
92+
if ipStr != "" || vip.Spec.MacAddress != "" {
9393
macPointer = &vip.Spec.MacAddress
9494
v4ip, v6ip, mac, err = c.acquireStaticIPAddress(subnet.Name, vip.Name, portName, ipStr, macPointer)
9595
} else {

0 commit comments

Comments
 (0)