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

* Add kubebuilder annotations for validation of ExportedServicesConsumer

* Generate proto
pull/20112/head^2
Nathan Coleman 11 months ago committed by GitHub
parent 131ef2a133
commit 670b140d87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

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

Loading…
Cancel
Save