Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Hang Yan <yhang@vmware.com>
  • Loading branch information
hangyan committed Nov 8, 2024
1 parent 402639b commit b24567b
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions pkg/agent/packetcapture/packetcapture_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,9 @@ const (

// defines how many capture request we can handle concurrently. waiting captures will be
// marked as Pending until they can be processed.
<<<<<<< HEAD
maxConcurrentCaptures = 16
defaultTimeoutDuration = 60 * time.Second
=======
maxConcurrentCaptures = 16

contextTimeoutErrMsg = "context deadline exceeded"
defaultTimeoutDuration = 60 * time.Second

>>>>>>> cc9ff24e1 (update)
captureStatusUpdatePeriod = 10 * time.Second

// PacketCapture uses a dedicated Secret object to store authentication information for a file server.
// #nosec G101
fileServerAuthSecretName = "antrea-packetcapture-fileserver-auth"
Expand Down Expand Up @@ -398,15 +389,9 @@ func (c *Controller) getTargetCaptureDevice(pc *crdv1alpha1.PacketCapture) strin
if len(podInterfaces) == 0 {
return ""
}
<<<<<<< HEAD
=======

>>>>>>> 59f80d372 (1)
return podInterfaces[0].InterfaceName
}



// startPacketCapture starts the capture on the target device. The actual capture process will be started
// in a separated go routine.
func (c *Controller) startPacketCapture(ctx context.Context, pc *crdv1alpha1.PacketCapture, device string) error {
Expand Down

0 comments on commit b24567b

Please sign in to comment.