Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
Signed-off-by: Hang Yan <[email protected]>
  • Loading branch information
hangyan committed Sep 5, 2024
1 parent f4fa37e commit 2c563b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions build/charts/antrea/crds/packetcapture.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ spec:
default: IPv4
protocol:
x-kubernetes-int-or-string: true
enum: [ICMP, TCP, UDP, 1, 6, 17]
default: ICMP
transportHeader:
type: object
Expand Down
3 changes: 2 additions & 1 deletion pkg/apis/crd/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,8 @@ type TCPHeader struct {
type Packet struct {
// IPFamily is the filter's IP family . default to `IPv4`.
IPFamily v1.IPFamily `json:"ipFamily"`
// Protocol represents the transport protocol. default to ICMP(1).
// Protocol represents the transport protocol. default to ICMP(1). Other
// possible choices are: TCP(6), UDP(17).
Protocol *intstr.IntOrString `json:"protocol,omitempty"`
TransportHeader TransportHeader `json:"transportHeader"`
}
Expand Down

0 comments on commit 2c563b3

Please sign in to comment.