[NET-7106] Add kubebuilder validation annotations to ExportedServicesConsumer proto (#20126)

* Add kubebuilder annotations for validation of ExportedServicesConsumer

* Generate proto
This commit is contained in:
Nathan Coleman 2024-01-09 17:27:54 -05:00 committed by GitHub
parent 131ef2a133
commit 670b140d87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,9 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// +kubebuilder:validation:Type=object
// +kubebuilder:validation:Schemaless
// +kubebuilder:pruning:PreserveUnknownFields
type ExportedServicesConsumer struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache

View File

@ -5,6 +5,9 @@ syntax = "proto3";
package hashicorp.consul.multicluster.v2beta1;
// +kubebuilder:validation:Type=object
// +kubebuilder:validation:Schemaless
// +kubebuilder:pruning:PreserveUnknownFields
message ExportedServicesConsumer {
oneof consumer_tenancy {
string peer = 1;