Skip to content

Commit

Permalink
Merge pull request ovn-kubernetes#4978 from trozet/fix_pod_errors
Browse files Browse the repository at this point in the history
Suppress layer 2 missing pod anno errors
  • Loading branch information
tssurya authored Jan 20, 2025
2 parents a8b9c3c + 87de9f8 commit 94b6fb9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions go-controller/pkg/ovn/base_network_controller_pods.go
Original file line number Diff line number Diff line change
Expand Up @@ -931,8 +931,9 @@ func (bnc *BaseNetworkController) allocatePodAnnotationForSecondaryNetwork(pod *
if !bnc.allocatesPodAnnotation() {
podAnnotation, _ := util.UnmarshalPodAnnotation(pod.Annotations, nadName)
if !util.IsValidPodAnnotation(podAnnotation) {
return nil, false, fmt.Errorf("failed to get PodAnnotation for %s/%s/%s, cluster manager might have not allocated it yet",
nadName, pod.Namespace, pod.Name)
return nil, false, ovntypes.NewSuppressedError(fmt.Errorf(
"failed to get PodAnnotation for %s/%s/%s, cluster manager might have not allocated it yet",
nadName, pod.Namespace, pod.Name))
}

return podAnnotation, false, nil
Expand Down

0 comments on commit 94b6fb9

Please sign in to comment.