Skip to content

Commit

Permalink
Merge pull request #177 from kubescape/fix/patch-networks
Browse files Browse the repository at this point in the history
Fix/patch networks
  • Loading branch information
matthyx authored Jan 22, 2024
2 parents a051c76 + eb4a870 commit d5368a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/networkmanager/network_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,12 @@ func (am *NetworkManager) handleNetworkEvents(ctx context.Context, container *co
namespace := wlid.GetNamespaceFromWlid(parentWlid)
networkNeighborsExists := false
networkNeighbors, err := am.storageClient.GetNetworkNeighbors(namespace, name)
if err != nil {
if strings.Contains(err.Error(), "the server is currently unable to handle the request") {
logger.L().Warning("NetworkManager - failed to update network neighbor", helpers.String("reason", err.Error()), helpers.String("container ID", container.Runtime.ContainerID), helpers.String("k8s workload", watchedContainer.K8sContainerID))
return
}
}
if err == nil {
networkNeighborsExists = true
}
Expand Down

0 comments on commit d5368a6

Please sign in to comment.