mirror of https://github.com/status-im/consul.git
[NET-7106] Add kubebuilder validation annotations to ExportedServicesConsumer proto (#20126)
* Add kubebuilder annotations for validation of ExportedServicesConsumer * Generate proto
This commit is contained in:
parent
131ef2a133
commit
670b140d87
|
@ -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…
Reference in New Issue