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 Sep 13, 2024
1 parent 9c5afff commit 7363edc
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 9 deletions.
2 changes: 0 additions & 2 deletions build/charts/antrea/crds/packetcapture.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ spec:
type: integer
packetsFileName:
type: string

subresources:
status: {}
scope: Cluster
Expand All @@ -195,4 +194,3 @@ spec:
kind: PacketCapture
shortNames:
- pcap

12 changes: 6 additions & 6 deletions pkg/apis/crd/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,24 +380,24 @@ type Destination struct {

// TransportHeader describes spec of a TransportHeader.
type TransportHeader struct {
UDP *UDPHeader `json:"udp,omitempty" yaml:"udp,omitempty"`
TCP *TCPHeader `json:"tcp,omitempty" yaml:"tcp,omitempty"`
UDP *UDPHeader `json:"udp,omitempty"`
TCP *TCPHeader `json:"tcp,omitempty"`
}

// UDPHeader describes spec of a UDP header.
type UDPHeader struct {
// SrcPort is the source port.
SrcPort int32 `json:"srcPort,omitempty"`
SrcPort *int32 `json:"srcPort,omitempty"`
// DstPort is the destination port.
DstPort int32 `json:"dstPort,omitempty"`
DstPort *int32 `json:"dstPort,omitempty"`
}

// TCPHeader describes spec of a TCP header.
type TCPHeader struct {
// SrcPort is the source port.
SrcPort int32 `json:"srcPort,omitempty"`
SrcPort *int32 `json:"srcPort,omitempty"`
// DstPort is the destination port.
DstPort int32 `json:"dstPort,omitempty"`
DstPort *int32 `json:"dstPort,omitempty"`
// Flags are flags in the header.
Flags *int32 `json:"flags,omitempty"`
}
Expand Down
22 changes: 21 additions & 1 deletion pkg/apis/crd/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7363edc

Please sign in to comment.