Browse Source

[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
commit
670b140d87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      proto-public/pbmulticluster/v2beta1/exported_services_consumer.pb.go
  2. 3
      proto-public/pbmulticluster/v2beta1/exported_services_consumer.proto

3
proto-public/pbmulticluster/v2beta1/exported_services_consumer.pb.go

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

3
proto-public/pbmulticluster/v2beta1/exported_services_consumer.proto

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