NET-6822 Add kubebuilder tag to struct (#20120)

add kubebuilder tag
This commit is contained in:
sarahalsmiller 2024-01-09 14:13:32 -06:00 committed by GitHub
parent 6854e1e90d
commit 96790a814c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -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() {

View File

@ -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;
}