diff options
Diffstat (limited to 'pkg/controller')
-rw-r--r-- | pkg/controller/pod/pod_controller.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/controller/pod/pod_controller.go b/pkg/controller/pod/pod_controller.go index 8792985..23a847e 100644 --- a/pkg/controller/pod/pod_controller.go +++ b/pkg/controller/pod/pod_controller.go @@ -167,6 +167,9 @@ func (r *ReconcilePod) addLogicalPorts(pod *corev1.Pod) error { if err != nil { return err } + if _, ok := pod.Annotations[ovn.Ovn4nfvAnnotationTag]; ok { + return fmt.Errorf("Pod annotation found") + } key, value := ovnCtl.AddLogicalPorts(pod, nfn.Interface) if len(key) > 0 { return r.setPodAnnotation(pod, key, value) |