Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
Signed-off-by: bobz965 <[email protected]>
  • Loading branch information
zbb88888 committed Jan 24, 2024
1 parent 46cfaf6 commit 7830fcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -748,8 +748,8 @@ func (c *Controller) reconcileAllocateSubnets(cachedPod, pod *v1.Pod, needAlloca
}
}
// CreatePort may fail, so put ip CR creation after CreatePort
ipCrName := ovs.PodNameToPortName(podName, pod.Namespace, podNet.ProviderName)
if err := c.createOrUpdateIPCR(ipCrName, podName, ipStr, mac, subnet.Name, pod.Namespace, pod.Spec.NodeName, podType, false); err != nil {
ipCRName := ovs.PodNameToPortName(podName, pod.Namespace, podNet.ProviderName)
if err := c.createOrUpdateIPCR(ipCRName, podName, ipStr, mac, subnet.Name, pod.Namespace, pod.Spec.NodeName, podType, false); err != nil {
err = fmt.Errorf("failed to create ips CR %s.%s: %v", podName, pod.Namespace, err)
klog.Error(err)
return nil, err
Expand Down

0 comments on commit 7830fcd

Please sign in to comment.