Skip to content

Commit e22ba5d

Browse files
committed
skip nad without config (#5560)
Signed-off-by: Mengxin Liu <[email protected]> (cherry picked from commit 13b7aec)
1 parent 017b3c5 commit e22ba5d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/controller/pod.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1639,6 +1639,10 @@ func (c *Controller) getPodAttachmentNet(pod *v1.Pod) ([]*kubeovnNet, error) {
16391639
return nil, err
16401640
}
16411641

1642+
if network.Spec.Config == "" {
1643+
continue
1644+
}
1645+
16421646
netCfg, err := loadNetConf([]byte(network.Spec.Config))
16431647
if err != nil {
16441648
klog.Errorf("failed to load config of net-attach-def %s, %v", attach.Name, err)

0 commit comments

Comments
 (0)