AlinsRan commented on code in PR #2551:
URL:
https://github.com/apache/apisix-ingress-controller/pull/2551#discussion_r2336191856
##########
api/v2/apisixroute_types.go:
##########
@@ -111,7 +110,9 @@ type ApisixRouteHTTP struct {
type ApisixRouteStream struct {
// Name is a unique identifier for the route. This field must not be
empty.
Name string `json:"name" yaml:"name"`
- // Protocol specifies the L4 protocol to match. Can be `tcp` or `udp`.
+ // Protocol specifies the L4 protocol to match. Can be `TCP` or `UDP`.
+ //
+ // +kubebuilder:validation:Enum=TCP;UDP
Protocol string `json:"protocol" yaml:"protocol"`
// Match defines the criteria used to match incoming TCP or UDP
connections.
Match ApisixRouteStreamMatch `json:"match" yaml:"match"`
Review Comment:
fixed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]