Skip to content

Commit

Permalink
Merge pull request ovn-kubernetes#2851 from trozet/ecmp_validation_bug
Browse files Browse the repository at this point in the history
Fixes improper validation of gw cache on pod add
  • Loading branch information
trozet authored Mar 7, 2022
2 parents 2331c40 + 10bf713 commit 294fbbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go-controller/pkg/ovn/egressgw.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func (oc *Controller) addPodExternalGWForNamespace(namespace string, pod *kapi.P
return fmt.Errorf("failed to ensure namespace locked: %v", err)
}
tmpPodGWs := oc.getRoutingPodGWs(nsInfo)
tmpPodGWs[pod.Name] = egress
tmpPodGWs[makePodGWKey(pod)] = egress
if err = validateRoutingPodGWs(tmpPodGWs); err != nil {
nsUnlock()
return fmt.Errorf("unable to add pod: %s/%s as external gateway for namespace: %s, error: %v",
Expand Down

0 comments on commit 294fbbb

Please sign in to comment.