Skip to content

Commit 8a364c9

Browse files
committed
add constraints to listenerset port number in status
1 parent 7e6b405 commit 8a364c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apisx/v1alpha1/xlistenerset_types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,9 @@ type ListenerEntryStatus struct {
213213
Name SectionName `json:"name"`
214214

215215
// Port is the network port the listener is configured to listen on.
216+
//
217+
// +kubebuilder:validation:Minimum=1
218+
// +kubebuilder:validation:Maximum=65535
216219
Port PortNumber `json:"port"`
217220

218221
// SupportedKinds is the list indicating the Kinds supported by this

0 commit comments

Comments
 (0)