From 96790a814c7df0af9f6c3bf2373d9b9a6ec634d6 Mon Sep 17 00:00:00 2001 From: sarahalsmiller <100602640+sarahalsmiller@users.noreply.github.com> Date: Tue, 9 Jan 2024 14:13:32 -0600 Subject: [PATCH] NET-6822 Add kubebuilder tag to struct (#20120) add kubebuilder tag --- proto-public/pbmesh/v2beta1/mesh_gateway.pb.go | 5 +++-- proto-public/pbmesh/v2beta1/mesh_gateway.proto | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) 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; }