diff --git a/proto-public/pbmesh/v2beta1/mesh_gateway.pb.go b/proto-public/pbmesh/v2beta1/mesh_gateway.pb.go index 4580861212..a8bc0c9369 100644 --- a/proto-public/pbmesh/v2beta1/mesh_gateway.pb.go +++ b/proto-public/pbmesh/v2beta1/mesh_gateway.pb.go @@ -30,8 +30,9 @@ type MeshGateway struct { unknownFields protoimpl.UnknownFields // GatewayClassName is the name of the GatewayClass used by the MeshGateway - GatewayClassName string `protobuf:"bytes,1,opt,name=gateway_class_name,json=gatewayClassName,proto3" json:"gateway_class_name,omitempty"` - Listeners []*MeshGatewayListener `protobuf:"bytes,2,rep,name=listeners,proto3" json:"listeners,omitempty"` + GatewayClassName string `protobuf:"bytes,1,opt,name=gateway_class_name,json=gatewayClassName,proto3" json:"gateway_class_name,omitempty"` + // +kubebuilder:validation:MinItems=1 + Listeners []*MeshGatewayListener `protobuf:"bytes,2,rep,name=listeners,proto3" json:"listeners,omitempty"` } func (x *MeshGateway) Reset() { diff --git a/proto-public/pbmesh/v2beta1/mesh_gateway.proto b/proto-public/pbmesh/v2beta1/mesh_gateway.proto index de863d80b0..0caaf7ab48 100644 --- a/proto-public/pbmesh/v2beta1/mesh_gateway.proto +++ b/proto-public/pbmesh/v2beta1/mesh_gateway.proto @@ -13,6 +13,7 @@ message MeshGateway { // GatewayClassName is the name of the GatewayClass used by the MeshGateway string gateway_class_name = 1; + // +kubebuilder:validation:MinItems=1 repeated MeshGatewayListener listeners = 2; }