Skip to content

Commit

Permalink
udn host isolation: handle host-network pods as default network
Browse files Browse the repository at this point in the history
Signed-off-by: Nadia Pinaeva <n.m.pinaeva@gmail.com>
  • Loading branch information
npinaeva committed Dec 12, 2024
1 parent bbebb8f commit c9c175d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions go-controller/pkg/node/udn_isolation.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,10 @@ func (m *UDNHostIsolationManager) getPodInfo(podKey string, pod *v1.Pod) (*podIn
if pod == nil {
return pi, nil, nil
}
if util.PodWantsHostNetwork(pod) {
// host network pods can't be isolated by IP
return nil, nil, nil
}
// only add pods with primary UDN
primaryUDN, err := m.isPodPrimaryUDN(pod)
if err != nil {
Expand Down

0 comments on commit c9c175d

Please sign in to comment.