Skip to content

Commit

Permalink
fix windows
Browse files Browse the repository at this point in the history
Signed-off-by: zhangzujian <[email protected]>
  • Loading branch information
zhangzujian committed Apr 12, 2024
1 parent cdfb8af commit b92027b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/daemon/controller_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ func (c *Controller) handlePod(key string) error {
}

podName := pod.Name
if pod.Annotations[fmt.Sprintf(util.VMTemplate, util.OvnProvider)] != "" {
podName = pod.Annotations[fmt.Sprintf(util.VMTemplate, util.OvnProvider)]
if pod.Annotations[fmt.Sprintf(util.VMAnnotationTemplate, util.OvnProvider)] != "" {
podName = pod.Annotations[fmt.Sprintf(util.VMAnnotationTemplate, util.OvnProvider)]
}

// set default nic bandwidth
Expand All @@ -184,8 +184,8 @@ func (c *Controller) handlePod(key string) error {
}
for _, multiNet := range attachNets {
provider := fmt.Sprintf("%s.%s.ovn", multiNet.Name, multiNet.Namespace)
if pod.Annotations[fmt.Sprintf(util.VMTemplate, provider)] != "" {
podName = pod.Annotations[fmt.Sprintf(util.VMTemplate, provider)]
if pod.Annotations[fmt.Sprintf(util.VMAnnotationTemplate, provider)] != "" {
podName = pod.Annotations[fmt.Sprintf(util.VMAnnotationTemplate, provider)]
}
if pod.Annotations[fmt.Sprintf(util.AllocatedAnnotationTemplate, provider)] == "true" {
ifaceID = ovs.PodNameToPortName(podName, pod.Namespace, provider)
Expand Down

0 comments on commit b92027b

Please sign in to comment.