Skip to content

Commit

Permalink
Align v1beta1 Go files
Browse files Browse the repository at this point in the history
`scheme.yml` contains `EndPort` field. align
`MultiNetworkPolicyPort` Go type.

Signed-off-by: Andrea Panattoni <apanatto@redhat.com>
  • Loading branch information
zeeke committed Oct 4, 2024
1 parent f76867e commit 6fa129b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/apis/k8s.cni.cncf.io/v1beta1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ type MultiNetworkPolicyPort struct {

// +optional
Port *intstr.IntOrString `json:"port,omitempty"`

// +optional
EndPort *int32 `json:"endPort,omitempty"`
}

// IPBlock ...
Expand Down
5 changes: 5 additions & 0 deletions pkg/apis/k8s.cni.cncf.io/v1beta1/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 6fa129b

Please sign in to comment.