From 7d92a5dfd601571870960d8be899fdf7430af2a0 Mon Sep 17 00:00:00 2001 From: sarahalsmiller <100602640+sarahalsmiller@users.noreply.github.com> Date: Wed, 10 Jan 2024 13:12:29 -0600 Subject: [PATCH] Add min/max kubetags to meshgatewaylistener (#20149) * add kubetags * generate proto --- proto-public/pbmesh/v2beta1/mesh_gateway.pb.go | 2 ++ proto-public/pbmesh/v2beta1/mesh_gateway.proto | 2 ++ 2 files changed, 4 insertions(+) diff --git a/proto-public/pbmesh/v2beta1/mesh_gateway.pb.go b/proto-public/pbmesh/v2beta1/mesh_gateway.pb.go index a8bc0c9369..0fcfa4bf96 100644 --- a/proto-public/pbmesh/v2beta1/mesh_gateway.pb.go +++ b/proto-public/pbmesh/v2beta1/mesh_gateway.pb.go @@ -87,6 +87,8 @@ type MeshGatewayListener struct { unknownFields protoimpl.UnknownFields Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // +kubebuilder:validation:Maximum=65535 + // +kubebuilder:validation:Minimum=0 Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` } diff --git a/proto-public/pbmesh/v2beta1/mesh_gateway.proto b/proto-public/pbmesh/v2beta1/mesh_gateway.proto index 0caaf7ab48..ca5dd67756 100644 --- a/proto-public/pbmesh/v2beta1/mesh_gateway.proto +++ b/proto-public/pbmesh/v2beta1/mesh_gateway.proto @@ -19,5 +19,7 @@ message MeshGateway { message MeshGatewayListener { string name = 1; + // +kubebuilder:validation:Maximum=65535 + // +kubebuilder:validation:Minimum=0 uint32 port = 2; }