Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Hang Yan <[email protected]>
  • Loading branch information
hangyan committed Apr 10, 2024
1 parent 3e625d7 commit f1643f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
1 change: 1 addition & 0 deletions docs/packetsampling-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ such actions on the target traffic flow.
The PacketSampling feature is disabled by default. If you
want to enable this feature, you need to set PacketSampling feature gate to true in `antrea-config`
ConfigMap for antrea-agent.

```yaml
antrea-agent.conf: |
featureGates:
Expand Down
10 changes: 0 additions & 10 deletions pkg/agent/controller/packetsampling/packetsampling_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,16 +266,6 @@ func (c *Controller) processPacketSamplingItem() bool {
return true
}

func (c *Controller) validatePacketSampling(ps *crdv1alpha1.PacketSampling) error {
if ps.Spec.Destination.IP != "" {
destIP := net.ParseIP(ps.Spec.Destination.IP)
if destIP == nil {
return fmt.Errorf("destination IP %s is not valid", ps.Spec.Destination.IP)
}
}
return nil
}

func (c *Controller) cleanupPacketSampling(psName string) {
psState := c.deletePacketSamplingState(psName)
if psState != nil {
Expand Down

0 comments on commit f1643f0

Please sign in to comment.